diff options
author | Jan Vorlicek <janvorli@microsoft.com> | 2015-04-10 17:52:13 +0200 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2015-04-10 23:46:49 +0200 |
commit | 4b960e2d1dae7f42400c76c72c254dc84652e349 (patch) | |
tree | 49eb103bc5c5b0086ee42ecd98f04784528e7578 /src/dlls/mscorrc/CMakeLists.txt | |
parent | 2a46b27c13cbdbc45a0b2222d9475bd6cf693db3 (diff) | |
download | coreclr-4b960e2d1dae7f42400c76c72c254dc84652e349.tar.gz coreclr-4b960e2d1dae7f42400c76c72c254dc84652e349.tar.bz2 coreclr-4b960e2d1dae7f42400c76c72c254dc84652e349.zip |
Refactor the windows text resources processing
This change refactors the windows text resource processing into
a parsing script and a script with platform specific function
responsible for writing to the output file.
Diffstat (limited to 'src/dlls/mscorrc/CMakeLists.txt')
-rw-r--r-- | src/dlls/mscorrc/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dlls/mscorrc/CMakeLists.txt b/src/dlls/mscorrc/CMakeLists.txt index 48429f566b..c0f45f83c0 100644 --- a/src/dlls/mscorrc/CMakeLists.txt +++ b/src/dlls/mscorrc/CMakeLists.txt @@ -4,6 +4,7 @@ if(WIN32) else() set (RC_TO_PO ${CMAKE_CURRENT_SOURCE_DIR}/rctopo.awk) + set (PROCESS_RC ${CMAKE_CURRENT_SOURCE_DIR}/processrc.awk) # Create a command to build gettext resources binary file from windows .rc file # The target binary file path is returned in the variable specified by @@ -33,7 +34,7 @@ else() # Preprocess the windows .rc file COMMAND ${CMAKE_CXX_COMPILER} -E -P ${PREPROCESS_DEFINITIONS} ${INCLUDE_DIRECTORIES} -o ${PREPROCESSED_SOURCE} -x c ${SOURCE} # Convert the preprocessed .rc file to the .po file which is a source for the gettext toolchain - COMMAND ${AWK} -f ${RC_TO_PO} ${PREPROCESSED_SOURCE} >${GETTEXT_SOURCE} + COMMAND ${AWK} -f ${RC_TO_PO} -f ${PROCESS_RC} ${PREPROCESSED_SOURCE} >${GETTEXT_SOURCE} # Compile the .po file into the target binary .mo file COMMAND ${MSGFMT} ${GETTEXT_SOURCE} -o ${GETTEXT_TARGET} DEPENDS ${SOURCE} |