-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyaflight.pro
140 lines (109 loc) · 3.07 KB
/
yaflight.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
#-------------------------------------------------
#
# Project created by QtCreator 2012-07-04T16:27:06
#
#-------------------------------------------------
QMAKE_CXXFLAGS += -fPIC -std=gnu++0x
QT += core gui network
lessThan(QT_MAJOR_VERSION, 5): QT += webkit
greaterThan(QT_MAJOR_VERSION, 4): QT += webkitwidgets
MAX_VERSION = 1
MIN_VERSION = 0
PATCH_VERSION = 6
DEFINES += MAX_VERSION=$$MAX_VERSION
DEFINES += MIN_VERSION=$$MIN_VERSION
DEFINES += PATCH_VERSION=$$PATCH_VERSION
DEFINES += STRVERSION=\\\"$${MAX_VERSION}.$${MIN_VERSION}.$${PATCH_VERSION}\\\"
TEMPLATE = app
TARGET = yaflight
VERSION = $${MAX_VERSION}.$${MIN_VERSION}.$${PATCH_VERSION}
mac: ICON = icons/yaflight.icns
win32: RC_FILE = yaflight.rc
unix: isEmpty(DATADIR) {
DATADIR = /usr/share/yaflight
}
TRANSDIR = $$DATADIR/languages/
DEFINES += DATADIR=\\\"$$DATADIR\\\" TRANSDIR=\\\"$$TRANSDIR\\\"
unix:LIBS += -lz
# for development environment
win32:LIBS += C:\Users\Matteo\workspace\zlib-win-build\build-VS2019\Release\libz.dll -lz
win32:INCLUDEPATH += C:\Users\Matteo\workspace\zlib-win-build
else:mac: LIBS += -F$$PWD/../yalib/ -framework yalib
# libyalib for both release and debug as I'm building libyalib as RelWithDebInfo
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../yalib-build/src/ -llibyalib
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../yalib-build/src/ -llibyalib
else:unix: LIBS += -L$$PWD/../yalib/build/src -lyalib
unix:!macx {
target.path = /usr/bin
}
# for the binary to link
INCLUDEPATH += $$PWD/../yalib-build/src
DEPENDPATH += $$PWD/../yalib-build/src
# for the header file
INCLUDEPATH += $$PWD/../yalib/src
DEPENDPATH += $$PWD/../yalib/src
SOURCES += main.cpp\
mainwindow.cpp \
fgenvironment.cpp \
imagepreview.cpp \
cuteexpander.cpp \
aircraft.cpp \
configuration.cpp \
settings.cpp \
airport.cpp \
runway.cpp \
apt_dat.cpp \
surfacecode.cpp \
shouldercode.cpp \
runwaydetailsdialog.cpp \
appsettings.cpp \
dialogappsettings.cpp \
logger.cpp \
aircraftdetailsdialog.cpp \
mpmapbridge.cpp \
dialogmpdetails.cpp \
lonlat.cpp \
mpmdialog.cpp \
helpdialog.cpp
HEADERS += mainwindow.h \
fgenvironment.h \
imagepreview.h \
cuteexpander.h \
aircraft.h \
configuration.h \
settings.h \
airport.h \
runway.h \
apt_dat.h \
surfacecode.h \
shouldercode.h \
runwaydetailsdialog.h \
appsettings.h \
dialogappsettings.h \
logger.h \
aircraftdetailsdialog.h \
mpmapbridge.h \
dialogmpdetails.h \
lonlat.h \
mpmdialog.h \
helpdialog.h
FORMS += mainwindow.ui \
cuteexpander.ui \
runwaydetailsdialog.ui \
dialogappsettings.ui \
aircraftdetailsdialog.ui \
dialogmpdetails.ui \
mpmdialog.ui \
helpdialog.ui
RESOURCES += \
yaflightresources.qrc
OTHER_FILES +=
TRANSLATIONS += languages/cs_CZ.ts \
languages/it_IT.ts \
languages/fr_FR.ts \
languages/de_DE.ts \
languages/es_ES.ts \
languages/ru_RU.ts \
languages/zh_CN.ts \
languages/zh_TW.ts
INSTALLS += target