diff options
author | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2017-10-31 15:32:57 +0200 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2017-11-03 07:44:56 +0000 |
commit | 25ef05740b09ea2feb437039777fdbd573cbb1fc (patch) | |
tree | c9a31ca704cd3346c727e78dc235c16cb57242ef /src/Runtime/Qt3DSRuntime | |
parent | 5d0d56707c26650dc53c1258cf0f801125c47d69 (diff) |
Refactor .pro file structure
Moved various .pro files under their respective subdirectories, so they
don't all build their object files into same directory, potentially
causing conflicts.
Also fixes the issue with missing Qt3DStudio target.
Task-number: QT3DS-294
Change-Id: I6a8ffc6a596d65e39c1fde21b4157c86a91581d0
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/Runtime/Qt3DSRuntime')
-rw-r--r-- | src/Runtime/Qt3DSRuntime/Qt3DSRuntime.pro | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/src/Runtime/Qt3DSRuntime/Qt3DSRuntime.pro b/src/Runtime/Qt3DSRuntime/Qt3DSRuntime.pro new file mode 100644 index 00000000..1ad14595 --- /dev/null +++ b/src/Runtime/Qt3DSRuntime/Qt3DSRuntime.pro @@ -0,0 +1,74 @@ +TEMPLATE = lib +TARGET = qt3dsruntime + +DEFINES += QT3DS_RUNTIME_EXPORTS + +CONFIG += installed +include(../commoninclude.pri) +QT += qml + +boot2qt: { + RESOURCES += ../res.qrc + DEFINES += EMBEDDED_LINUX # TODO: Is there a compile-time flag for boot2qt? +} + +integrity { + RESOURCES += ../res.qrc +} + +SOURCES += \ + ../Source/Viewer/Qt3DSAudioPlayerImpl.cpp \ + ../Source/Viewer/Qt3DSViewerApp.cpp + +HEADERS += \ + ../Source/Viewer/qt3dsruntimeglobal.h \ + ../Source/Viewer/Qt3DSAudioPlayerImpl.h \ + ../Source/Viewer/Qt3DSViewerApp.h \ + ../Source/Viewer/Qt3DSViewerTimer.h + +linux { + BEGIN_ARCHIVE = -Wl,--whole-archive + END_ARCHIVE = -Wl,--no-whole-archive +} + +STATICRUNTIME = \ + $$BEGIN_ARCHIVE \ + -lEASTL$$qtPlatformTargetSuffix() \ + -lLua$$qtPlatformTargetSuffix() \ + -lqt3dsruntimestatic$$qtPlatformTargetSuffix() \ + $$END_ARCHIVE + +# On non-windows systems link the whole static archives and do not put them +# in the prl file to prevent them being linked again by targets that depend +# upon this shared library +!win32:!CONFIG(static){ + QMAKE_LFLAGS += $$STATICRUNTIME + LIBS += -lqt3dsqmlstreamer$$qtPlatformTargetSuffix() +} else { + LIBS += \ + $$STATICRUNTIME \ + -lqt3dsqmlstreamer$$qtPlatformTargetSuffix() +} + +win32 { + LIBS += \ + -lws2_32 + + RESOURCES += ../platformres.qrc +} + +linux { + LIBS += \ + -ldl \ + -lEGL +} + +macos { + QMAKE_LFLAGS_SONAME = -Wl,-install_name,@rpath/ +} + + +PREDEPS_LIBS = qt3dsruntimestatic + +include(../../utils.pri) +PRE_TARGETDEPS += $$fixLibPredeps($$LIBDIR, PREDEPS_LIBS) |