forked from mpaperno/qgroundcontrol_aq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqgroundcontrol_aq.pro
155 lines (135 loc) · 3.93 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
# -------------------------------------------------
# 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 <lm@inf.ethz.ch>
# (c) 2009-2011 QGroundControl Developers
#
# AutoQuad Maintainer:
# Maxim Paperno <MPaperno@WorldDesign.com>
# (c) 2013-2014 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
## 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
} else {
error(Unsupported build type)
}
# debug/release
CONFIG(debug, debug|release) {
message(Debug build)
CONFIG += DebugBuild
} else:CONFIG(release, debug|release) {
message(Release build)
CONFIG += ReleaseBuild
} 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
}
# 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_
## Misc definitions & settings
# Make sure custom qDebug() handler has context available
DEFINES *= QT_MESSAGELOGCONTEXT
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_
ReleaseBuild {
DEFINES += QT_NO_DEBUG
}
DebugRelease {
DEFINES += QT_DEBUG
}
# 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/mavlink/v1.0
LANGUAGE = C++
CODECFORTR = UTF-8
CODECFORSRC = UTF-8
# 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 -----")
}
# 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