forked from mcallegari/qlcplus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.pri
129 lines (100 loc) · 4.14 KB
/
variables.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#############################################################################
# Application name & version
#############################################################################
APPNAME = Q Light Controller Plus
FXEDNAME = Fixture Definition Editor
APPVERSION = 4.7.3 GIT
#############################################################################
# Compiler & linker configuration
#############################################################################
# Treat all compiler warnings as errors
QMAKE_CXXFLAGS += -Werror
!macx:QMAKE_CXXFLAGS += -Wno-unused-local-typedefs # Fix to build with GCC 4.8
CONFIG += warn_on
# Build everything in the order specified in .pro files
CONFIG += ordered
CONFIG -= release # Enable this when making a release
CONFIG += debug # Disable this when making a release
# Disable these if you don't want to see SVN revision in the About Box
#unix:REVISION = $$system(svn info | grep "Revision" | sed 's/Revision://')
#unix:APPVERSION = $$APPVERSION-r$$REVISION
unix:OLA_GIT = /usr/src/ola # OLA directories
#macx:CONFIG += x86 ppc # Build universal binaries (Leopard only)
macx:CONFIG -= app_bundle # Let QLC+ construct the .app bundle
# Produce build targets to the source directory
win32:DESTDIR = ./
# Don't whine about some imports
win32:QMAKE_LFLAGS += -Wl,--enable-auto-import
# Enable unit test coverage measurement ('qmake CONFIG+=coverage' works, too)
#CONFIG += coverage
#############################################################################
# Installation paths
#############################################################################
# Install root
win32:INSTALLROOT = $$(SystemDrive)/qlcplus
macx:INSTALLROOT = ~/QLC+.app/Contents
unix:!macx:INSTALLROOT += /usr
# Binaries
win32:BINDIR =
unix:!macx:BINDIR = bin
macx:BINDIR = MacOS
# Libraries
win32:LIBSDIR =
unix:!macx:LIBSDIR = lib
macx:LIBSDIR = Frameworks
# Data
win32:DATADIR =
unix:!macx:DATADIR = share/qlcplus
macx:DATADIR = Resources
# User Data
win32:USERDATADIR = QLC+
unix:!macx:USERDATADIR = .qlcplus
macx:USERDATADIR = "Library/Application Support/QLC+"
# Documentation
win32:DOCSDIR = Documents
unix:!macx:DOCSDIR = $$DATADIR/documents
macx:DOCSDIR = $$DATADIR/Documents
# Input profiles
win32:INPUTPROFILEDIR = InputProfiles
unix:!macx:INPUTPROFILEDIR = $$DATADIR/inputprofiles
macx:INPUTPROFILEDIR = $$DATADIR/InputProfiles
# User input profiles
win32:USERINPUTPROFILEDIR = $$USERDATADIR/InputProfiles
unix:!macx:USERINPUTPROFILEDIR = $$USERDATADIR/inputprofiles
macx:USERINPUTPROFILEDIR = $$USERDATADIR/InputProfiles
# Midi templates
win32:MIDITEMPLATEDIR = MidiTemplates
unix:!macx:MIDITEMPLATEDIR = $$DATADIR/miditemplates
macx:MIDITEMPLATEDIR = $$DATADIR/MidiTemplates
# User midi templates
win32:USERMIDITEMPLATEDIR = $$USERDATADIR/MidiTemplates
unix:!macx:USERMIDITEMPLATEDIR = $$USERDATADIR/miditemplates
macx:USERMIDITEMPLATEDIR = $$USERDATADIR/MidiTemplates
# Fixtures
win32:FIXTUREDIR = Fixtures
unix:!macx:FIXTUREDIR = $$DATADIR/fixtures
macx:FIXTUREDIR = $$DATADIR/Fixtures
# Gobos
win32:GOBODIR = Gobos
unix:!macx:GOBODIR = $$DATADIR/gobos
macx:GOBODIR = $$DATADIR/Gobos
# User fixtures
win32:USERFIXTUREDIR = $$USERDATADIR/Fixtures
unix:!macx:USERFIXTUREDIR = $$USERDATADIR/fixtures
macx:USERFIXTUREDIR = $$USERDATADIR/Fixtures
# Plugins
win32:PLUGINDIR = Plugins
unix:!macx:PLUGINDIR = $$LIBSDIR/qt4/plugins/qlcplus
macx:PLUGINDIR = Plugins
# Translations
win32:TRANSLATIONDIR =
unix:!macx:TRANSLATIONDIR = $$DATADIR/translations
macx:TRANSLATIONDIR = $$DATADIR/Translations
# RGB Scripts
win32:RGBSCRIPTDIR = RGBScripts
unix:!macx:RGBSCRIPTDIR = $$DATADIR/rgbscripts
macx:RGBSCRIPTDIR = $$DATADIR/RGBScripts
# User RGB Scripts
win32:USERRGBSCRIPTDIR = $$USERDATADIR/RGBScripts
unix:!macx:USERRGBSCRIPTDIR = $$USERDATADIR/rgbscripts
macx:USERRGBSCRIPTDIR = $$USERDATADIR/RGBScripts