comparison Resources/ThirdParty/icu/CMakeLists.txt @ 3251:fcfd4f73228c

using masm if compiling icu with Visual Studio
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 16 Feb 2019 14:28:53 +0100
parents cf0ad1fb2bb7
children 768c219e7b11
comparison
equal deleted inserted replaced
3250:212abfffc44d 3251:fcfd4f73228c
56 OUTPUT ${CMAKE_BINARY_DIR}/${LIBICU_DATA} 56 OUTPUT ${CMAKE_BINARY_DIR}/${LIBICU_DATA}
57 COMMAND IcuCodeGeneration ${CMAKE_BINARY_DIR}/${LIBICU_DATA_VERSION}.dat 57 COMMAND IcuCodeGeneration ${CMAKE_BINARY_DIR}/${LIBICU_DATA_VERSION}.dat
58 DEPENDS IcuCodeGeneration 58 DEPENDS IcuCodeGeneration
59 ) 59 )
60 60
61 message(${LIBICU_DATA}.gz) 61 add_custom_command(
62 62 OUTPUT ${CMAKE_BINARY_DIR}/${LIBICU_MASM}
63 COMMAND IcuCodeGeneration ${CMAKE_BINARY_DIR}/${LIBICU_DATA_VERSION}.dat --assembly masm
64 DEPENDS IcuCodeGeneration
65 )
63 66
64 # "--no-name" is necessary for 7-zip on Windows to behave similarly to gunzip 67 # "--no-name" is necessary for 7-zip on Windows to behave similarly to gunzip
65 add_custom_command( 68 add_custom_command(
66 OUTPUT ${CMAKE_BINARY_DIR}/${LIBICU_DATA}.gz 69 OUTPUT ${CMAKE_BINARY_DIR}/${LIBICU_DATA}.gz
67 COMMAND gzip ${CMAKE_BINARY_DIR}/${LIBICU_DATA_VERSION}_dat.c --no-name -c > ${CMAKE_BINARY_DIR}/${LIBICU_DATA}.gz 70 COMMAND gzip ${CMAKE_BINARY_DIR}/${LIBICU_DATA_VERSION}_dat.c --no-name -c > ${CMAKE_BINARY_DIR}/${LIBICU_DATA}.gz
68 DEPENDS ${LIBICU_DATA} 71 DEPENDS ${LIBICU_DATA}
69 ) 72 )
70 73
71 add_custom_target(Final ALL DEPENDS ${CMAKE_BINARY_DIR}/${LIBICU_DATA}.gz) 74 add_custom_command(
75 OUTPUT ${CMAKE_BINARY_DIR}/${LIBICU_MASM}.gz
76 COMMAND gzip ${CMAKE_BINARY_DIR}/${LIBICU_DATA_VERSION}_dat.S --no-name -c > ${CMAKE_BINARY_DIR}/${LIBICU_MASM}.gz
77 DEPENDS ${LIBICU_MASM}
78 )
79
80 add_custom_target(Final ALL DEPENDS
81 ${CMAKE_BINARY_DIR}/${LIBICU_DATA}.gz
82 ${CMAKE_BINARY_DIR}/${LIBICU_MASM}.gz
83 )
72 84
73 install( 85 install(
74 FILES ${CMAKE_BINARY_DIR}/${LIBICU_DATA}.gz 86 FILES
87 ${CMAKE_BINARY_DIR}/${LIBICU_DATA}.gz
88 ${CMAKE_BINARY_DIR}/${LIBICU_MASM}.gz
75 DESTINATION ${CMAKE_SOURCE_DIR}/../../../ThirdPartyDownloads 89 DESTINATION ${CMAKE_SOURCE_DIR}/../../../ThirdPartyDownloads
76 ) 90 )
77 91
78 add_definitions( 92 add_definitions(
79 #-DU_COMBINED_IMPLEMENTATION 93 #-DU_COMBINED_IMPLEMENTATION