mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-04 08:55:43 +08:00
refs #282 changes to get xbus to compile on Linux
This commit is contained in:
10
src/xbus/xbus.map
Normal file
10
src/xbus/xbus.map
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
global:
|
||||||
|
XPluginStart;
|
||||||
|
XPluginStop;
|
||||||
|
XPluginEnable;
|
||||||
|
XPluginDisable;
|
||||||
|
XPluginReceiveMessage;
|
||||||
|
local:
|
||||||
|
*;
|
||||||
|
};
|
||||||
@@ -5,13 +5,17 @@ QT += core gui widgets dbus network
|
|||||||
|
|
||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
|
|
||||||
CONFIG += shared
|
CONFIG += shared plugin
|
||||||
CONFIG += blackmisc blackcore
|
CONFIG += blackmisc blackcore
|
||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
equals(WORD_SIZE,64): LIBS += -lXPLM_64
|
equals(WORD_SIZE,64): LIBS += -lXPLM_64
|
||||||
equals(WORD_SIZE,32): LIBS += -lXPLM
|
equals(WORD_SIZE,32): LIBS += -lXPLM
|
||||||
}
|
}
|
||||||
|
unix {
|
||||||
|
# Flags needed because there is no XPLM link library
|
||||||
|
QMAKE_LFLAGS += -shared -rdynamic -nodefaultlibs -undefined_warning -Wl,--version-script=$$PWD/xbus.map
|
||||||
|
}
|
||||||
|
|
||||||
DEPENDPATH += . ../../src
|
DEPENDPATH += . ../../src
|
||||||
INCLUDEPATH += . ../../src
|
INCLUDEPATH += . ../../src
|
||||||
@@ -65,13 +69,17 @@ linux:TARGET = lin
|
|||||||
macx:TARGET = mac
|
macx:TARGET = mac
|
||||||
macx {
|
macx {
|
||||||
# a single dylib file contains both 32bit and 64bit binaries
|
# a single dylib file contains both 32bit and 64bit binaries
|
||||||
DESTDIR = ../../xbus
|
XBUS_DESTDIR = ../../xbus
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
equals(WORD_SIZE,64): DESTDIR = ../../xbus/64
|
equals(WORD_SIZE,64): XBUS_DESTDIR = ../../xbus/64
|
||||||
equals(WORD_SIZE,32): DESTDIR = ../../xbus
|
equals(WORD_SIZE,32): XBUS_DESTDIR = ../../xbus
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# QMake's Makefile generator ignores TARGET_EXT
|
||||||
|
unix: QMAKE_POST_LINK += cp $$DESTDIR/lib$${TARGET}.so $$XBUS_DESTDIR/$${TARGET}.xpl
|
||||||
|
else: DESTDIR = $$XBUS_DESTDIR
|
||||||
|
|
||||||
include (../../libraries.pri)
|
include (../../libraries.pri)
|
||||||
|
|
||||||
# TODO refactor .pri files into common_pre.pri and common_post.pri
|
# TODO refactor .pri files into common_pre.pri and common_post.pri
|
||||||
|
|||||||
Reference in New Issue
Block a user