blob: ac5a39361e66a78fa495e301d7ec156778ca151e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
TEMPLATE = lib
TARGET = qt3dsopengl
VERSION = $$MODULE_VERSION
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|ios {
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|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)
|