diff options
author | Pasi Keränen <pasi.keranen@qt.io> | 2019-06-06 16:22:02 +0300 |
---|---|---|
committer | Pasi Keränen <pasi.keranen@qt.io> | 2019-06-07 13:52:44 +0300 |
commit | b4954701093739e7a4e54a0669f306922d0d4605 (patch) | |
tree | 73d71319a921234f6b507c9098fdc842f7fe06dc /src/ogl-runtime-dylib | |
parent | 8548a5f5579e3eee7e5ae6b1f6901dcc8bfee19e (diff) |
Long live the slayer!
Initial commit of OpenGL Runtime to repository.
Based on SHA1 61823aaccc6510699a54b34a2fe3f7523dab3b4e
of qt3dstudio repository.
Task-number: QT3DS-3600
Change-Id: Iaeb80237399f0e5656a19ebec9d1ab3a681d8832
Reviewed-by: Pasi Keränen <pasi.keranen@qt.io>
Diffstat (limited to 'src/ogl-runtime-dylib')
-rw-r--r-- | src/ogl-runtime-dylib/ogl-runtime-dylib.pro | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/src/ogl-runtime-dylib/ogl-runtime-dylib.pro b/src/ogl-runtime-dylib/ogl-runtime-dylib.pro new file mode 100644 index 0000000..6cafa4c --- /dev/null +++ b/src/ogl-runtime-dylib/ogl-runtime-dylib.pro @@ -0,0 +1,74 @@ +TEMPLATE = lib +TARGET = qt3dsopengl +VERSION = $$MODULE_VERSION + +DEFINES += QT3DS_RUNTIME_EXPORTS + +CONFIG += installed +include(../commoninclude.pri) +QT += qml +QT += quick-private + +boot2qt: { + RESOURCES += ../../res.qrc + DEFINES += EMBEDDED_LINUX # TODO: Is there a compile-time flag for boot2qt? +} + +integrity|ios { + RESOURCES += ../../res.qrc +} + +SOURCES += \ + ../viewer/Qt3DSAudioPlayerImpl.cpp \ + ../viewer/Qt3DSViewerApp.cpp + +HEADERS += \ + ../viewer/qt3dsruntimeglobal.h \ + ../viewer/Qt3DSAudioPlayerImpl.h \ + ../viewer/Qt3DSViewerApp.h \ + ../viewer/Qt3DSViewerTimer.h + +linux|qnx|mingw { + BEGIN_ARCHIVE = -Wl,--whole-archive + END_ARCHIVE = -Wl,--no-whole-archive +} + +STATICRUNTIME = \ + $$BEGIN_ARCHIVE \ + -lqt3dsruntimestatic$$qtPlatformTargetSuffix() \ + -lEASTL$$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) |