Skip to content

Commit

Permalink
qt project files: create pkg-config files for mingw
Browse files Browse the repository at this point in the history
This is mostly the same as for unix.

Merge-request: 2543
Reviewed-by: Oswald Buddenhagen <[email protected]>
  • Loading branch information
mabrand authored and ossilator committed Jan 10, 2011
1 parent f18aca7 commit 45fe2dd
Show file tree
Hide file tree
Showing 22 changed files with 29 additions and 23 deletions.
4 changes: 1 addition & 3 deletions src/3rdparty/webkit/WebCore/WebCore.pro
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ moduleFile=$$PWD/../WebKit/qt/qt_webkit_version.pri
isEmpty(QT_BUILD_TREE):include($$moduleFile)
VERSION = $${QT_WEBKIT_MAJOR_VERSION}.$${QT_WEBKIT_MINOR_VERSION}.$${QT_WEBKIT_PATCH_VERSION}

unix {
QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui QtNetwork
}
unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui QtNetwork

unix:!mac:*-g++*:QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections
unix:!mac:*-g++*:QMAKE_LFLAGS += -Wl,--gc-sections
Expand Down
2 changes: 1 addition & 1 deletion src/dbus/dbus.pro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ contains(QT_CONFIG, dbus-linked) {
}

