mirror of https://github.com/qt/qt3d.git
Convert qt3d to the new configure system
Remove some duplicated code between the assimp test and assimp_dependency.pri and do all pkg-config related tests during config time. Change-Id: If97c4cf53cd0356e7ee4e618a8d645ea697b3dfc Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
This commit is contained in:
parent
6e8e228852
commit
2ab01d2813
|
|
@ -1,8 +1 @@
|
||||||
SOURCES += main.cpp
|
SOURCES += main.cpp
|
||||||
|
|
||||||
unix:qtConfig(pkg-config) {
|
|
||||||
CONFIG += link_pkgconfig
|
|
||||||
PKGCONFIG += assimp
|
|
||||||
} else {
|
|
||||||
LIBS += -lassimp
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"subconfigs": [
|
||||||
|
"src/core"
|
||||||
|
]
|
||||||
|
}
|
||||||
3
qt3d.pro
3
qt3d.pro
|
|
@ -1,8 +1,5 @@
|
||||||
requires(qtConfig(opengl))
|
requires(qtConfig(opengl))
|
||||||
|
|
||||||
load(configure)
|
|
||||||
qtCompileTest(assimp)
|
|
||||||
|
|
||||||
CONFIG += examples_need_tools
|
CONFIG += examples_need_tools
|
||||||
load(qt_parts)
|
load(qt_parts)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,6 @@
|
||||||
config_assimp:!if(cross_compile:host_build) {
|
QT_FOR_CONFIG += 3dcore-private
|
||||||
unix:qtConfig(pkg-config) {
|
qtConfig(system-assimp):!if(cross_compile:host_build) {
|
||||||
CONFIG += link_pkgconfig
|
QMAKE_USE_PRIVATE += assimp
|
||||||
PKGCONFIG_PRIVATE += assimp
|
|
||||||
} else {
|
|
||||||
LIBS += -lassimp
|
|
||||||
}
|
|
||||||
return()
|
|
||||||
} else {
|
} else {
|
||||||
include(assimp.pri)
|
include(assimp.pri)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
"module": "3dcore",
|
||||||
|
"testDir": "../../config.tests",
|
||||||
|
|
||||||
|
"libraries": {
|
||||||
|
"assimp": {
|
||||||
|
"label": "Assimp",
|
||||||
|
"test": "assimp",
|
||||||
|
"sources": [
|
||||||
|
{ "type": "pkgConfig", "args": "assimp" },
|
||||||
|
"-lassimp"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
"features": {
|
||||||
|
"system-assimp": {
|
||||||
|
"label": "System Assimp",
|
||||||
|
"condition": "libs.assimp",
|
||||||
|
"output": [ "privateFeature" ]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
"report": [
|
||||||
|
],
|
||||||
|
|
||||||
|
"summary": [
|
||||||
|
{
|
||||||
|
"section": "Qt 3D",
|
||||||
|
"entries": [
|
||||||
|
"system-assimp"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue