Skip to content

Commit f3c4f50

Browse files
committed
added unix pkg config as provided on forum
1 parent 554e6d8 commit f3c4f50

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

extensions/PythonQt_QtAll/PythonQt_QtAll.pro

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,22 @@ HEADERS += \
4141
SOURCES += \
4242
PythonQt_QtAll.cpp
4343

44+
# TODO: add these only when needed by configuration below
4445
QT += gui svg sql network xml xmlpatterns opengl
4546
QT += widgets printsupport multimedia multimediawidgets
4647
QT += quick qml quickwidgets uitools
4748

49+
unix {
50+
CONFIG += create_pc create_prl no_install_prl
51+
QMAKE_PKGCONFIG_NAME = PythonQt_QtAll-Qt$${QT_MAJOR_VERSION}-Python$${PYTHON_VERSION}
52+
QMAKE_PKGCONFIG_DESCRIPTION = Dynamic Python binding for the Qt framework
53+
QMAKE_PKGCONFIG_PREFIX = $$INSTALLBASE
54+
QMAKE_PKGCONFIG_LIBDIR = $$target.path
55+
QMAKE_PKGCONFIG_INCDIR = $$headers.path
56+
QMAKE_PKGCONFIG_INCDIR += $$PREFIX/include/PythonQt5
57+
QMAKE_PKGCONFIG_VERSION = $$VERSION
58+
}
59+
4860
unix: target.path = /lib
4961
win32: target.path = /
5062

src/src.pro

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ include ( src.pri )
4242
include($${PYTHONQT_GENERATED_PATH}/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin.pri)
4343
include($${PYTHONQT_GENERATED_PATH}/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin.pri)
4444

45+
unix {
46+
CONFIG += create_pc create_prl no_install_prl
47+
QMAKE_PKGCONFIG_NAME = PythonQt-Qt$${QT_MAJOR_VERSION}-Python$${PYTHON_VERSION}
48+
QMAKE_PKGCONFIG_DESCRIPTION = Dynamic Python binding for the Qt framework
49+
QMAKE_PKGCONFIG_PREFIX = $$INSTALLBASE
50+
QMAKE_PKGCONFIG_LIBDIR = $$target.path
51+
QMAKE_PKGCONFIG_INCDIR = $$headers.path
52+
QMAKE_PKGCONFIG_INCDIR += $$PREFIX/include/PythonQt5
53+
QMAKE_PKGCONFIG_VERSION = $$VERSION
54+
}
4555

4656
unix: target.path = /lib
4757
win32: target.path = /

0 commit comments

Comments
 (0)