-
Notifications
You must be signed in to change notification settings - Fork 2
/
xcontrol.pro
143 lines (135 loc) · 4.7 KB
/
xcontrol.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
######################################
# Init QT for generating a shared library without any Qt functionality
######################################
TEMPLATE = lib
QT -= gui core
CONFIG += plugin release
CONFIG -= thread exceptions qt rtti
######################################
# Define the target Architecture
######################################
CONFIG += 64bit
######################################
# Define global variables
######################################
INCLUDEPATH += ./include
DEFINES += XPLM200
######################################
# Win32 platform specific variables
#
# QT Creator Build chain: msvc32, msvc64
# QT Creator build directory: build\working
# QT Creator Custom process step (msvc32): cmd.exe /c copy /y release\win_32.xpl.dll ..\release\32\win.xpl
# QT Creator Custom process step (msvc32): cmd.exe /c copy /y release\win_32.xpl.map ..\map
# QT Creator Custom process step (msvc64): cmd.exe /c copy /y release\win_64.xpl.dll ..\release\64\win.xpl
# QT Creator Custom process step (msvc64): cmd.exe /c copy /y release\win_64.xpl.map ..\map
######################################
win32 {
DEFINES += APL=0 IBM=1 LIN=0 _CRT_SECURE_NO_WARNINGS
32bit:TARGET = win_32.xpl
64bit:TARGET = win_64.xpl
LIBS += -L../lib
32bit:LIBS += -lXPLM -lXPWidgets -llibusb0
64bit:LIBS += -lXPLM_64 -lXPWidgets_64 -llibusb0_64
QMAKE_CFLAGS_RELEASE += -Od
QMAKE_CXXFLAGS_RELEASE += -Od
QMAKE_LFLAGS_RELEASE += /MAP
}
######################################
# *unix platform common variables
######################################
unix|macx {
QMAKE_CXXFLAGS_WARN_ON += "-Wno-unused-parameter"
32bit {
QMAKE_CFLAGS += -m32
QMAKE_CXXFLAGS += -m32
QMAKE_LFLAGS += -m32
}
64bit {
QMAKE_CFLAGS += -m64
QMAKE_CXXFLAGS += -m64
QMAKE_LFLAGS += -m64
}
}
######################################
# Linux platform specific variables
#
# QT Creator Build chain: gcc
# QT Creator build directory: build/working
# QT Creator Custom process step: cp liblin_32.xpl.so ../release/32/lin.xpl
# QT Creator Custom process step: cp liblin_64.xpl.so ../release/64/lin.xpl
######################################
unix:!macx {
DEFINES += APL=0 IBM=0 LIN=1
32bit:TARGET = lin_32.xpl
64bit:TARGET = lin_64.xpl
QMAKE_CXXFLAGS += -fvisibility=hidden
# Libusb0 source files
INCLUDEPATH += include/libusb0
SOURCES += libusb0/usb.c
SOURCES += libusb0/error.c
SOURCES += libusb0/linux.c
SOURCES += libusb0/descriptors.c
}
######################################
# Mac OSX platform specific variables
#
# QT Creator Build chain: xcode
# QT Creator build directory: build/working
# QT Creator Custom process step: cp libmac_32.xpl.dylib ../release/32/mac.xpl
# QT Creator Custom process step: cp libmac_64.xpl.dylib ../release/64/mac.xpl
######################################
macx {
DEFINES += APL=1 IBM=0 LIN=0
32bit:TARGET = mac_32.xpl
64bit:TARGET = mac_64.xpl
QMAKE_LFLAGS += -flat_namespace -undefined suppress
CONFIG += x86 ppc
# Libusb-1.0 source files
INCLUDEPATH += include/libusb-1.0
INCLUDEPATH += include/libusb-1.0/os
SOURCES += libusb-1.0/core.c
SOURCES += libusb-1.0/descriptor.c
SOURCES += libusb-1.0/io.c
SOURCES += libusb-1.0/strerror.c
SOURCES += libusb-1.0/sync.c
SOURCES += libusb-1.0/hotplug.c
SOURCES += libusb-1.0/os/threads_posix.c
SOURCES += libusb-1.0/os/poll_posix.c
SOURCES += libusb-1.0/os/darwin_usb.c
}
######################################
# Source Files - Headers
######################################
HEADERS += include/*.h
HEADERS += include/libusb-1.0/*.h
HEADERS += include/libusb0/*.h
HEADERS += include/libusb-win32/*.h
HEADERS += include/SDK/*.h
######################################
# Source Files - CPP
######################################
SOURCES += main.cpp
SOURCES += session.cpp
SOURCES += tools.cpp
SOURCES += data.cpp
SOURCES += out.cpp
SOURCES += out_saitek.cpp
SOURCES += in.cpp
SOURCES += mfdpage.cpp
SOURCES += mfdpage_fms.cpp
SOURCES += mfdpage_flight.cpp
SOURCES += mfdpage_time.cpp
SOURCES += mfdpage_weather.cpp
SOURCES += mfdpage_std.cpp
SOURCES += mfdpage_led.cpp
SOURCES += fms.cpp
SOURCES += fms_config.cpp
SOURCES += fms_fuel.cpp
SOURCES += fms_fp.cpp
SOURCES += fms_utils.cpp
SOURCES += config.cpp
SOURCES += gui.cpp
SOURCES += gui_mfd.cpp
SOURCES += gui_fms_option.cpp
SOURCES += gui_fms_status.cpp