halcanary | 19a9720 | 2016-08-03 15:08:04 -0700 | [diff] [blame] | 1 | # Copyright 2016 Google Inc. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
| 5 | |
| 6 | declare_args() { |
Mike Klein | e459afd | 2017-03-03 09:21:30 -0500 | [diff] [blame] | 7 | skia_use_system_icu = is_official_build |
halcanary | 19a9720 | 2016-08-03 15:08:04 -0700 | [diff] [blame] | 8 | } |
| 9 | |
| 10 | import("../third_party.gni") |
| 11 | |
Mike Klein | 10d665d | 2016-11-01 11:46:10 -0400 | [diff] [blame] | 12 | if (skia_use_system_icu) { |
| 13 | system("icu") { |
| 14 | libs = [ "icuuc" ] |
Ben Wagner | be6ae5b | 2017-08-31 16:45:23 -0400 | [diff] [blame] | 15 | defines = [ "U_USING_ICU_NAMESPACE=0" ] |
Mike Klein | 3eb7121 | 2016-10-11 17:08:53 -0400 | [diff] [blame] | 16 | } |
Mike Klein | 10d665d | 2016-11-01 11:46:10 -0400 | [diff] [blame] | 17 | } else { |
| 18 | third_party("icu") { |
| 19 | public_include_dirs = [ "../externals/icu/source/common" ] |
Ben Wagner | a25fbef | 2017-08-30 13:56:19 -0400 | [diff] [blame] | 20 | public_defines = [ "U_USING_ICU_NAMESPACE=0" ] |
Mike Klein | 10d665d | 2016-11-01 11:46:10 -0400 | [diff] [blame] | 21 | configs -= [ "//gn:no_rtti" ] |
| 22 | if (!is_win) { |
| 23 | libs = [ "dl" ] |
| 24 | } |
| 25 | defines = [ |
| 26 | # http://userguide.icu-project.org/howtouseicu |
| 27 | "U_COMMON_IMPLEMENTATION", |
| 28 | "U_STATIC_IMPLEMENTATION", |
| 29 | ] |
| 30 | sources = [ |
| 31 | "../externals/icu/source/common/appendable.cpp", |
| 32 | "../externals/icu/source/common/bmpset.cpp", |
| 33 | "../externals/icu/source/common/brkeng.cpp", |
| 34 | "../externals/icu/source/common/brkiter.cpp", |
| 35 | "../externals/icu/source/common/bytestream.cpp", |
| 36 | "../externals/icu/source/common/bytestrie.cpp", |
| 37 | "../externals/icu/source/common/bytestriebuilder.cpp", |
| 38 | "../externals/icu/source/common/bytestrieiterator.cpp", |
| 39 | "../externals/icu/source/common/caniter.cpp", |
| 40 | "../externals/icu/source/common/chariter.cpp", |
| 41 | "../externals/icu/source/common/charstr.cpp", |
| 42 | "../externals/icu/source/common/cmemory.c", |
| 43 | "../externals/icu/source/common/cstring.c", |
| 44 | "../externals/icu/source/common/cwchar.c", |
| 45 | "../externals/icu/source/common/dictbe.cpp", |
| 46 | "../externals/icu/source/common/dictionarydata.cpp", |
| 47 | "../externals/icu/source/common/dtintrv.cpp", |
| 48 | "../externals/icu/source/common/errorcode.cpp", |
| 49 | "../externals/icu/source/common/filteredbrk.cpp", |
| 50 | "../externals/icu/source/common/filterednormalizer2.cpp", |
| 51 | "../externals/icu/source/common/icudataver.c", |
| 52 | "../externals/icu/source/common/icuplug.cpp", |
| 53 | "../externals/icu/source/common/listformatter.cpp", |
| 54 | "../externals/icu/source/common/loadednormalizer2impl.cpp", |
| 55 | "../externals/icu/source/common/locavailable.cpp", |
| 56 | "../externals/icu/source/common/locbased.cpp", |
| 57 | "../externals/icu/source/common/locdispnames.cpp", |
| 58 | "../externals/icu/source/common/locid.cpp", |
| 59 | "../externals/icu/source/common/loclikely.cpp", |
| 60 | "../externals/icu/source/common/locmap.c", |
| 61 | "../externals/icu/source/common/locresdata.cpp", |
| 62 | "../externals/icu/source/common/locutil.cpp", |
| 63 | "../externals/icu/source/common/messagepattern.cpp", |
| 64 | "../externals/icu/source/common/normalizer2.cpp", |
| 65 | "../externals/icu/source/common/normalizer2impl.cpp", |
| 66 | "../externals/icu/source/common/normlzr.cpp", |
| 67 | "../externals/icu/source/common/parsepos.cpp", |
| 68 | "../externals/icu/source/common/patternprops.cpp", |
| 69 | "../externals/icu/source/common/pluralmap.cpp", |
| 70 | "../externals/icu/source/common/propname.cpp", |
| 71 | "../externals/icu/source/common/propsvec.c", |
| 72 | "../externals/icu/source/common/punycode.cpp", |
| 73 | "../externals/icu/source/common/putil.cpp", |
| 74 | "../externals/icu/source/common/rbbi.cpp", |
| 75 | "../externals/icu/source/common/rbbidata.cpp", |
| 76 | "../externals/icu/source/common/rbbinode.cpp", |
| 77 | "../externals/icu/source/common/rbbirb.cpp", |
| 78 | "../externals/icu/source/common/rbbiscan.cpp", |
| 79 | "../externals/icu/source/common/rbbisetb.cpp", |
| 80 | "../externals/icu/source/common/rbbistbl.cpp", |
| 81 | "../externals/icu/source/common/rbbitblb.cpp", |
| 82 | "../externals/icu/source/common/resbund.cpp", |
| 83 | "../externals/icu/source/common/resbund_cnv.cpp", |
| 84 | "../externals/icu/source/common/resource.cpp", |
| 85 | "../externals/icu/source/common/ruleiter.cpp", |
| 86 | "../externals/icu/source/common/schriter.cpp", |
| 87 | "../externals/icu/source/common/serv.cpp", |
| 88 | "../externals/icu/source/common/servlk.cpp", |
| 89 | "../externals/icu/source/common/servlkf.cpp", |
| 90 | "../externals/icu/source/common/servls.cpp", |
| 91 | "../externals/icu/source/common/servnotf.cpp", |
| 92 | "../externals/icu/source/common/servrbf.cpp", |
| 93 | "../externals/icu/source/common/servslkf.cpp", |
| 94 | "../externals/icu/source/common/sharedobject.cpp", |
| 95 | "../externals/icu/source/common/simplepatternformatter.cpp", |
| 96 | "../externals/icu/source/common/stringpiece.cpp", |
| 97 | "../externals/icu/source/common/stringtriebuilder.cpp", |
| 98 | "../externals/icu/source/common/uarrsort.c", |
| 99 | "../externals/icu/source/common/ubidi.c", |
| 100 | "../externals/icu/source/common/ubidi_props.c", |
| 101 | "../externals/icu/source/common/ubidiln.c", |
| 102 | "../externals/icu/source/common/ubidiwrt.c", |
| 103 | "../externals/icu/source/common/ubrk.cpp", |
| 104 | "../externals/icu/source/common/ucase.cpp", |
| 105 | "../externals/icu/source/common/ucasemap.cpp", |
| 106 | "../externals/icu/source/common/ucasemap_titlecase_brkiter.cpp", |
| 107 | "../externals/icu/source/common/ucat.c", |
| 108 | "../externals/icu/source/common/uchar.c", |
| 109 | "../externals/icu/source/common/ucharstrie.cpp", |
| 110 | "../externals/icu/source/common/ucharstriebuilder.cpp", |
| 111 | "../externals/icu/source/common/ucharstrieiterator.cpp", |
| 112 | "../externals/icu/source/common/uchriter.cpp", |
| 113 | "../externals/icu/source/common/ucln_cmn.cpp", |
| 114 | "../externals/icu/source/common/ucmndata.c", |
| 115 | "../externals/icu/source/common/ucnv.c", |
| 116 | "../externals/icu/source/common/ucnv2022.cpp", |
| 117 | "../externals/icu/source/common/ucnv_bld.cpp", |
| 118 | "../externals/icu/source/common/ucnv_cb.c", |
| 119 | "../externals/icu/source/common/ucnv_cnv.c", |
| 120 | "../externals/icu/source/common/ucnv_ct.c", |
| 121 | "../externals/icu/source/common/ucnv_err.c", |
| 122 | "../externals/icu/source/common/ucnv_ext.cpp", |
| 123 | "../externals/icu/source/common/ucnv_io.cpp", |
| 124 | "../externals/icu/source/common/ucnv_lmb.c", |
| 125 | "../externals/icu/source/common/ucnv_set.c", |
| 126 | "../externals/icu/source/common/ucnv_u16.c", |
| 127 | "../externals/icu/source/common/ucnv_u32.c", |
| 128 | "../externals/icu/source/common/ucnv_u7.c", |
| 129 | "../externals/icu/source/common/ucnv_u8.c", |
| 130 | "../externals/icu/source/common/ucnvbocu.cpp", |
| 131 | "../externals/icu/source/common/ucnvdisp.c", |
| 132 | "../externals/icu/source/common/ucnvhz.c", |
| 133 | "../externals/icu/source/common/ucnvisci.c", |
| 134 | "../externals/icu/source/common/ucnvlat1.c", |
| 135 | "../externals/icu/source/common/ucnvmbcs.cpp", |
| 136 | "../externals/icu/source/common/ucnvscsu.c", |
| 137 | "../externals/icu/source/common/ucnvsel.cpp", |
| 138 | "../externals/icu/source/common/ucol_swp.cpp", |
| 139 | "../externals/icu/source/common/udata.cpp", |
| 140 | "../externals/icu/source/common/udatamem.c", |
| 141 | "../externals/icu/source/common/udataswp.c", |
| 142 | "../externals/icu/source/common/uenum.c", |
| 143 | "../externals/icu/source/common/uhash.c", |
| 144 | "../externals/icu/source/common/uhash_us.cpp", |
| 145 | "../externals/icu/source/common/uidna.cpp", |
| 146 | "../externals/icu/source/common/uinit.cpp", |
| 147 | "../externals/icu/source/common/uinvchar.c", |
| 148 | "../externals/icu/source/common/uiter.cpp", |
| 149 | "../externals/icu/source/common/ulist.c", |
| 150 | "../externals/icu/source/common/ulistformatter.cpp", |
| 151 | "../externals/icu/source/common/uloc.cpp", |
| 152 | "../externals/icu/source/common/uloc_keytype.cpp", |
| 153 | "../externals/icu/source/common/uloc_tag.c", |
| 154 | "../externals/icu/source/common/umapfile.c", |
| 155 | "../externals/icu/source/common/umath.c", |
| 156 | "../externals/icu/source/common/umutex.cpp", |
| 157 | "../externals/icu/source/common/unames.cpp", |
| 158 | "../externals/icu/source/common/unifiedcache.cpp", |
| 159 | "../externals/icu/source/common/unifilt.cpp", |
| 160 | "../externals/icu/source/common/unifunct.cpp", |
| 161 | "../externals/icu/source/common/uniset.cpp", |
| 162 | "../externals/icu/source/common/uniset_closure.cpp", |
| 163 | "../externals/icu/source/common/uniset_props.cpp", |
| 164 | "../externals/icu/source/common/unisetspan.cpp", |
| 165 | "../externals/icu/source/common/unistr.cpp", |
| 166 | "../externals/icu/source/common/unistr_case.cpp", |
| 167 | "../externals/icu/source/common/unistr_case_locale.cpp", |
| 168 | "../externals/icu/source/common/unistr_cnv.cpp", |
| 169 | "../externals/icu/source/common/unistr_props.cpp", |
| 170 | "../externals/icu/source/common/unistr_titlecase_brkiter.cpp", |
| 171 | "../externals/icu/source/common/unorm.cpp", |
| 172 | "../externals/icu/source/common/unormcmp.cpp", |
| 173 | "../externals/icu/source/common/uobject.cpp", |
| 174 | "../externals/icu/source/common/uprops.cpp", |
| 175 | "../externals/icu/source/common/ures_cnv.c", |
| 176 | "../externals/icu/source/common/uresbund.cpp", |
| 177 | "../externals/icu/source/common/uresdata.cpp", |
| 178 | "../externals/icu/source/common/uresource.cpp", |
| 179 | "../externals/icu/source/common/usc_impl.c", |
| 180 | "../externals/icu/source/common/uscript.c", |
| 181 | "../externals/icu/source/common/uscript_props.cpp", |
| 182 | "../externals/icu/source/common/uset.cpp", |
| 183 | "../externals/icu/source/common/uset_props.cpp", |
| 184 | "../externals/icu/source/common/usetiter.cpp", |
| 185 | "../externals/icu/source/common/ushape.cpp", |
| 186 | "../externals/icu/source/common/usprep.cpp", |
| 187 | "../externals/icu/source/common/ustack.cpp", |
| 188 | "../externals/icu/source/common/ustr_cnv.cpp", |
| 189 | "../externals/icu/source/common/ustr_titlecase_brkiter.cpp", |
| 190 | "../externals/icu/source/common/ustr_wcs.cpp", |
| 191 | "../externals/icu/source/common/ustrcase.cpp", |
| 192 | "../externals/icu/source/common/ustrcase_locale.cpp", |
| 193 | "../externals/icu/source/common/ustrenum.cpp", |
| 194 | "../externals/icu/source/common/ustrfmt.c", |
| 195 | "../externals/icu/source/common/ustring.cpp", |
| 196 | "../externals/icu/source/common/ustrtrns.cpp", |
| 197 | "../externals/icu/source/common/utext.cpp", |
| 198 | "../externals/icu/source/common/utf_impl.c", |
| 199 | "../externals/icu/source/common/util.cpp", |
| 200 | "../externals/icu/source/common/util_props.cpp", |
| 201 | "../externals/icu/source/common/utrace.c", |
| 202 | "../externals/icu/source/common/utrie.cpp", |
| 203 | "../externals/icu/source/common/utrie2.cpp", |
| 204 | "../externals/icu/source/common/utrie2_builder.cpp", |
| 205 | "../externals/icu/source/common/uts46.cpp", |
| 206 | "../externals/icu/source/common/utypes.c", |
| 207 | "../externals/icu/source/common/uvector.cpp", |
| 208 | "../externals/icu/source/common/uvectr32.cpp", |
| 209 | "../externals/icu/source/common/uvectr64.cpp", |
| 210 | "../externals/icu/source/common/wintz.c", |
| 211 | ] |
| 212 | sources += [ "../externals/icu/$current_os/icudtl_dat.S" ] |
| 213 | } |
halcanary | 19a9720 | 2016-08-03 15:08:04 -0700 | [diff] [blame] | 214 | } |