|
@@ -202,6 +202,37 @@ endfunction()
|
|
|
|
|
|
|
|
set_property(GLOBAL PROPERTY USE_FOLDERS TRUE)
|
|
set_property(GLOBAL PROPERTY USE_FOLDERS TRUE)
|
|
|
|
|
|
|
|
|
|
+# Config file
|
|
|
|
|
+## Note: Must happen before script binding generation
|
|
|
|
|
+## Set names of libraries used in the config file
|
|
|
|
|
+if(RENDER_API_MODULE MATCHES "DirectX 11")
|
|
|
|
|
+ set(RENDER_API_MODULE_LIB BansheeD3D11RenderAPI)
|
|
|
|
|
+elseif(RENDER_API_MODULE MATCHES "Vulkan")
|
|
|
|
|
+ set(RENDER_API_MODULE_LIB BansheeVulkanRenderAPI)
|
|
|
|
|
+else()
|
|
|
|
|
+ set(RENDER_API_MODULE_LIB BansheeGLRenderAPI)
|
|
|
|
|
+endif()
|
|
|
|
|
+
|
|
|
|
|
+if(AUDIO_MODULE MATCHES "FMOD")
|
|
|
|
|
+ set(AUDIO_MODULE_LIB BansheeFMOD)
|
|
|
|
|
+else() # Default to OpenAudio
|
|
|
|
|
+ set(AUDIO_MODULE_LIB BansheeOpenAudio)
|
|
|
|
|
+endif()
|
|
|
|
|
+
|
|
|
|
|
+set(RENDERER_MODULE_LIB RenderBeast)
|
|
|
|
|
+set(INPUT_MODULE_LIB BansheeOISInput)
|
|
|
|
|
+set(PHYSICS_MODULE_LIB BansheePhysX)
|
|
|
|
|
+
|
|
|
|
|
+if(BUILD_EDITOR)
|
|
|
|
|
+ set(BS_EDITOR_BUILD 1)
|
|
|
|
|
+else()
|
|
|
|
|
+ set(BS_EDITOR_BUILD 0)
|
|
|
|
|
+endif()
|
|
|
|
|
+
|
|
|
|
|
+## Generate config files)
|
|
|
|
|
+configure_file("${PROJECT_SOURCE_DIR}/CMake/BsEngineConfig.h.in" "${PROJECT_SOURCE_DIR}/BansheeEngine/Include/BsEngineConfig.h")
|
|
|
|
|
+configure_file("${PROJECT_SOURCE_DIR}/CMake/BsFrameworkConfig.h.in" "${PROJECT_SOURCE_DIR}/BansheeUtility/Include/BsFrameworkConfig.h")
|
|
|
|
|
+
|
|
|
# Code generation for script bindings
|
|
# Code generation for script bindings
|
|
|
include(CMake/GenerateScriptBindings.cmake)
|
|
include(CMake/GenerateScriptBindings.cmake)
|
|
|
|
|
|
|
@@ -284,34 +315,4 @@ if(MSVC)
|
|
|
endif()
|
|
endif()
|
|
|
else()
|
|
else()
|
|
|
# TODO - Use Mono compiler to build the managed code as a pre-build step
|
|
# TODO - Use Mono compiler to build the managed code as a pre-build step
|
|
|
-endif()
|
|
|
|
|
-
|
|
|
|
|
-# Config file
|
|
|
|
|
-## Set names of libraries used in the config file
|
|
|
|
|
-if(RENDER_API_MODULE MATCHES "DirectX 11")
|
|
|
|
|
- set(RENDER_API_MODULE_LIB BansheeD3D11RenderAPI)
|
|
|
|
|
-elseif(RENDER_API_MODULE MATCHES "Vulkan")
|
|
|
|
|
- set(RENDER_API_MODULE_LIB BansheeVulkanRenderAPI)
|
|
|
|
|
-else()
|
|
|
|
|
- set(RENDER_API_MODULE_LIB BansheeGLRenderAPI)
|
|
|
|
|
-endif()
|
|
|
|
|
-
|
|
|
|
|
-if(AUDIO_MODULE MATCHES "FMOD")
|
|
|
|
|
- set(AUDIO_MODULE_LIB BansheeFMOD)
|
|
|
|
|
-else() # Default to OpenAudio
|
|
|
|
|
- set(AUDIO_MODULE_LIB BansheeOpenAudio)
|
|
|
|
|
-endif()
|
|
|
|
|
-
|
|
|
|
|
-set(RENDERER_MODULE_LIB RenderBeast)
|
|
|
|
|
-set(INPUT_MODULE_LIB BansheeOISInput)
|
|
|
|
|
-set(PHYSICS_MODULE_LIB BansheePhysX)
|
|
|
|
|
-
|
|
|
|
|
-if(BUILD_EDITOR)
|
|
|
|
|
- set(BS_EDITOR_BUILD 1)
|
|
|
|
|
-else()
|
|
|
|
|
- set(BS_EDITOR_BUILD 0)
|
|
|
|
|
-endif()
|
|
|
|
|
-
|
|
|
|
|
-## Generate config files
|
|
|
|
|
-configure_file("${PROJECT_SOURCE_DIR}/CMake/BsEngineConfig.h.in" "${PROJECT_SOURCE_DIR}/BansheeEngine/Include/BsEngineConfig.h")
|
|
|
|
|
-configure_file("${PROJECT_SOURCE_DIR}/CMake/BsFrameworkConfig.h.in" "${PROJECT_SOURCE_DIR}/BansheeUtility/Include/BsFrameworkConfig.h")
|
|
|
|
|
|
|
+endif()
|