# INCLUDEPATH += .
unix {
unix|win32-g++* {
QMAKE_PKGCONFIG_DESCRIPTION = Qt \
DBus \
module
Expand Down
2 changes: 1 addition & 1 deletion src/declarative/declarative.pro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DEFINES += QT_BUILD_DECLARATIVE_LIB QT_NO_URL_CAST_FROM_STRING
win32-msvc*|win32-icc:QMAKE_LFLAGS += /BASE:0x66000000
solaris-cc*:QMAKE_CXXFLAGS_RELEASE -= -O2

unix:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui
unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui

exists("qdeclarative_enable_gcov") {
QMAKE_CXXFLAGS = -fprofile-arcs -ftest-coverage -fno-elide-constructors
Expand Down
2 changes: 1 addition & 1 deletion src/gui/gui.pro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ irix-cc*:QMAKE_CXXFLAGS += -no_prelink -ptused

!win32:!embedded:!qpa:!mac:!symbian:CONFIG += x11

unix:QMAKE_PKGCONFIG_REQUIRES = QtCore
unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore

include(../qbase.pri)

Expand Down
2 changes: 1 addition & 1 deletion src/multimedia/multimedia.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ QT = core gui

DEFINES += QT_BUILD_MULTIMEDIA_LIB QT_NO_USING_NAMESPACE

unix:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui
unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui

include(../qbase.pri)

Expand Down
2 changes: 1 addition & 1 deletion src/network/network.pro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ DEFINES += QT_BUILD_NETWORK_LIB QT_NO_USING_NAMESPACE
QT = core
win32-msvc*|win32-icc:QMAKE_LFLAGS += /BASE:0x64000000

unix:QMAKE_PKGCONFIG_REQUIRES = QtCore
unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore

include(../qbase.pri)
include(access/access.pri)
Expand Down
2 changes: 1 addition & 1 deletion src/opengl/opengl.pro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ win32-msvc*|win32-icc:QMAKE_LFLAGS += /BASE:0x63000000
solaris-cc*:QMAKE_CXXFLAGS_RELEASE -= -O2
irix-cc*:QMAKE_CXXFLAGS += -no_prelink -ptused

unix:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui
unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui

include(../qbase.pri)

Expand Down
2 changes: 1 addition & 1 deletion src/openvg/openvg.pro
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ symbian {

include(../qbase.pri)

unix:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui
unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui
symbian:TARGET.UID3 = 0x2001E62F

!isEmpty(QMAKE_INCDIR_OPENVG): INCLUDEPATH += $$QMAKE_INCDIR_OPENVG
Expand Down
2 changes: 1 addition & 1 deletion src/phonon/phonon.pro
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ DEFINES += MAKE_PHONON_LIB

PHONON_DIR = $$QT_SOURCE_TREE/src/3rdparty/phonon/phonon

unix:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui QtNetwork
unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui QtNetwork

# Input
HEADERS += $$PHONON_DIR/abstractaudiooutput.h \
Expand Down
8 changes: 8 additions & 0 deletions src/qbase.pri
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,14 @@ unix:!symbian {
QMAKE_PKGCONFIG_INSTALL_REPLACE += include_replace lib_replace prefix_replace
}

win32-g++* {
CONFIG += create_pc
QMAKE_PKGCONFIG_LIBDIR = $$[QT_INSTALL_LIBS]
QMAKE_PKGCONFIG_INCDIR = $$[QT_INSTALL_HEADERS]/$$TARGET
QMAKE_PKGCONFIG_CFLAGS = -I$$[QT_INSTALL_HEADERS]
QMAKE_PKGCONFIG_DESTDIR = pkgconfig
}

contains(QT_PRODUCT, OpenSource.*):DEFINES *= QT_OPENSOURCE
DEFINES *= QT_NO_CAST_TO_ASCII QT_ASCII_CAST_WARNINGS
contains(QT_CONFIG, qt3support):DEFINES *= QT3_SUPPORT
Expand Down
2 changes: 1 addition & 1 deletion src/qt3support/qt3support.pro
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ include(canvas/canvas.pri)
include(network/network.pri)
include(painting/painting.pri)

unix {
unix|win32-g++* {
QMAKE_PKGCONFIG_CFLAGS += -DQT3_SUPPORT
QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui QtNetwork QtSql
}
Expand Down
2 changes: 1 addition & 1 deletion src/script/script.pro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ DEFINES += QT_NO_USING_NAMESPACE
DEFINES += QLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO
#win32-msvc*|win32-icc:QMAKE_LFLAGS += /BASE:0x66000000 ### FIXME

unix:QMAKE_PKGCONFIG_REQUIRES = QtCore
unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore

include(../qbase.pri)

Expand Down
2 changes: 1 addition & 1 deletion src/scripttools/scripttools.pro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ DEFINES += QT_BUILD_SCRIPTTOOLS_LIB
DEFINES += QT_NO_USING_NAMESPACE
#win32-msvc*|win32-icc:QMAKE_LFLAGS += /BASE:0x66000000

unix:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui QtScript
unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui QtScript

include(../qbase.pri)

Expand Down
2 changes: 1 addition & 1 deletion src/sql/sql.pro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ DEFINES += QT_BUILD_SQL_LIB
DEFINES += QT_NO_USING_NAMESPACE
win32-msvc*|win32-icc:QMAKE_LFLAGS += /BASE:0x62000000

unix:QMAKE_PKGCONFIG_REQUIRES = QtCore
unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore

include(../qbase.pri)

Expand Down
2 changes: 1 addition & 1 deletion src/svg/svg.pro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DEFINES += QT_NO_USING_NAMESPACE
win32-msvc*|win32-icc:QMAKE_LFLAGS += /BASE:0x66000000
solaris-cc*:QMAKE_CXXFLAGS_RELEASE -= -O2

unix:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui
unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui

include(../qbase.pri)

Expand Down
2 changes: 1 addition & 1 deletion src/xml/xml.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ QT = core
DEFINES += QT_BUILD_XML_LIB QT_NO_USING_NAMESPACE
win32-msvc*|win32-icc:QMAKE_LFLAGS += /BASE:0x61000000

unix:QMAKE_PKGCONFIG_REQUIRES = QtCore
unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore

include(../qbase.pri)

Expand Down
2 changes: 1 addition & 1 deletion src/xmlpatterns/xmlpatterns.pro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ QT = core \
DEFINES += QT_BUILD_XMLPATTERNS_LIB \
QT_NO_USING_NAMESPACE
win32-msvc*|win32-icc:QMAKE_LFLAGS += /BASE:0x61000000
unix:QMAKE_PKGCONFIG_REQUIRES = QtCore \
unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore \
QtNetwork
include(../qbase.pri)
PRECOMPILED_HEADER = ../corelib/global/qt_pch.h
Expand Down
2 changes: 1 addition & 1 deletion tools/assistant/lib/fulltextsearch/fulltextsearch.pro
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ contains(QT_CONFIG, reduce_exports) {
linux*-g++*:DEFINES += _GLIBCXX_EXTERN_TEMPLATE=0
}

unix:QMAKE_PKGCONFIG_REQUIRES = QtCore
unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore

# impossible to disable exceptions in clucene atm
CONFIG(exceptions_off) {
Expand Down
2 changes: 1 addition & 1 deletion tools/assistant/lib/lib.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if(!debug_and_release|build_pass):CONFIG(debug, debug|release) {
win32:qclucene = $${qclucene}d
}
linux-lsb-g++:LIBS_PRIVATE += --lsb-shared-libs=$$qclucene
unix:QMAKE_PKGCONFIG_REQUIRES += QtNetwork \
unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES += QtNetwork \
QtSql \
QtXml
LIBS_PRIVATE += -l$$qclucene
Expand Down
2 changes: 1 addition & 1 deletion tools/designer/src/components/lib/lib.pro
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ PRECOMPILED_HEADER= lib_pch.h
include(../../sharedcomponents.pri)
include(../component.pri)

unix {
unix|win32-g++* {
QMAKE_PKGCONFIG_REQUIRES = QtCore QtDesigner QtGui QtXml
contains(QT_CONFIG, script): QMAKE_PKGCONFIG_REQUIRES += QtScript
}
Expand Down
2 changes: 1 addition & 1 deletion tools/designer/src/lib/lib.pro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ isEmpty(QT_MAJOR_VERSION) {
VERSION=$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}
}

unix:QMAKE_PKGCONFIG_REQUIRES += QtXml
unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES += QtXml

include(../../../../src/qt_targets.pri)
QMAKE_TARGET_PRODUCT = Designer
Expand Down
2 changes: 1 addition & 1 deletion tools/designer/src/uitools/uitools.pro
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ INSTALLS += quitools_headers
target.path=$$[QT_INSTALL_LIBS]
INSTALLS += target

unix {
unix|win32-g++* {
CONFIG += create_pc
QMAKE_PKGCONFIG_LIBDIR = $$[QT_INSTALL_LIBS]
QMAKE_PKGCONFIG_INCDIR = $$[QT_INSTALL_HEADERS]/$$TARGET
Expand Down

0 comments on commit 45fe2dd

Please sign in to comment.