Added a build flag for FSX specific code

FSX SimConnect code is build and linked only if enabled
by the build configuration.

refs #145
This commit is contained in:
Roland Winklmeier
2014-03-10 21:50:54 +01:00
parent e978b6dee1
commit 0349d8f212
6 changed files with 30 additions and 9 deletions

View File

@@ -37,12 +37,15 @@ DEFINES += LOG_IN_FILE
HEADERS += *.h
SOURCES += *.cpp
HEADERS += $$PWD/fsx/*.h
SOURCES += $$PWD/fsx/*.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