mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-13 07:10:57 +00:00
Fix: [CMake] Language files should depend on english.txt
This commit is contained in:
parent
696b6990ea
commit
144991990e
@ -1,4 +1,9 @@
|
||||
set(MASTER_LANG_FILE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/english.txt
|
||||
)
|
||||
|
||||
set(LANG_SOURCE_FILES
|
||||
${MASTER_LANG_FILE}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/afrikaans.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/arabic_egypt.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/basque.txt
|
||||
@ -10,7 +15,6 @@ set(LANG_SOURCE_FILES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/czech.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/danish.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/dutch.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/english.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/english_AU.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/english_US.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/esperanto.txt
|
||||
@ -75,7 +79,7 @@ foreach(LANG_SOURCE_FILE IN LISTS LANG_SOURCE_FILES)
|
||||
-s ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
-d ${LANG_BINARY_DIR}
|
||||
${LANG_SOURCE_FILE}
|
||||
DEPENDS strgen
|
||||
DEPENDS strgen ${MASTER_LANG_FILE}
|
||||
MAIN_DEPENDENCY ${LANG_SOURCE_FILE}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
COMMENT "Compiling language ${LANG_SOURCE_FILE_NAME_WE}"
|
||||
@ -103,7 +107,7 @@ add_custom_command_timestamp(OUTPUT ${TABLE_BINARY_DIR}/strings.h
|
||||
COMMAND strgen
|
||||
-s ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
-d ${TABLE_BINARY_DIR}
|
||||
DEPENDS strgen ${LANG_SOURCE_FILES}
|
||||
DEPENDS strgen ${MASTER_LANG_FILE}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
COMMENT "Generating table/strings.h"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user