annotate modules/javafx.web/src/main/native/Source/ThirdParty/icu/CMakeLists.txt @ 11038:20a8447c71c6

8207159: Update ICU to version 62.1 Reviewed-by: mbilla, kcr, ghb
author arajkumar
date Fri, 24 Aug 2018 15:06:40 +0530
parents 2c80e5ef751e
children
rev   line source
arajkumar@11038 1 # http://userguide.icu-project.org/howtouseicu#TOC-C-With-Your-Own-Build-System
arajkumar@11038 2 set(ICU_PUBLIC_DEFINES
arajkumar@11038 3 "U_ENABLE_DYLOAD=0"
arajkumar@11038 4 "U_STATIC_IMPLEMENTATION"
arajkumar@11038 5 "ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC"
arajkumar@11038 6 )
arajkumar@11038 7
arajkumar@11038 8 set(ICU_PRIVATE_DEFINES
arajkumar@11038 9 "HAVE_DLOPEN=0"
arajkumar@11038 10 "UCONFIG_ONLY_HTML_CONVERSION=1"
arajkumar@11038 11 "U_CHARSET_IS_UTF8=1"
arajkumar@11038 12 )
arajkumar@11038 13
ghb@10550 14 if (WIN32)
arajkumar@11038 15 list(APPEND ICU_PUBLIC_DEFINES
arajkumar@11038 16 "UCHAR_TYPE=wchar_t"
arajkumar@11038 17 )
arajkumar@11038 18 else ()
arajkumar@11038 19 list(APPEND ICU_PUBLIC_DEFINES
arajkumar@11038 20 "UCHAR_TYPE=uint16_t"
arajkumar@11038 21 )
ghb@10550 22 endif ()
ghb@10550 23
arajkumar@11038 24 set(ICU_PUBLIC_INCLUDES
arajkumar@11038 25 "source/common"
arajkumar@11038 26 "source/i18n"
arajkumar@11038 27 )
ghb@10550 28
arajkumar@11038 29 # Enable C++ RTTI, WebCore disables it by default.
arajkumar@11038 30 if (UNIX)
arajkumar@11038 31 set(ICU_PRIVATE_COMPILER_OPTIONS
arajkumar@11038 32 "$<$<COMPILE_LANGUAGE:CXX>:-frtti>"
arajkumar@11038 33 )
arajkumar@11038 34 else ()
arajkumar@11038 35 set(ICU_PRIVATE_COMPILER_OPTIONS
arajkumar@11038 36 "/GR"
arajkumar@11038 37 )
arajkumar@11038 38 endif ()
arajkumar@11038 39
arajkumar@11038 40 # Suppress warnings
arajkumar@11038 41 if (WIN32)
arajkumar@11038 42 list(APPEND ICU_PRIVATE_COMPILER_OPTIONS
arajkumar@11038 43 "/wd4005" # Macro redefinition.
arajkumar@11038 44 "/wd4068" # Unknown pragmas.
arajkumar@11038 45 "/wd4245" # Signed/unsigned mismatch
arajkumar@11038 46 "/wd4267" # Conversion from size_t on 64-bits.
arajkumar@11038 47 "/utf-8" # ICU source files are in UTF-8.
arajkumar@11038 48 )
arajkumar@11038 49 elseif (APPLE)
arajkumar@11038 50 list(APPEND ICU_PRIVATE_COMPILER_OPTIONS
arajkumar@11038 51 "-Wno-undef"
arajkumar@11038 52 "-Wno-parentheses"
arajkumar@11038 53
arajkumar@11038 54 "-Wno-unused-function"
arajkumar@11038 55 "-Wno-cast-align"
arajkumar@11038 56
arajkumar@11038 57 # ICU uses its own deprecated functions.
arajkumar@11038 58 "-Wno-deprecated-declarations"
arajkumar@11038 59 )
arajkumar@11038 60 else ()
arajkumar@11038 61 list(APPEND ICU_PRIVATE_COMPILER_OPTIONS
arajkumar@11038 62 "-Wno-undef"
arajkumar@11038 63 "-Wno-unused-function"
arajkumar@11038 64 "-Wno-sign-compare"
arajkumar@11038 65 "-Wno-extra"
arajkumar@11038 66 "-Wno-suggest-attribute=format"
arajkumar@11038 67 # ICU uses its own deprecated functions.
arajkumar@11038 68 "-Wno-deprecated-declarations"
arajkumar@11038 69 )
arajkumar@11038 70 endif ()
arajkumar@11038 71
arajkumar@11038 72 ###### common BEGIN ####
arajkumar@11038 73 set(ICU_COMMON_SOURCES
arajkumar@11038 74 source/common/appendable.cpp
arajkumar@11038 75 source/common/bmpset.cpp
arajkumar@11038 76 source/common/brkeng.cpp
arajkumar@11038 77 source/common/brkiter.cpp
arajkumar@11038 78 source/common/bytesinkutil.cpp
arajkumar@11038 79 source/common/bytestream.cpp
arajkumar@11038 80 source/common/bytestriebuilder.cpp
arajkumar@11038 81 source/common/bytestrie.cpp
arajkumar@11038 82 source/common/bytestrieiterator.cpp
arajkumar@11038 83 source/common/caniter.cpp
arajkumar@11038 84 source/common/chariter.cpp
arajkumar@11038 85 source/common/charstr.cpp
arajkumar@11038 86 source/common/cmemory.cpp
arajkumar@11038 87 source/common/cstr.cpp
arajkumar@11038 88 source/common/cstring.cpp
arajkumar@11038 89 source/common/cwchar.cpp
arajkumar@11038 90 source/common/dictbe.cpp
arajkumar@11038 91 source/common/dictionarydata.cpp
arajkumar@11038 92 source/common/dtintrv.cpp
arajkumar@11038 93 source/common/edits.cpp
arajkumar@11038 94 source/common/errorcode.cpp
arajkumar@11038 95 source/common/filteredbrk.cpp
arajkumar@11038 96 source/common/filterednormalizer2.cpp
arajkumar@11038 97 source/common/icudataver.cpp
arajkumar@11038 98 source/common/icuplug.cpp
arajkumar@11038 99 source/common/listformatter.cpp
arajkumar@11038 100 source/common/loadednormalizer2impl.cpp
arajkumar@11038 101 source/common/locavailable.cpp
arajkumar@11038 102 source/common/locbased.cpp
arajkumar@11038 103 source/common/locdispnames.cpp
arajkumar@11038 104 source/common/locdspnm.cpp
arajkumar@11038 105 source/common/locid.cpp
arajkumar@11038 106 source/common/loclikely.cpp
arajkumar@11038 107 source/common/locmap.cpp
arajkumar@11038 108 source/common/locresdata.cpp
arajkumar@11038 109 source/common/locutil.cpp
arajkumar@11038 110 source/common/messagepattern.cpp
arajkumar@11038 111 source/common/normalizer2.cpp
arajkumar@11038 112 source/common/normalizer2impl.cpp
arajkumar@11038 113 source/common/normlzr.cpp
arajkumar@11038 114 source/common/parsepos.cpp
arajkumar@11038 115 source/common/patternprops.cpp
arajkumar@11038 116 source/common/pluralmap.cpp
arajkumar@11038 117 source/common/propname.cpp
arajkumar@11038 118 source/common/propsvec.cpp
arajkumar@11038 119 source/common/punycode.cpp
arajkumar@11038 120 source/common/putil.cpp
arajkumar@11038 121 source/common/rbbi_cache.cpp
arajkumar@11038 122 source/common/rbbi.cpp
arajkumar@11038 123 source/common/rbbidata.cpp
arajkumar@11038 124 source/common/rbbinode.cpp
arajkumar@11038 125 source/common/rbbirb.cpp
arajkumar@11038 126 source/common/rbbiscan.cpp
arajkumar@11038 127 source/common/rbbisetb.cpp
arajkumar@11038 128 source/common/rbbistbl.cpp
arajkumar@11038 129 source/common/rbbitblb.cpp
arajkumar@11038 130 source/common/resbund_cnv.cpp
arajkumar@11038 131 source/common/resbund.cpp
arajkumar@11038 132 source/common/resource.cpp
arajkumar@11038 133 source/common/ruleiter.cpp
arajkumar@11038 134 source/common/schriter.cpp
arajkumar@11038 135 source/common/serv.cpp
arajkumar@11038 136 source/common/servlk.cpp
arajkumar@11038 137 source/common/servlkf.cpp
arajkumar@11038 138 source/common/servls.cpp
arajkumar@11038 139 source/common/servnotf.cpp
arajkumar@11038 140 source/common/servrbf.cpp
arajkumar@11038 141 source/common/servslkf.cpp
arajkumar@11038 142 source/common/sharedobject.cpp
arajkumar@11038 143 source/common/simpleformatter.cpp
arajkumar@11038 144 source/common/static_unicode_sets.cpp
arajkumar@11038 145 source/common/stringpiece.cpp
arajkumar@11038 146 source/common/stringtriebuilder.cpp
arajkumar@11038 147 source/common/uarrsort.cpp
arajkumar@11038 148 source/common/ubidi.cpp
arajkumar@11038 149 source/common/ubidiln.cpp
arajkumar@11038 150 source/common/ubidi_props.cpp
arajkumar@11038 151 source/common/ubiditransform.cpp
arajkumar@11038 152 source/common/ubidiwrt.cpp
arajkumar@11038 153 source/common/ubrk.cpp
arajkumar@11038 154 source/common/ucase.cpp
arajkumar@11038 155 source/common/ucasemap.cpp
arajkumar@11038 156 source/common/ucasemap_titlecase_brkiter.cpp
arajkumar@11038 157 source/common/ucat.cpp
arajkumar@11038 158 source/common/uchar.cpp
arajkumar@11038 159 source/common/ucharstriebuilder.cpp
arajkumar@11038 160 source/common/ucharstrie.cpp
arajkumar@11038 161 source/common/ucharstrieiterator.cpp
arajkumar@11038 162 source/common/uchriter.cpp
arajkumar@11038 163 source/common/ucln_cmn.cpp
arajkumar@11038 164 source/common/ucmndata.cpp
arajkumar@11038 165 source/common/ucnv2022.cpp
arajkumar@11038 166 source/common/ucnv_bld.cpp
arajkumar@11038 167 source/common/ucnvbocu.cpp
arajkumar@11038 168 source/common/ucnv_cb.cpp
arajkumar@11038 169 source/common/ucnv_cnv.cpp
arajkumar@11038 170 source/common/ucnv.cpp
arajkumar@11038 171 source/common/ucnv_ct.cpp
arajkumar@11038 172 source/common/ucnvdisp.cpp
arajkumar@11038 173 source/common/ucnv_err.cpp
arajkumar@11038 174 source/common/ucnv_ext.cpp
arajkumar@11038 175 source/common/ucnvhz.cpp
arajkumar@11038 176 source/common/ucnv_io.cpp
arajkumar@11038 177 source/common/ucnvisci.cpp
arajkumar@11038 178 source/common/ucnvlat1.cpp
arajkumar@11038 179 source/common/ucnv_lmb.cpp
arajkumar@11038 180 source/common/ucnvmbcs.cpp
arajkumar@11038 181 source/common/ucnvscsu.cpp
arajkumar@11038 182 source/common/ucnvsel.cpp
arajkumar@11038 183 source/common/ucnv_set.cpp
arajkumar@11038 184 source/common/ucnv_u16.cpp
arajkumar@11038 185 source/common/ucnv_u32.cpp
arajkumar@11038 186 source/common/ucnv_u7.cpp
arajkumar@11038 187 source/common/ucnv_u8.cpp
arajkumar@11038 188 source/common/ucol_swp.cpp
arajkumar@11038 189 source/common/ucurr.cpp
arajkumar@11038 190 source/common/udata.cpp
arajkumar@11038 191 source/common/udatamem.cpp
arajkumar@11038 192 source/common/udataswp.cpp
arajkumar@11038 193 source/common/uenum.cpp
arajkumar@11038 194 source/common/uhash.cpp
arajkumar@11038 195 source/common/uhash_us.cpp
arajkumar@11038 196 source/common/uidna.cpp
arajkumar@11038 197 source/common/uinit.cpp
arajkumar@11038 198 source/common/uinvchar.cpp
arajkumar@11038 199 source/common/uiter.cpp
arajkumar@11038 200 source/common/ulist.cpp
arajkumar@11038 201 source/common/ulistformatter.cpp
arajkumar@11038 202 source/common/uloc.cpp
arajkumar@11038 203 source/common/uloc_keytype.cpp
arajkumar@11038 204 source/common/uloc_tag.cpp
arajkumar@11038 205 source/common/umapfile.cpp
arajkumar@11038 206 source/common/umath.cpp
arajkumar@11038 207 source/common/umutex.cpp
arajkumar@11038 208 source/common/unames.cpp
arajkumar@11038 209 source/common/unifiedcache.cpp
arajkumar@11038 210 source/common/unifilt.cpp
arajkumar@11038 211 source/common/unifunct.cpp
arajkumar@11038 212 source/common/uniset_closure.cpp
arajkumar@11038 213 source/common/uniset.cpp
arajkumar@11038 214 source/common/uniset_props.cpp
arajkumar@11038 215 source/common/unisetspan.cpp
arajkumar@11038 216 source/common/unistr_case.cpp
arajkumar@11038 217 source/common/unistr_case_locale.cpp
arajkumar@11038 218 source/common/unistr_cnv.cpp
arajkumar@11038 219 source/common/unistr.cpp
arajkumar@11038 220 source/common/unistr_props.cpp
arajkumar@11038 221 source/common/unistr_titlecase_brkiter.cpp
arajkumar@11038 222 source/common/unormcmp.cpp
arajkumar@11038 223 source/common/unorm.cpp
arajkumar@11038 224 source/common/uobject.cpp
arajkumar@11038 225 source/common/uprops.cpp
arajkumar@11038 226 source/common/uresbund.cpp
arajkumar@11038 227 source/common/ures_cnv.cpp
arajkumar@11038 228 source/common/uresdata.cpp
arajkumar@11038 229 source/common/usc_impl.cpp
arajkumar@11038 230 source/common/uscript.cpp
arajkumar@11038 231 source/common/uscript_props.cpp
arajkumar@11038 232 source/common/uset.cpp
arajkumar@11038 233 source/common/usetiter.cpp
arajkumar@11038 234 source/common/uset_props.cpp
arajkumar@11038 235 source/common/ushape.cpp
arajkumar@11038 236 source/common/usprep.cpp
arajkumar@11038 237 source/common/ustack.cpp
arajkumar@11038 238 source/common/ustrcase.cpp
arajkumar@11038 239 source/common/ustrcase_locale.cpp
arajkumar@11038 240 source/common/ustr_cnv.cpp
arajkumar@11038 241 source/common/ustrenum.cpp
arajkumar@11038 242 source/common/ustrfmt.cpp
arajkumar@11038 243 source/common/ustring.cpp
arajkumar@11038 244 source/common/ustr_titlecase_brkiter.cpp
arajkumar@11038 245 source/common/ustrtrns.cpp
arajkumar@11038 246 source/common/ustr_wcs.cpp
arajkumar@11038 247 source/common/utext.cpp
arajkumar@11038 248 source/common/utf_impl.cpp
arajkumar@11038 249 source/common/util.cpp
arajkumar@11038 250 source/common/util_props.cpp
arajkumar@11038 251 source/common/utrace.cpp
arajkumar@11038 252 source/common/utrie2_builder.cpp
arajkumar@11038 253 source/common/utrie2.cpp
arajkumar@11038 254 source/common/utrie.cpp
arajkumar@11038 255 source/common/uts46.cpp
arajkumar@11038 256 source/common/utypes.cpp
arajkumar@11038 257 source/common/uvector.cpp
arajkumar@11038 258 source/common/uvectr32.cpp
arajkumar@11038 259 source/common/uvectr64.cpp
arajkumar@11038 260 source/common/wintz.cpp
arajkumar@11038 261 )
arajkumar@11038 262
arajkumar@11038 263 add_library(icuuc STATIC ${ICU_COMMON_SOURCES})
arajkumar@11038 264 target_include_directories(icuuc
arajkumar@11038 265 PUBLIC ${ICU_PUBLIC_INCLUDES}
arajkumar@11038 266 )
arajkumar@11038 267 target_compile_definitions(icuuc
arajkumar@11038 268 PRIVATE "U_COMMON_IMPLEMENTATION"
arajkumar@11038 269 PRIVATE ${ICU_PRIVATE_DEFINES}
arajkumar@11038 270 PUBLIC ${ICU_PUBLIC_DEFINES}
arajkumar@11038 271 )
arajkumar@11038 272 target_compile_options(icuuc
arajkumar@11038 273 PRIVATE ${ICU_PRIVATE_COMPILER_OPTIONS}
arajkumar@11038 274 )
arajkumar@11038 275 ###### common END ####
arajkumar@11038 276
arajkumar@11038 277 ###### i18n BEGIN ####
arajkumar@11038 278 set(ICU_I18N_SOURCES
arajkumar@11038 279 source/i18n/alphaindex.cpp
arajkumar@11038 280 source/i18n/anytrans.cpp
arajkumar@11038 281 source/i18n/astro.cpp
arajkumar@11038 282 source/i18n/basictz.cpp
arajkumar@11038 283 source/i18n/bocsu.cpp
arajkumar@11038 284 source/i18n/brktrans.cpp
arajkumar@11038 285 source/i18n/buddhcal.cpp
arajkumar@11038 286 source/i18n/calendar.cpp
arajkumar@11038 287 source/i18n/casetrn.cpp
arajkumar@11038 288 source/i18n/cecal.cpp
arajkumar@11038 289 source/i18n/chnsecal.cpp
arajkumar@11038 290 source/i18n/choicfmt.cpp
arajkumar@11038 291 source/i18n/coleitr.cpp
arajkumar@11038 292 source/i18n/coll.cpp
arajkumar@11038 293 source/i18n/collation.cpp
arajkumar@11038 294 source/i18n/collationbuilder.cpp
arajkumar@11038 295 source/i18n/collationcompare.cpp
arajkumar@11038 296 source/i18n/collationdata.cpp
arajkumar@11038 297 source/i18n/collationdatabuilder.cpp
arajkumar@11038 298 source/i18n/collationdatareader.cpp
arajkumar@11038 299 source/i18n/collationdatawriter.cpp
arajkumar@11038 300 source/i18n/collationfastlatin.cpp
arajkumar@11038 301 source/i18n/collationfastlatinbuilder.cpp
arajkumar@11038 302 source/i18n/collationfcd.cpp
arajkumar@11038 303 source/i18n/collationiterator.cpp
arajkumar@11038 304 source/i18n/collationkeys.cpp
arajkumar@11038 305 source/i18n/collationroot.cpp
arajkumar@11038 306 source/i18n/collationrootelements.cpp
arajkumar@11038 307 source/i18n/collationruleparser.cpp
arajkumar@11038 308 source/i18n/collationsets.cpp
arajkumar@11038 309 source/i18n/collationsettings.cpp
arajkumar@11038 310 source/i18n/collationtailoring.cpp
arajkumar@11038 311 source/i18n/collationweights.cpp
arajkumar@11038 312 source/i18n/compactdecimalformat.cpp
arajkumar@11038 313 source/i18n/coptccal.cpp
arajkumar@11038 314 source/i18n/cpdtrans.cpp
arajkumar@11038 315 source/i18n/csdetect.cpp
arajkumar@11038 316 source/i18n/csmatch.cpp
arajkumar@11038 317 source/i18n/csr2022.cpp
arajkumar@11038 318 source/i18n/csrecog.cpp
arajkumar@11038 319 source/i18n/csrmbcs.cpp
arajkumar@11038 320 source/i18n/csrsbcs.cpp
arajkumar@11038 321 source/i18n/csrucode.cpp
arajkumar@11038 322 source/i18n/csrutf8.cpp
arajkumar@11038 323 source/i18n/curramt.cpp
arajkumar@11038 324 source/i18n/currfmt.cpp
arajkumar@11038 325 source/i18n/currpinf.cpp
arajkumar@11038 326 source/i18n/currunit.cpp
arajkumar@11038 327 source/i18n/dangical.cpp
arajkumar@11038 328 source/i18n/datefmt.cpp
arajkumar@11038 329 source/i18n/dayperiodrules.cpp
arajkumar@11038 330 source/i18n/dcfmtsym.cpp
arajkumar@11038 331 source/i18n/decContext.cpp
arajkumar@11038 332 source/i18n/decNumber.cpp
arajkumar@11038 333 source/i18n/decimfmt.cpp
arajkumar@11038 334 source/i18n/double-conversion-bignum-dtoa.cpp
arajkumar@11038 335 source/i18n/double-conversion-bignum.cpp
arajkumar@11038 336 source/i18n/double-conversion-cached-powers.cpp
arajkumar@11038 337 source/i18n/double-conversion-diy-fp.cpp
arajkumar@11038 338 source/i18n/double-conversion-fast-dtoa.cpp
arajkumar@11038 339 source/i18n/double-conversion-strtod.cpp
arajkumar@11038 340 source/i18n/double-conversion.cpp
arajkumar@11038 341 source/i18n/dtfmtsym.cpp
arajkumar@11038 342 source/i18n/dtitvfmt.cpp
arajkumar@11038 343 source/i18n/dtitvinf.cpp
arajkumar@11038 344 source/i18n/dtptngen.cpp
arajkumar@11038 345 source/i18n/dtrule.cpp
arajkumar@11038 346 source/i18n/esctrn.cpp
arajkumar@11038 347 source/i18n/ethpccal.cpp
arajkumar@11038 348 source/i18n/fmtable.cpp
arajkumar@11038 349 source/i18n/fmtable_cnv.cpp
arajkumar@11038 350 source/i18n/format.cpp
arajkumar@11038 351 source/i18n/fphdlimp.cpp
arajkumar@11038 352 source/i18n/fpositer.cpp
arajkumar@11038 353 source/i18n/funcrepl.cpp
arajkumar@11038 354 source/i18n/gender.cpp
arajkumar@11038 355 source/i18n/gregocal.cpp
arajkumar@11038 356 source/i18n/gregoimp.cpp
arajkumar@11038 357 source/i18n/hebrwcal.cpp
arajkumar@11038 358 source/i18n/indiancal.cpp
arajkumar@11038 359 source/i18n/inputext.cpp
arajkumar@11038 360 source/i18n/islamcal.cpp
arajkumar@11038 361 source/i18n/japancal.cpp
arajkumar@11038 362 source/i18n/measfmt.cpp
arajkumar@11038 363 source/i18n/measunit.cpp
arajkumar@11038 364 source/i18n/measure.cpp
arajkumar@11038 365 source/i18n/msgfmt.cpp
arajkumar@11038 366 source/i18n/name2uni.cpp
arajkumar@11038 367 source/i18n/nfrs.cpp
arajkumar@11038 368 source/i18n/nfrule.cpp
arajkumar@11038 369 source/i18n/nfsubs.cpp
arajkumar@11038 370 source/i18n/nortrans.cpp
arajkumar@11038 371 source/i18n/nounit.cpp
arajkumar@11038 372 source/i18n/nultrans.cpp
arajkumar@11038 373 source/i18n/number_affixutils.cpp
arajkumar@11038 374 source/i18n/number_asformat.cpp
arajkumar@11038 375 source/i18n/number_capi.cpp
arajkumar@11038 376 source/i18n/number_compact.cpp
arajkumar@11038 377 source/i18n/number_currencysymbols.cpp
arajkumar@11038 378 source/i18n/number_decimalquantity.cpp
arajkumar@11038 379 source/i18n/number_decimfmtprops.cpp
arajkumar@11038 380 source/i18n/number_fluent.cpp
arajkumar@11038 381 source/i18n/number_formatimpl.cpp
arajkumar@11038 382 source/i18n/number_grouping.cpp
arajkumar@11038 383 source/i18n/number_integerwidth.cpp
arajkumar@11038 384 source/i18n/number_longnames.cpp
arajkumar@11038 385 source/i18n/number_mapper.cpp
arajkumar@11038 386 source/i18n/number_modifiers.cpp
arajkumar@11038 387 source/i18n/number_multiplier.cpp
arajkumar@11038 388 source/i18n/number_notation.cpp
arajkumar@11038 389 source/i18n/number_padding.cpp
arajkumar@11038 390 source/i18n/number_patternmodifier.cpp
arajkumar@11038 391 source/i18n/number_patternstring.cpp
arajkumar@11038 392 source/i18n/number_rounding.cpp
arajkumar@11038 393 source/i18n/number_scientific.cpp
arajkumar@11038 394 source/i18n/number_skeletons.cpp
arajkumar@11038 395 source/i18n/number_stringbuilder.cpp
arajkumar@11038 396 source/i18n/number_utils.cpp
arajkumar@11038 397 source/i18n/numfmt.cpp
arajkumar@11038 398 source/i18n/numparse_affixes.cpp
arajkumar@11038 399 source/i18n/numparse_compositions.cpp
arajkumar@11038 400 source/i18n/numparse_currency.cpp
arajkumar@11038 401 source/i18n/numparse_decimal.cpp
arajkumar@11038 402 source/i18n/numparse_impl.cpp
arajkumar@11038 403 source/i18n/numparse_parsednumber.cpp
arajkumar@11038 404 source/i18n/numparse_scientific.cpp
arajkumar@11038 405 source/i18n/numparse_stringsegment.cpp
arajkumar@11038 406 source/i18n/numparse_symbols.cpp
arajkumar@11038 407 source/i18n/numparse_validators.cpp
arajkumar@11038 408 source/i18n/numsys.cpp
arajkumar@11038 409 source/i18n/olsontz.cpp
arajkumar@11038 410 source/i18n/persncal.cpp
arajkumar@11038 411 source/i18n/plurfmt.cpp
arajkumar@11038 412 source/i18n/plurrule.cpp
arajkumar@11038 413 source/i18n/quant.cpp
arajkumar@11038 414 source/i18n/quantityformatter.cpp
arajkumar@11038 415 source/i18n/rbnf.cpp
arajkumar@11038 416 source/i18n/rbt.cpp
arajkumar@11038 417 source/i18n/rbt_data.cpp
arajkumar@11038 418 source/i18n/rbt_pars.cpp
arajkumar@11038 419 source/i18n/rbt_rule.cpp
arajkumar@11038 420 source/i18n/rbt_set.cpp
arajkumar@11038 421 source/i18n/rbtz.cpp
arajkumar@11038 422 source/i18n/regexcmp.cpp
arajkumar@11038 423 source/i18n/regeximp.cpp
arajkumar@11038 424 source/i18n/regexst.cpp
arajkumar@11038 425 source/i18n/regextxt.cpp
arajkumar@11038 426 source/i18n/region.cpp
arajkumar@11038 427 source/i18n/reldatefmt.cpp
arajkumar@11038 428 source/i18n/reldtfmt.cpp
arajkumar@11038 429 source/i18n/rematch.cpp
arajkumar@11038 430 source/i18n/remtrans.cpp
arajkumar@11038 431 source/i18n/repattrn.cpp
arajkumar@11038 432 source/i18n/rulebasedcollator.cpp
arajkumar@11038 433 source/i18n/scientificnumberformatter.cpp
arajkumar@11038 434 source/i18n/scriptset.cpp
arajkumar@11038 435 source/i18n/search.cpp
arajkumar@11038 436 source/i18n/selfmt.cpp
arajkumar@11038 437 source/i18n/sharedbreakiterator.cpp
arajkumar@11038 438 source/i18n/simpletz.cpp
arajkumar@11038 439 source/i18n/smpdtfmt.cpp
arajkumar@11038 440 source/i18n/smpdtfst.cpp
arajkumar@11038 441 source/i18n/sortkey.cpp
arajkumar@11038 442 source/i18n/standardplural.cpp
arajkumar@11038 443 source/i18n/strmatch.cpp
arajkumar@11038 444 source/i18n/strrepl.cpp
arajkumar@11038 445 source/i18n/stsearch.cpp
arajkumar@11038 446 source/i18n/taiwncal.cpp
arajkumar@11038 447 source/i18n/timezone.cpp
arajkumar@11038 448 source/i18n/titletrn.cpp
arajkumar@11038 449 source/i18n/tmunit.cpp
arajkumar@11038 450 source/i18n/tmutamt.cpp
arajkumar@11038 451 source/i18n/tmutfmt.cpp
arajkumar@11038 452 source/i18n/tolowtrn.cpp
arajkumar@11038 453 source/i18n/toupptrn.cpp
arajkumar@11038 454 source/i18n/translit.cpp
arajkumar@11038 455 source/i18n/transreg.cpp
arajkumar@11038 456 source/i18n/tridpars.cpp
arajkumar@11038 457 source/i18n/tzfmt.cpp
arajkumar@11038 458 source/i18n/tzgnames.cpp
arajkumar@11038 459 source/i18n/tznames.cpp
arajkumar@11038 460 source/i18n/tznames_impl.cpp
arajkumar@11038 461 source/i18n/tzrule.cpp
arajkumar@11038 462 source/i18n/tztrans.cpp
arajkumar@11038 463 source/i18n/ucal.cpp
arajkumar@11038 464 source/i18n/ucln_in.cpp
arajkumar@11038 465 source/i18n/ucol.cpp
arajkumar@11038 466 source/i18n/ucol_res.cpp
arajkumar@11038 467 source/i18n/ucol_sit.cpp
arajkumar@11038 468 source/i18n/ucoleitr.cpp
arajkumar@11038 469 source/i18n/ucsdet.cpp
arajkumar@11038 470 source/i18n/udat.cpp
arajkumar@11038 471 source/i18n/udateintervalformat.cpp
arajkumar@11038 472 source/i18n/udatpg.cpp
arajkumar@11038 473 source/i18n/ufieldpositer.cpp
arajkumar@11038 474 source/i18n/uitercollationiterator.cpp
arajkumar@11038 475 source/i18n/ulocdata.cpp
arajkumar@11038 476 source/i18n/umsg.cpp
arajkumar@11038 477 source/i18n/unesctrn.cpp
arajkumar@11038 478 source/i18n/uni2name.cpp
arajkumar@11038 479 source/i18n/unum.cpp
arajkumar@11038 480 source/i18n/unumsys.cpp
arajkumar@11038 481 source/i18n/upluralrules.cpp
arajkumar@11038 482 source/i18n/uregex.cpp
arajkumar@11038 483 source/i18n/uregexc.cpp
arajkumar@11038 484 source/i18n/uregion.cpp
arajkumar@11038 485 source/i18n/usearch.cpp
arajkumar@11038 486 source/i18n/uspoof.cpp
arajkumar@11038 487 source/i18n/uspoof_build.cpp
arajkumar@11038 488 source/i18n/uspoof_conf.cpp
arajkumar@11038 489 source/i18n/uspoof_impl.cpp
arajkumar@11038 490 source/i18n/utf16collationiterator.cpp
arajkumar@11038 491 source/i18n/utf8collationiterator.cpp
arajkumar@11038 492 source/i18n/utmscale.cpp
arajkumar@11038 493 source/i18n/utrans.cpp
arajkumar@11038 494 source/i18n/vtzone.cpp
arajkumar@11038 495 source/i18n/vzone.cpp
arajkumar@11038 496 source/i18n/windtfmt.cpp
arajkumar@11038 497 source/i18n/winnmfmt.cpp
arajkumar@11038 498 source/i18n/wintzimpl.cpp
arajkumar@11038 499 source/i18n/zonemeta.cpp
arajkumar@11038 500 source/i18n/zrule.cpp
arajkumar@11038 501 source/i18n/ztrans.cpp
arajkumar@11038 502 )
arajkumar@11038 503
arajkumar@11038 504 add_library(icui18n STATIC ${ICU_I18N_SOURCES})
arajkumar@11038 505 target_include_directories(icui18n
arajkumar@11038 506 PUBLIC ${ICU_PUBLIC_INCLUDES}
arajkumar@11038 507 )
arajkumar@11038 508 target_compile_definitions(icui18n
arajkumar@11038 509 PRIVATE "LIB_ICU_I18N_STATIC"
arajkumar@11038 510 PRIVATE "U_I18N_IMPLEMENTATION"
arajkumar@11038 511 PRIVATE ${ICU_PRIVATE_DEFINES}
arajkumar@11038 512 PUBLIC ${ICU_PUBLIC_DEFINES}
arajkumar@11038 513 )
arajkumar@11038 514 target_compile_options(icui18n
arajkumar@11038 515 PRIVATE ${ICU_PRIVATE_COMPILER_OPTIONS}
arajkumar@11038 516 )
arajkumar@11038 517 target_link_libraries(icui18n PUBLIC icuuc)
arajkumar@11038 518 ###### i18n END ####
arajkumar@11038 519
arajkumar@11038 520 ###### tools BEGIN ####
arajkumar@11038 521 set(ICU_TOOLSUTILS_SOURCES
arajkumar@11038 522 source/tools/toolutil/filestrm.cpp
arajkumar@11038 523 source/tools/toolutil/package.cpp
arajkumar@11038 524 source/tools/toolutil/pkgitems.cpp
arajkumar@11038 525 source/tools/toolutil/swapimpl.cpp
arajkumar@11038 526 source/tools/toolutil/toolutil.cpp
arajkumar@11038 527 source/tools/toolutil/unewdata.cpp
arajkumar@11038 528 source/tools/toolutil/ucm.cpp
arajkumar@11038 529 source/tools/toolutil/ucmstate.cpp
arajkumar@11038 530 source/tools/toolutil/uparse.cpp
arajkumar@11038 531 source/tools/toolutil/ucbuf.cpp
arajkumar@11038 532 source/tools/toolutil/writesrc.cpp
arajkumar@11038 533 source/tools/toolutil/pkg_genc.cpp
arajkumar@11038 534 source/tools/toolutil/pkg_gencmn.cpp
arajkumar@11038 535
arajkumar@11038 536 java/data/data_as_asm.cpp
arajkumar@11038 537 source/stubdata/stubdata.cpp
arajkumar@11038 538 )
arajkumar@11038 539
arajkumar@11038 540 add_executable(data_as_asm ${ICU_TOOLSUTILS_SOURCES})
arajkumar@11038 541 target_include_directories(data_as_asm
arajkumar@11038 542 PRIVATE ${ICU_PUBLIC_INCLUDES}
arajkumar@11038 543 PRIVATE "source/tools/toolutil"
arajkumar@11038 544 )
arajkumar@11038 545 target_compile_definitions(data_as_asm
arajkumar@11038 546 PRIVATE "U_TOOLUTIL_IMPLEMENTATION"
arajkumar@11038 547 )
arajkumar@11038 548 target_compile_options(data_as_asm
arajkumar@11038 549 PRIVATE ${ICU_PRIVATE_COMPILER_OPTIONS}
arajkumar@11038 550 )
arajkumar@11038 551 target_link_libraries(data_as_asm icuuc icui18n)
arajkumar@11038 552 ###### tools END ####
arajkumar@11038 553
arajkumar@11038 554 ###### data BEGIN ####
arajkumar@11038 555 file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/icu/data")
arajkumar@11038 556 file(GLOB ICU_DATA_ZIP_FILE "java/data/icudt*l.zip")
arajkumar@11038 557
arajkumar@11038 558 get_filename_component(ICU_DATA_FILE_NAME ${ICU_DATA_ZIP_FILE} NAME)
arajkumar@11038 559 # Get just file name without extension
arajkumar@11038 560 string(REGEX REPLACE ".zip" "" ICU_DATA_FILE_NAME ${ICU_DATA_FILE_NAME})
arajkumar@11038 561
arajkumar@11038 562 # Use jar instead of unzip, it will be helpful to get rid of cygwin dependency
arajkumar@11038 563 find_package(Java)
arajkumar@11038 564 add_custom_command(
arajkumar@11038 565 COMMAND ${Java_JAR_EXECUTABLE} xf "${ICU_DATA_ZIP_FILE}"
arajkumar@11038 566 WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/icu/data"
arajkumar@11038 567 OUTPUT "${CMAKE_BINARY_DIR}/icu/data/${ICU_DATA_FILE_NAME}.dat"
arajkumar@11038 568 VERBATIM
arajkumar@11038 569 )
arajkumar@11038 570
arajkumar@11038 571 if (MSVC)
arajkumar@11038 572 # On Windows, data_as_asm could generates .obj file directly.
arajkumar@11038 573 set(ICU_DATA_SYMBOL_FILE "${CMAKE_BINARY_DIR}/icu/data/${ICU_DATA_FILE_NAME}_dat.obj")
arajkumar@11038 574 set_source_files_properties(${ICU_DATA_SYMBOL_FILE} PROPERTIES EXTERNAL_OBJECT TRUE GENERATED TRUE)
arajkumar@11038 575 else ()
arajkumar@11038 576 set(ICU_DATA_SYMBOL_FILE "${CMAKE_BINARY_DIR}/icu/data/${ICU_DATA_FILE_NAME}_dat.S")
arajkumar@11038 577 enable_language(ASM)
arajkumar@11038 578 endif ()
arajkumar@11038 579
arajkumar@11038 580 # Get data entry point symbol name
arajkumar@11038 581 string(LENGTH ${ICU_DATA_FILE_NAME} ICU_DATA_FILE_LENGTH)
arajkumar@11038 582 math(EXPR ICU_DATA_ENTRY_POINT_LENGTH "${ICU_DATA_FILE_LENGTH} - 1")
arajkumar@11038 583 string(SUBSTRING ${ICU_DATA_FILE_NAME} 0 ${ICU_DATA_ENTRY_POINT_LENGTH} ICU_DATA_ENTRY_POINT)
arajkumar@11038 584
arajkumar@11038 585 if (APPLE)
arajkumar@11038 586 set(ICU_DATA_ASSEMBLER_TYPE gcc-darwin)
arajkumar@11038 587 elseif (UNIX)
arajkumar@11038 588 set(ICU_DATA_ASSEMBLER_TYPE gcc)
arajkumar@11038 589 else ()
arajkumar@11038 590 set(ICU_DATA_ASSEMBLER_TYPE masm)
arajkumar@11038 591 endif ()
arajkumar@11038 592
arajkumar@11038 593 add_custom_command(
arajkumar@11038 594 COMMAND $<TARGET_FILE:data_as_asm> ${ICU_DATA_ASSEMBLER_TYPE} "${CMAKE_BINARY_DIR}/icu/data/${ICU_DATA_FILE_NAME}.dat" ${CMAKE_BINARY_DIR}/icu/data ${ICU_DATA_ENTRY_POINT}
arajkumar@11038 595 OUTPUT ${ICU_DATA_SYMBOL_FILE}
arajkumar@11038 596 DEPENDS "${CMAKE_BINARY_DIR}/icu/data/${ICU_DATA_FILE_NAME}.dat"
arajkumar@11038 597 VERBATIM
arajkumar@11038 598 )
arajkumar@11038 599
arajkumar@11038 600 if (APPLE)
arajkumar@11038 601 set(CMAKE_ASM_FLAGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET}")
arajkumar@11038 602 endif ()
arajkumar@11038 603 add_library(icudata STATIC ${ICU_DATA_SYMBOL_FILE})
arajkumar@11038 604 # Be explicit about the which linker to use, otherwise fails on Windows
arajkumar@11038 605 # when creating icudata.lib.
arajkumar@11038 606 set_target_properties(icudata PROPERTIES LINKER_LANGUAGE C)
arajkumar@11038 607
arajkumar@11038 608 ###### data END ####