From: Erik Hofman Date: Wed, 6 Jul 2016 11:27:14 +0000 (+0200) Subject: Add support for AeonWave X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6cbfba384111f3cd338cddeb9babe93e070e3e74;p=flightgear.git Add support for AeonWave --- diff --git a/CMakeLists.txt b/CMakeLists.txt index de0b23cfa..256c1836b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -175,6 +175,7 @@ option(ENABLE_PROFILE "Set to ON to build FlightGear with gperftools profilin option(SYSTEM_SQLITE "Set to ON to build FlightGear with the system's SQLite3 library" OFF) option(ENABLE_IAX "Set to ON to build FlightGear with IAXClient/fgcom built-in (default)" ON) option(USE_DBUS "Set to ON to build FlightGear with DBus screensaver interaction (default on Linux)" ${USE_DBUS_DEFAULT}) +option(USE_AEONWAVE "Set to ON to use AeonWave instead of OpenAL" ON) option(SYSTEM_SPEEX "Set to ON to build IAXClient with the system's speex and speexdsp library" ${SYSTEM_SPEEX_DEFAULT}) option(SYSTEM_GSM "Set to ON to build IAXClient with the system's GSM library" ${SYSTEM_GSM_DEFAULT}) option(SYSTEM_FLITE "Set to ON to build Flightgear with the system's Flite library" ${SYSTEM_FLITE_DEFAULT}) @@ -383,11 +384,21 @@ include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR} - ${OPENAL_INCLUDE_DIR} ${SIMGEAR_INCLUDE_DIRS} ${PLIB_INCLUDE_DIR} ${SQLITE3_INCLUDED_DIR} ) +if (USE_AEONWAVE) + find_package(AAX COMPONENTS aax REQUIRED) + include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS} + ${AAX_INCLUDE_DIR} + ) +else() + include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS} + ${OPENAL_INCLUDE_DIR} + ) +endif() + include_directories(${PROJECT_SOURCE_DIR}) include_directories(${PROJECT_SOURCE_DIR}/src) # following is needed, because config.h is include 'bare', whereas diff --git a/CMakeModules/ConfigureMsvc3rdParty.cmake b/CMakeModules/ConfigureMsvc3rdParty.cmake index ecfea56d4..9bf10ada2 100644 --- a/CMakeModules/ConfigureMsvc3rdParty.cmake +++ b/CMakeModules/ConfigureMsvc3rdParty.cmake @@ -57,6 +57,10 @@ if (MSVC AND MSVC_3RDPARTY_ROOT) ${MSVC_3RDPARTY_ROOT}/boost_1_44_0 ) message(STATUS "BOOST_ROOT is ${BOOST_ROOT}") - set (OPENAL_INCLUDE_DIR ${MSVC_3RDPARTY_ROOT}/${MSVC_3RDPARTY_DIR}/include) - set (OPENAL_LIBRARY_DIR ${MSVC_3RDPARTY_ROOT}/${MSVC_3RDPARTY_DIR}/lib) + if (USE_AEONWAVE) + find_package(AAX COMPONENTS aax REQUIRED) + else() + set (OPENAL_INCLUDE_DIR ${MSVC_3RDPARTY_ROOT}/${MSVC_3RDPARTY_DIR}/include) + set (OPENAL_LIBRARY_DIR ${MSVC_3RDPARTY_ROOT}/${MSVC_3RDPARTY_DIR}/lib) + endif() endif (MSVC AND MSVC_3RDPARTY_ROOT) diff --git a/CMakeModules/FindSimGear.cmake b/CMakeModules/FindSimGear.cmake index 1cfb7da9a..e9fd2958b 100644 --- a/CMakeModules/FindSimGear.cmake +++ b/CMakeModules/FindSimGear.cmake @@ -148,8 +148,13 @@ else(SIMGEAR_SHARED) ${ZLIB_LIBRARY} ${WINMM_LIBRARY}) - set(SIMGEAR_SCENE_LIBRARY_DEPENDENCIES - ${OPENAL_LIBRARY}) + if (USE_AEONWAVE) + set(SIMGEAR_SCENE_LIBRARY_DEPENDENCIES + ${AAX_LIBRARY}) + else() + set(SIMGEAR_SCENE_LIBRARY_DEPENDENCIES + ${OPENAL_LIBRARY}) + endif() if(APPLE) find_library(COCOA_LIBRARY Cocoa) diff --git a/src/Environment/fgclouds.cxx b/src/Environment/fgclouds.cxx index 58653e053..13e2e1d1c 100644 --- a/src/Environment/fgclouds.cxx +++ b/src/Environment/fgclouds.cxx @@ -31,7 +31,7 @@ #include
#include -#include +#include #include //#include #include diff --git a/src/Instrumentation/mk_viii.cxx b/src/Instrumentation/mk_viii.cxx index 5c18cf063..5d27ef996 100644 --- a/src/Instrumentation/mk_viii.cxx +++ b/src/Instrumentation/mk_viii.cxx @@ -74,7 +74,7 @@ #include #include #include -#include +#include #include #include diff --git a/src/Instrumentation/tcas.cxx b/src/Instrumentation/tcas.cxx index ce16ce5a4..c06e3ffd0 100644 --- a/src/Instrumentation/tcas.cxx +++ b/src/Instrumentation/tcas.cxx @@ -100,7 +100,7 @@ #include #include #include -#include +#include #include #include diff --git a/src/Main/fg_commands.cxx b/src/Main/fg_commands.cxx index ab8760693..8408b63d9 100644 --- a/src/Main/fg_commands.cxx +++ b/src/Main/fg_commands.cxx @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include #include diff --git a/src/Main/fg_props.cxx b/src/Main/fg_props.cxx index e4bff808c..e4d716bcc 100644 --- a/src/Main/fg_props.cxx +++ b/src/Main/fg_props.cxx @@ -31,7 +31,7 @@ #include #include #include -#include +#include #include diff --git a/src/Main/globals.cxx b/src/Main/globals.cxx index 1c83f36d9..e65815ac7 100644 --- a/src/Main/globals.cxx +++ b/src/Main/globals.cxx @@ -38,7 +38,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/Main/options.cxx b/src/Main/options.cxx index 3ac5d2eec..f7b80410d 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -48,7 +48,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/Sound/audioident.hxx b/src/Sound/audioident.hxx index 3fcc7cd52..54cc5fe8f 100644 --- a/src/Sound/audioident.hxx +++ b/src/Sound/audioident.hxx @@ -28,7 +28,7 @@ #endif #include -#include +#include class AudioIdent { public: diff --git a/src/Sound/beacon.hxx b/src/Sound/beacon.hxx index a85244f9b..3903bae48 100644 --- a/src/Sound/beacon.hxx +++ b/src/Sound/beacon.hxx @@ -27,7 +27,7 @@ #include "soundgenerator.hxx" #include -#include +#include #include #include diff --git a/src/Sound/fg_fx.cxx b/src/Sound/fg_fx.cxx index 1e358b00d..6b4f92d89 100644 --- a/src/Sound/fg_fx.cxx +++ b/src/Sound/fg_fx.cxx @@ -37,7 +37,7 @@ #include #include #include -#include +#include #include FGFX::FGFX ( const std::string &refname, SGPropertyNode *props ) : diff --git a/src/Sound/flitevoice.hxx b/src/Sound/flitevoice.hxx index 1b95547fa..18ed0de27 100644 --- a/src/Sound/flitevoice.hxx +++ b/src/Sound/flitevoice.hxx @@ -24,7 +24,7 @@ #define _FLITEVOICE_HXX #include "voice.hxx" -#include +#include #include #include diff --git a/src/Sound/morse.hxx b/src/Sound/morse.hxx index 1f54fa81d..e2e6597b8 100644 --- a/src/Sound/morse.hxx +++ b/src/Sound/morse.hxx @@ -25,7 +25,7 @@ #include "soundgenerator.hxx" #include -#include +#include // Quoting from http://www.kluft.com/~ikluft/ham/morse-intro.html by diff --git a/src/Sound/sample_queue.cxx b/src/Sound/sample_queue.cxx index 7295b341c..267bee3c9 100644 --- a/src/Sound/sample_queue.cxx +++ b/src/Sound/sample_queue.cxx @@ -33,7 +33,7 @@ #include
-#include +#include #include FGSampleQueue::FGSampleQueue ( SGSoundMgr *smgr, const std::string &refname ) : diff --git a/src/Sound/soundmanager.cxx b/src/Sound/soundmanager.cxx index 85d1c0cc0..bc0107e5a 100644 --- a/src/Sound/soundmanager.cxx +++ b/src/Sound/soundmanager.cxx @@ -21,7 +21,7 @@ # include #endif -#include +#include #include #if defined(ENABLE_FLITE) diff --git a/src/Sound/soundmanager.hxx b/src/Sound/soundmanager.hxx index 8a9f6f5de..6e7146800 100644 --- a/src/Sound/soundmanager.hxx +++ b/src/Sound/soundmanager.hxx @@ -24,7 +24,7 @@ #include #include #include -#include +#include class FGSampleQueue; class SGSoundMgr; diff --git a/src/Sound/voiceplayer.cxx b/src/Sound/voiceplayer.cxx index c4ca5d2bd..954562a13 100644 --- a/src/Sound/voiceplayer.cxx +++ b/src/Sound/voiceplayer.cxx @@ -39,7 +39,7 @@ #include #include -#include +#include #include #include