mirror of
https://github.com/vcmi/vcmi.git
synced 2026-06-19 22:57:37 +02:00
Client compilation is now optional
This commit is contained in:
+15
-5
@@ -38,6 +38,7 @@ endif()
|
|||||||
|
|
||||||
# Platform-independent options
|
# Platform-independent options
|
||||||
|
|
||||||
|
option(ENABLE_CLIENT "Enable compilation of game client" ON)
|
||||||
option(ENABLE_ERM "Enable compilation of ERM scripting module" OFF)
|
option(ENABLE_ERM "Enable compilation of ERM scripting module" OFF)
|
||||||
option(ENABLE_LUA "Enable compilation of LUA scripting module" OFF)
|
option(ENABLE_LUA "Enable compilation of LUA scripting module" OFF)
|
||||||
option(ENABLE_TRANSLATIONS "Enable generation of translations for launcher and editor" ON)
|
option(ENABLE_TRANSLATIONS "Enable generation of translations for launcher and editor" ON)
|
||||||
@@ -493,7 +494,7 @@ if(ENABLE_LAUNCHER OR ENABLE_EDITOR)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ENABLE_NULLKILLER_AI)
|
if(ENABLE_NULLKILLER_AI AND ENABLE_CLIENT)
|
||||||
find_package(TBB REQUIRED)
|
find_package(TBB REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -603,10 +604,15 @@ if(APPLE_IOS)
|
|||||||
add_subdirectory(ios)
|
add_subdirectory(ios)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory_with_folder("AI" AI)
|
if (ENABLE_CLIENT)
|
||||||
|
add_subdirectory_with_folder("AI" AI)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_subdirectory(lib)
|
add_subdirectory(lib)
|
||||||
add_subdirectory(server)
|
|
||||||
|
if (ENABLE_CLIENT OR ENABLE_SERVER)
|
||||||
|
add_subdirectory(server)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(ENABLE_ERM)
|
if(ENABLE_ERM)
|
||||||
add_subdirectory(scripting/erm)
|
add_subdirectory(scripting/erm)
|
||||||
@@ -633,7 +639,9 @@ if(ENABLE_LOBBY)
|
|||||||
add_subdirectory(lobby)
|
add_subdirectory(lobby)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(client)
|
if (ENABLE_CLIENT)
|
||||||
|
add_subdirectory(client)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(ENABLE_SERVER)
|
if(ENABLE_SERVER)
|
||||||
add_subdirectory(serverapp)
|
add_subdirectory(serverapp)
|
||||||
@@ -677,7 +685,9 @@ if(ANDROID)
|
|||||||
")
|
")
|
||||||
else()
|
else()
|
||||||
install(DIRECTORY config DESTINATION ${DATA_DIR})
|
install(DIRECTORY config DESTINATION ${DATA_DIR})
|
||||||
install(DIRECTORY Mods DESTINATION ${DATA_DIR})
|
if (ENABLE_CLIENT OR ENABLE_SERVER)
|
||||||
|
install(DIRECTORY Mods DESTINATION ${DATA_DIR})
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
if(ENABLE_LUA)
|
if(ENABLE_LUA)
|
||||||
install(DIRECTORY scripts DESTINATION ${DATA_DIR})
|
install(DIRECTORY scripts DESTINATION ${DATA_DIR})
|
||||||
|
|||||||
Reference in New Issue
Block a user