-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathqgroundcontrol_aq.pro
173 lines (146 loc) · 4.67 KB
/
qgroundcontrol_aq.pro
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
# -------------------------------------------------
# QGroundControl AQ - AutoQuad Groundstation
# Based on QGroundControl - Micro Air Vehicle Groundstation
# Extensively Modifeid For AutoQuad flight controller
# Please see our website at <http://autoquad.org>
# Please see the original QGroundControl website
# at <http://qgroundcontrol.org>
#
# QGroundControl Creator:
# Lorenz Meier <[email protected]>
# (c) 2009-2011 QGroundControl Developers
#
# AutoQuad Maintainer:
# Maxim Paperno <[email protected]>
# (c) 2013-2015 Maxim Paperno
#
# Original Conversion for AutoQuad
# 2012-2013 by Peter Hafner
#
#
# This file is part of the open source AutoQuad project.
# QGroundControl AQ is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# QGroundControl is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with QGroundControl AQ. If not, see <http://www.gnu.org/licenses/>.
# -------------------------------------------------
message(Qt version $$[QT_VERSION])
TEMPLATE = app
TARGET = qgroundcontrol_aq
# build directories
DESTDIR = $${OUT_PWD}/bin
BUILDDIR = $${OUT_PWD}/build
OBJECTS_DIR = $${BUILDDIR}/obj
MOC_DIR = $${BUILDDIR}/moc
UI_DIR = $${BUILDDIR}/ui
RCC_DIR = $${BUILDDIR}/rcc
# root of project files, used later in install step
BASEDIR = $$_PRO_FILE_PWD_
## Set up some config vars for ease of use
# platform
linux-g++* {
message(Linux build)
CONFIG += LinuxBuild
} else : win* {
message(Windows build)
CONFIG += WinBuild
} else : macx* {
message(Mac build)
CONFIG += MacBuild
#CONFIG += DoMacDeploy #uncomment or speicfy on cmd-line to run macdeployqt after install steps
} else {
error(Unsupported build type)
}
# debug/release
CONFIG(debug, debug|release) {
message(Debug build)
CONFIG += DebugBuild
DEFINES += QT_DEBUG
STYLES_PATH = $${BASEDIR}/files/styles/
DOCFILES_PATH = $${BASEDIR}/files/docs/
} else:CONFIG(release, debug|release) {
message(Release build)
CONFIG += ReleaseBuild
DEFINES += QT_NO_DEBUG
STYLES_PATH = :/files/styles/
DOCFILES_PATH = :/files/docs/
} else {
error(Unsupported build type)
}
# bitness
*64 {
message(64-bit build)
CONFIG += Build64Bits
} else {
message(32-bit build)
CONFIG += Build32Bits
}
# Qt configuration
QT += network \
opengl \
svg \
xml \
webkit \
sql
greaterThan(QT_MAJOR_VERSION, 4) {
QT += widgets webkitwidgets multimedia printsupport concurrent
} else {
CONFIG += qt thread
}
## Misc definitions & settings
STYLES_DEFAULT_FILE = $${STYLES_PATH}style-default.css
# Make sure custom qDebug() handler has context available in all build types.
DEFINES *= QT_MESSAGELOGCONTEXT
# Stringbuilder allows efficient string concat using % operator, required.
DEFINES *= QT_USE_QSTRINGBUILDER
DEFINES += MAVLINK_NO_DATA
# set to build w/out QtSpeech
#DEFINES += NO_TEXT_TO_SPEECH
# set to build with VLC support # Windows only #
#DEFINES += QGC_USE_VLC
# Turn off serial port warnings
#DEFINES += _TTY_NOWARN_
# Include ESC32v2 setup GUI
#DEFINES += INCLUDE_ESC32V2_UI
# Include test/development tab in AQ settings widget
#DEFINES += INCLUDE_DEVEL_WIDGET
# if the variable MAVLINK_CONF contains the name of an
# additional project, QGroundControl includes the support
# of custom MAVLink messages of this project. It will also
# create a QGC_USE_{AUTOPILOT_NAME}_MESSAGES macro for use within the actual code.
MAVLINK_CONF = "autoquad"
MAVLINKPATH = $$BASEDIR/libs/mavlink/include
LANGUAGE = C++
CODECFORTR = UTF-8
CODECFORSRC = UTF-8
ICONS = files/images/icons/qgroundcontrol.png
# If a user config file exists, it will be included.
exists(user_config.pri) {
include(user_config.pri)
message("----- USING CUSTOM USER QGROUNDCONTROL CONFIG FROM user_config.pri -----")
}
DEFINES += STYLES_PATH=\\\"$${STYLES_PATH}\\\"
DEFINES += STYLES_DEFAULT_FILE=\\\"$${STYLES_DEFAULT_FILE}\\\"
#DEFINES += STYLES_NO_DEFAULT # define this to skip the base default css entirely
DEFINES += DOCFILES_PATH=\\\"$${DOCFILES_PATH}\\\"
# OS-specific external libs and settings
MacBuild: include(config_OSX.pri)
WinBuild: include(config_Windows.pri)
LinuxBuild: include(config_Linux.pri)
# common external libs
include(config_external_libs.pri)
# post-build steps
include(qgc_install.pri)
# Input
include(src/src.pri)
RESOURCES += qgroundcontrol.qrc
TRANSLATIONS += files/lang/de.ts \
files/lang/en.ts \
files/lang/pl.ts
OTHER_FILES += files/styles/*.css