Skip to content

Commit

Permalink
Adjust to qtConfig() changes in qtbase
Browse files Browse the repository at this point in the history
Change-Id: Ic5b9447ef9ba54124553775b973d616af22b7032
Reviewed-by: Lars Knoll <[email protected]>
  • Loading branch information
liangqi authored and laknoll committed Aug 21, 2016
1 parent 9a18925 commit 47f3704
Show file tree
Hide file tree
Showing 15 changed files with 11 additions and 25 deletions.
2 changes: 1 addition & 1 deletion config.tests/assimp/assimp.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SOURCES += main.cpp

unix:!contains(QT_CONFIG, no-pkg-config) {
unix:qtConfig(pkg-config) {
CONFIG += link_pkgconfig
PKGCONFIG += assimp
} else {
Expand Down
2 changes: 1 addition & 1 deletion qt3d.pro
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
requires(contains(QT_CONFIG, opengl))
requires(qtConfig(opengl))

load(configure)
qtCompileTest(assimp)
Expand Down
8 changes: 3 additions & 5 deletions src/3rdparty/assimp/assimp.pri
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ CONFIG -= precompile_header

win32:DEFINES+=_CRT_SECURE_NO_WARNINGS

contains(QT_CONFIG, system-zlib):!if(cross_compile:host_build) {
if (unix|mingw): LIBS += -lz
else: LIBS += zdll.lib
} else {
qtConfig(system-zlib):!if(cross_compile:host_build): \
QMAKE_USE_PRIVATE += zlib
else: \
QT_PRIVATE += zlib-private
}

DEFINES += ASSIMP_BUILD_NO_OWN_ZLIB ASSIMP_BUILD_NO_COMPRESSED_IFC ASSIMP_BUILD_NO_Q3BSP_IMPORTER

Expand Down
2 changes: 1 addition & 1 deletion src/3rdparty/assimp/assimp_dependency.pri
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
config_assimp:!if(cross_compile:host_build) {
unix:!contains(QT_CONFIG, no-pkg-config) {
unix:qtConfig(pkg-config) {
CONFIG += link_pkgconfig
PKGCONFIG_PRIVATE += assimp
} else {
Expand Down
2 changes: 0 additions & 2 deletions src/core/core.pro
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,4 @@ include(transforms/transforms.pri)
include(resources/resources.pri)
include(services/services.pri)

!contains(QT_CONFIG, egl):DEFINES += QT_NO_EGL

load(qt_module)
2 changes: 0 additions & 2 deletions src/quick3d/quick3d/quick3d.pro
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ SOURCES += \
qqmlaspectengine.cpp \
qquaternionanimation.cpp

!contains(QT_CONFIG, egl):DEFINES += QT_NO_EGL

# otherwise mingw headers do not declare common functions like ::strcasecmp
win32-g++*:QMAKE_CXXFLAGS_CXX11 = -std=gnu++0x

Expand Down
2 changes: 0 additions & 2 deletions src/quick3d/quick3dextras/quick3dextras.pro
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ HEADERS += \
qt3dquickextras_global.h \
qt3dquickwindow.h

!contains(QT_CONFIG, egl):DEFINES += QT_NO_EGL

# otherwise mingw headers do not declare common functions like ::strcasecmp
win32-g++*:QMAKE_CXXFLAGS_CXX11 = -std=gnu++0x

Expand Down
2 changes: 0 additions & 2 deletions src/quick3d/quick3dinput/quick3dinput.pro
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ HEADERS += \
qt3dquickinput_global.h \
qt3dquickinputnodefactory_p.h

!contains(QT_CONFIG, egl):DEFINES += QT_NO_EGL

# otherwise mingw headers do not declare common functions like ::strcasecmp
win32-g++*:QMAKE_CXXFLAGS_CXX11 = -std=gnu++0x

Expand Down
2 changes: 0 additions & 2 deletions src/quick3d/quick3drender/quick3drender.pro
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ HEADERS += \
qt3dquickrender_global_p.h \
qt3dquickrender_global.h

!contains(QT_CONFIG, egl):DEFINES += QT_NO_EGL

# otherwise mingw headers do not declare common functions like ::strcasecmp
win32-g++*:QMAKE_CXXFLAGS_CXX11 = -std=gnu++0x

Expand Down
2 changes: 0 additions & 2 deletions src/render/render.pro
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ HEADERS += \
qt3drender_global.h \
qt3drender_global_p.h

!contains(QT_CONFIG, egl):DEFINES += QT_NO_EGL

# otherwise mingw headers do not declare common functions like ::strcasecmp
win32-g++*:QMAKE_CXXFLAGS_CXX11 = -std=gnu++0x

Expand Down
2 changes: 1 addition & 1 deletion tests/auto/core/core.pro
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ SUBDIRS = \
qscene \
qservicelocator

contains(QT_CONFIG, private_tests) {
qtConfig(private_tests) {
SUBDIRS += \
qentity \
qframeallocator \
Expand Down
2 changes: 1 addition & 1 deletion tests/auto/input/input.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
TEMPLATE = subdirs

contains(QT_CONFIG, private_tests) {
qtConfig(private_tests) {
SUBDIRS += \
qaxis \
qaction \
Expand Down
2 changes: 1 addition & 1 deletion tests/auto/quick3d/quick3d.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
TEMPLATE = subdirs

contains(QT_CONFIG, private_tests) {
qtConfig(private_tests) {
SUBDIRS += \
quick3dnodeinstantiator \
dynamicnodecreation
Expand Down
2 changes: 1 addition & 1 deletion tests/auto/render/render.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
TEMPLATE = subdirs

contains(QT_CONFIG, private_tests) {
qtConfig(private_tests) {
SUBDIRS += \
entity \
renderqueue \
Expand Down
2 changes: 1 addition & 1 deletion tests/benchmarks/render/render.pro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
TEMPLATE=subdirs

contains(QT_CONFIG, private_tests) {
qtConfig(private_tests) {
SUBDIRS += jobs
}

0 comments on commit 47f3704

Please sign in to comment.