mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
FSX SimConnect code is build and linked only if enabled by the build configuration. refs #145
59 lines
1.6 KiB
Prolog
59 lines
1.6 KiB
Prolog
include (../../config.pri)
|
|
include (../../build.pri)
|
|
|
|
# GUI is required for the matrix classes
|
|
# Network for host info etc.
|
|
QT += network dbus xml multimedia
|
|
|
|
TARGET = blackcore
|
|
TEMPLATE = lib
|
|
CONFIG += staticlib
|
|
CONFIG += blackmisc
|
|
|
|
INCLUDEPATH += ..
|
|
DEPENDPATH += . ..
|
|
|
|
# linux-g++* { QMAKE_CXXFLAGS += -std=c++0x }
|
|
# PRECOMPILED_HEADER = stdpch.h
|
|
|
|
precompile_header:!isEmpty(PRECOMPILED_HEADER) {
|
|
DEFINES += USING_PCH
|
|
}
|
|
|
|
# Causes nmake to run qdbusxml2cpp to automatically generate the dbus adaptor and interface classes,
|
|
# then automatically adds them to the sources to compile
|
|
# !! Make sure the plugin is available as release build and known QT_PLUGIN_PATH
|
|
# QDBUSXML2CPP_ADAPTOR_HEADER_FLAGS = -i blackmisc/blackmiscfreefunctions.h -i blackmisc/blackmiscallvalueclasses.h
|
|
# DBUS_ADAPTORS += blackcore.contextnetwork.xml
|
|
# DBUS_ADAPTORS += blackcore.contextvoice.xml
|
|
# DBUS_ADAPTORS += blackcore.contextsettings.xml
|
|
# DBUS_ADAPTORS += blackcore.contextapplication.xml
|
|
|
|
# QDBUSXML2CPP_INTERFACE_HEADER_FLAGS = -i blackmisc/blackmiscfreefunctions.h -i blackmisc/blackmiscallvalueclasses.h
|
|
# DBUS_INTERFACES += blackcore.contextnetwork.xml
|
|
|
|
DEFINES += LOG_IN_FILE
|
|
|
|
HEADERS += *.h
|
|
SOURCES += *.cpp
|
|
|
|
win32 {
|
|
HEADERS += $$PWD/win/*.h
|
|
SOURCES += $$PWD/win/*.cpp
|
|
|
|
contains(BLACK_CONFIG, FSX) {
|
|
DEFINES += BLACK_WITH_FSX
|
|
HEADERS += $$PWD/fsx/*.h
|
|
SOURCES += $$PWD/fsx/*.cpp
|
|
}
|
|
}
|
|
|
|
win32:!win32-g++*: PRE_TARGETDEPS += ../../lib/blackmisc.lib ../../lib/blacksound.lib
|
|
else: PRE_TARGETDEPS += ../../lib/libblackmisc.a ../../lib/libblacksound.a
|
|
|
|
DESTDIR = ../../lib
|
|
|
|
OTHER_FILES += readme.txt *.xml
|
|
|
|
include (../../libraries.pri)
|