forked from vranki/ExtPlane
-
Notifications
You must be signed in to change notification settings - Fork 0
/
extplane-plugin.pro
90 lines (74 loc) · 2.3 KB
/
extplane-plugin.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
#
# ExtPlane plugin build configuration
#
# Change to -DXPLM200=1 for SDK 2.0.0 (X-Plane 9)
QMAKE_CXXFLAGS += -DXPLM210=1
# If your X-Plane SDK is in another directory, add or change it here:
INCLUDEPATH += $$(HOME)/SDK/CHeaders/XPLM
INCLUDEPATH += ../XPlaneSDK/CHeaders/XPLM
INCLUDEPATH += SDK/CHeaders/XPLM
# You should not need to touch anything below this for normal build
# Detailed X-Plane plugin build instructions here:
# http://www.xsquawkbox.net/xpsdk/mediawiki/BuildInstall
QT += core network
QT -= gui
CONFIG += console warn_on release shared
CONFIG -= app_bundle
TEMPLATE = lib
TARGET = extplane-plugin
QMAKE_CXXFLAGS += -fPIC
QMAKE_LFLAGS += -shared -fPIC
# -static-libgcc <- fails on mac
CONFIG(debug, debug|release) {
# Debug
} else {
# Release
DEFINES += QT_NO_DEBUG
DEFINES += QT_NO_DEBUG_OUTPUT
}
unix:!macx {
DEFINES += APL=0 IBM=0 LIN=1
QMAKE_CFLAGS += -fstack-protector
QMAKE_CXXFLAGS += -fstack-protector
QMAKE_LFLAGS += -shared -rdynamic -nodefaultlibs -undefined_warning
}
macx {
DEFINES += APL=1 IBM=0 LIN=0
QMAKE_LFLAGS += -dynamiclib
# -flat_namespace -undefined warning <- not needed or recommended anymore.
# Build for multiple architectures.
# The following line is only needed to build universal on PPC architectures.
# QMAKE_MAC_SDK=/Devloper/SDKs/MacOSX10.4u.sdk
# This line defines for wich architectures we build.
CONFIG += x86 ppc
QMAKE_LFLAGS += -F../XPlaneSDK/Libraries/Mac
LIBS += -framework XPLM
}
QMAKE_POST_LINK += $(COPY_FILE) $(TARGET) extplane.xpl
QMAKE_CLEAN += extplane.xpl
SOURCES += main.cpp \
xplaneplugin.cpp \
tcpserver.cpp \
tcpclient.cpp \
datarefprovider.cpp \
datarefs/dataref.cpp \
datarefs/floatdataref.cpp \
datarefs/floatarraydataref.cpp \
datarefs/intdataref.cpp \
datarefs/doubledataref.cpp \
datarefs/intarraydataref.cpp \
datarefs/datadataref.cpp
HEADERS += \
xplaneplugin.h \
tcpserver.h \
tcpclient.h \
datarefprovider.h \
datarefs/dataref.h \
datarefs/floatdataref.h \
datarefs/floatarraydataref.h \
datarefs/intdataref.h \
datarefs/doubledataref.h \
datarefs/intarraydataref.h \
datarefs/datadataref.h \
util/console.h
OTHER_FILES += README client/extplane-client-qt/README