mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
better name for the app/lang dependent shared lib targets
This commit is contained in:
committed by
majcosta
parent
dc5eaf7b67
commit
30fe4bd33b
+5
-5
@@ -145,23 +145,23 @@ foreach(lang IN LISTS LangTargets)
|
|||||||
# with the appropriate preprocessor definitions
|
# with the appropriate preprocessor definitions
|
||||||
foreach(lib IN LISTS Ja2_Libs)
|
foreach(lib IN LISTS Ja2_Libs)
|
||||||
# syntactic sugar to hopefully make this more readable
|
# syntactic sugar to hopefully make this more readable
|
||||||
set(tgt ${Executable}_${lib})
|
set(VeryBadLib ${Executable}_${lib})
|
||||||
set(isEditor $<STREQUAL:${exe},JA2MAPEDITOR>)
|
set(isEditor $<STREQUAL:${exe},JA2MAPEDITOR>)
|
||||||
set(isUb $<STREQUAL:${exe},JA2UB>)
|
set(isUb $<STREQUAL:${exe},JA2UB>)
|
||||||
set(isUbEditor $<STREQUAL:${exe},JA2UBMAPEDITOR>)
|
set(isUbEditor $<STREQUAL:${exe},JA2UBMAPEDITOR>)
|
||||||
|
|
||||||
# static library for an app/lang combination, e.g. JA2_ENGLISH_SGP.lib
|
# static library for an app/lang combination, e.g. JA2_ENGLISH_SGP.lib
|
||||||
add_library(${tgt})
|
add_library(${VeryBadLib})
|
||||||
target_sources(${tgt} PRIVATE ${${lib}Src})
|
target_sources(${VeryBadLib} PRIVATE ${${lib}Src})
|
||||||
|
|
||||||
target_compile_definitions(${tgt} PUBLIC
|
target_compile_definitions(${VeryBadLib} PUBLIC
|
||||||
$<IF:${isEditor},JA2EDITOR;JA2BETAVERSION,>
|
$<IF:${isEditor},JA2EDITOR;JA2BETAVERSION,>
|
||||||
$<IF:${isUb},JA2UB;JA2UBMAPS,>
|
$<IF:${isUb},JA2UB;JA2UBMAPS,>
|
||||||
$<IF:${isUbEditor},JA2UB;JA2UBMAPS;JA2EDITOR;JA2BETAVERSION,>
|
$<IF:${isUbEditor},JA2UB;JA2UBMAPS;JA2EDITOR;JA2BETAVERSION,>
|
||||||
${debugFlags}
|
${debugFlags}
|
||||||
${lang}
|
${lang}
|
||||||
)
|
)
|
||||||
target_link_libraries(${Executable} PUBLIC ${tgt})
|
target_link_libraries(${Executable} PUBLIC ${VeryBadLib})
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
# only SGP depends on these
|
# only SGP depends on these
|
||||||
|
|||||||
Reference in New Issue
Block a user