-
Notifications
You must be signed in to change notification settings - Fork 66
/
src.pri
83 lines (73 loc) · 2.24 KB
/
src.pri
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
75
76
77
78
79
80
81
82
83
QT += gui
QT += opengl
QT += xml
QT += core
QT += network
QT += multimedia
greaterThan(QT_MAJOR_VERSION, 4) {
QT -= gui # using widgets instead gui in Qt5
QT += widgets webenginewidgets
}
#Includes common configuration for all subdirectory .pro files.
INCLUDEPATH += $$PWD/core \
$$PWD/shape \
$$PWD/gui \
$$PWD/control \
$$PWD/app
#Linux-specific:
unix:!macx {
DEFINES += UNIX
CONFIG += link_pkgconfig
INCLUDE_PATH +=
PKGCONFIG += \
gstreamer-1.0 gstreamer-base-1.0 gstreamer-app-1.0 gstreamer-pbutils-1.0 \
gl x11
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-result -Wno-unused-parameter \
-Wno-unused-variable -Wno-switch -Wno-comment \
-Wno-unused-but-set-variable
}
# macOS-specific:
macx {
TARGET = MapMap
DEFINES += MACOSX
QMAKE_CXXFLAGS += -D__MACOSX_CORE__
QMAKE_CXXFLAGS += -stdlib=libc++
INCLUDEPATH += /Library/Frameworks/GStreamer.framework/Versions/1.0/Headers
LIBS += -F /Library/Frameworks/ -framework GStreamer
LIBS += -framework OpenGL -framework GLUT
# With Xcode Tools > 1.5, to reduce the size of your binary even more:
# LIBS += -dead_strip
# This tells qmake not to put the executable inside a bundle.
# just for reference. Do not uncomment.
# CONFIG-=app_bundle
ICON = resources/app_icons/mapmap.icns
}
# Windows-specific:
win32 {
DEFINES += WIN32
TARGET = ../../../MapMap/MapMap # Just for release
GST_HOME = $$quote($$(GSTREAMER_1_0_ROOT_X86))
isEmpty(GST_HOME) {
message(\"GSTREAMER_1_0_ROOT_X86\" not detected ...)
}
else {
message(\"GSTREAMER_1_0_ROOT_X86\" detected in \"$${GST_HOME}\")
}
INCLUDEPATH += $${GST_HOME}/lib/gstreamer-1.0/include \
$${GST_HOME}/include/glib-2.0 \
$${GST_HOME}/lib/glib-2.0/include \
$${GST_HOME}/include/gstreamer-1.0
LIBS += $${GST_HOME}/lib/gstapp-1.0.lib \
$${GST_HOME}/lib/gstbase-1.0.lib \
$${GST_HOME}/lib/gstpbutils-1.0.lib \
$${GST_HOME}/lib/gstreamer-1.0.lib \
$${GST_HOME}/lib/gobject-2.0.lib \
$${GST_HOME}/lib/glib-2.0.lib \
$${GST_HOME}/lib/gstaudio-1.0.lib \
$${GST_HOME}/lib/gstvideo-1.0.lib \
-lopengl32
CONFIG -= debug
CONFIG += release
RC_FILE = resources/windows_resource.rc
QMAKE_CXXFLAGS += -D_USE_MATH_DEFINES
}