1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Changes to single-app build

- client version of library is now always called vcmi, like in regular
builds (e.g. libvcmi.so)
- server version of library keeps its separate name
This commit is contained in:
Ivan Savenko 2022-12-05 22:57:43 +02:00
parent 538c6e39f9
commit 5e37ad6836
3 changed files with 5 additions and 7 deletions

View File

@ -428,13 +428,10 @@ if(APPLE_IOS)
endif()
include(VCMI_lib)
add_subdirectory(lib)
set(VCMI_LIB_TARGET vcmi)
if(BUILD_SINGLE_APP)
add_subdirectory(lib_client)
add_subdirectory(lib_server)
set(VCMI_LIB_TARGET vcmi_lib_client)
else()
add_subdirectory(lib)
set(VCMI_LIB_TARGET vcmi)
endif()
if(ENABLE_ERM)

View File

@ -1 +1,4 @@
add_main_lib(vcmi SHARED)
if(BUILD_SINGLE_APP)
target_compile_definitions(vcmi PUBLIC VCMI_LIB_NAMESPACE=LIB_CLIENT)
endif()

View File

@ -1,2 +0,0 @@
add_main_lib(vcmi_lib_client SHARED)
target_compile_definitions(vcmi_lib_client PUBLIC VCMI_LIB_NAMESPACE=LIB_CLIENT)