refs #282 changes to get xbus to compile on Linux

This commit is contained in:
Mathew Sutcliffe
2014-07-04 00:09:44 +01:00
parent b5097a0e63
commit c00324ef12
2 changed files with 22 additions and 4 deletions

10
src/xbus/xbus.map Normal file
View File

@@ -0,0 +1,10 @@
{
global:
XPluginStart;
XPluginStop;
XPluginEnable;
XPluginDisable;
XPluginReceiveMessage;
local:
*;
};

View File

@@ -5,13 +5,17 @@ QT += core gui widgets dbus network
TEMPLATE = lib
CONFIG += shared
CONFIG += shared plugin
CONFIG += blackmisc blackcore
win32 {
equals(WORD_SIZE,64): LIBS += -lXPLM_64
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
INCLUDEPATH += . ../../src
@@ -65,13 +69,17 @@ linux:TARGET = lin
macx:TARGET = mac
macx {
# a single dylib file contains both 32bit and 64bit binaries
DESTDIR = ../../xbus
XBUS_DESTDIR = ../../xbus
}
else {
equals(WORD_SIZE,64): DESTDIR = ../../xbus/64
equals(WORD_SIZE,32): DESTDIR = ../../xbus
equals(WORD_SIZE,64): XBUS_DESTDIR = ../../xbus/64
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)
# TODO refactor .pri files into common_pre.pri and common_post.pri