Move xplane bus project into top source directory

refs #211
This commit is contained in:
Roland Winklmeier
2014-04-18 14:36:23 +02:00
parent cdbc635361
commit 15fb87ecd0
5 changed files with 15 additions and 15 deletions

71
src/xbus/xbus.pro Normal file
View File

@@ -0,0 +1,71 @@
include (../../config.pri)
include (../../build.pri)
QT += core gui widgets dbus network
TEMPLATE = lib
CONFIG += shared
CONFIG += blackmisc
LIBS += -lXPLM
DEPENDPATH += . ../../src
INCLUDEPATH += . ../../src
SOURCES += *.cpp
HEADERS += *.h
#win32:!win32-g++*: PRE_TARGETDEPS += ../../../../lib/blackmisc.lib
# Required by X-Plane SDK
DEFINES += XPLM200=1
win32:DEFINES += IBM
linux:DEFINES += LIN
macx:DEFINES += APL
# X-Plane plugins must follow a prescribed filename and directory structure.
# CPU architecture detection copied from externals.pri;
# TODO: refactor so detection is is done in only one place.
TARGET_EXT = .xpl
win32:TARGET = win
linux:TARGET = lin
macx:TARGET = mac
win32:contains(QMAKE_TARGET.arch, x86_64) {
DESTDIR = ../../xbus/64
}
win32:contains(QMAKE_TARGET.arch, x86) {
DESTDIR = ../../xbus
}
win32-g++ {
WIN_FIND = $$(SYSTEMROOT)\system32\find
MINGW64 = $$system($$QMAKE_CXX -Q --help=target | $$WIN_FIND \"-m64\")
contains(MINGW64,[enabled]) {
DESTDIR = ../../xbus/64
}
else {
DESTDIR = ../../xbus
}
}
linux-g++ {
GCC64 = $$system($$QMAKE_CXX -Q --help=target | grep m64)
contains(GCC64,[enabled]) {
DESTDIR = ../../xbus/64
}
else {
DESTDIR = ../../xbus
}
}
linux-g++-64 {
DESTDIR = ../../xbus/64
}
linux-g++-32 {
DESTDIR = ../../xbus
}
macx {
# a single dylib file contains both 32bit and 64bit binaries
DESTDIR = ../../xbus
}
include (../../libraries.pri)