OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'includes': [ | 6 'includes': [ |
7 'icu.gypi', | 7 'icu.gypi', |
8 ], | 8 ], |
9 'variables': { | 9 'variables': { |
10 'use_system_icu%': 0, | 10 'use_system_icu%': 0, |
(...skipping 27 matching lines...) Expand all Loading... | |
38 ], | 38 ], |
39 'conditions': [ | 39 'conditions': [ |
40 ['component=="static_library"', { | 40 ['component=="static_library"', { |
41 'defines': [ | 41 'defines': [ |
42 'U_STATIC_IMPLEMENTATION', | 42 'U_STATIC_IMPLEMENTATION', |
43 ], | 43 ], |
44 }], | 44 }], |
45 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 45 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
46 or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \ | 46 or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \ |
47 (target_arch=="arm" or target_arch=="ia32" or \ | 47 (target_arch=="arm" or target_arch=="ia32" or \ |
48 target_arch=="mipsel")', { | 48 target_arch=="mipsel" or target_arch=="mips")', { |
49 'target_conditions': [ | 49 'target_conditions': [ |
50 ['_toolset=="host"', { | 50 ['_toolset=="host"', { |
51 'cflags': [ '-m32' ], | 51 'cflags': [ '-m32' ], |
52 'ldflags': [ '-m32' ], | 52 'ldflags': [ '-m32' ], |
53 'asflags': [ '-32' ], | 53 'asflags': [ '-32' ], |
54 'xcode_settings': { | 54 'xcode_settings': { |
55 'ARCHS': [ 'i386' ], | 55 'ARCHS': [ 'i386' ], |
56 }, | 56 }, |
57 }], | 57 }], |
58 ], | 58 ], |
59 }], | 59 }], |
60 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 60 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
61 or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \ | 61 or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \ |
62 (target_arch=="arm64" or target_arch=="x64" or \ | 62 (target_arch=="arm64" or target_arch=="x64" or \ |
63 target_arch=="mipsel64")', { | 63 target_arch=="mips64el" or target_arch=="mips64")', { |
64 'target_conditions': [ | 64 'target_conditions': [ |
65 ['_toolset=="host"', { | 65 ['_toolset=="host"', { |
66 'cflags': [ '-m64' ], | 66 'cflags': [ '-m64' ], |
67 'ldflags': [ '-m64' ], | 67 'ldflags': [ '-m64' ], |
68 'asflags': [ '-64' ], | 68 'asflags': [ '-64' ], |
69 'xcode_settings': { | 69 'xcode_settings': { |
70 'ARCHS': [ 'x86_64' ], | 70 'ARCHS': [ 'x86_64' ], |
71 }, | 71 }, |
72 }], | 72 }], |
73 ], | 73 ], |
(...skipping 25 matching lines...) Expand all Loading... | |
99 ], | 99 ], |
100 } , { # else: OS != android | 100 } , { # else: OS != android |
101 'files': [ | 101 'files': [ |
102 'common/icudtl.dat', | 102 'common/icudtl.dat', |
103 ], | 103 ], |
104 }], | 104 }], |
105 ], | 105 ], |
106 }], | 106 }], |
107 }, | 107 }, |
108 { | 108 { |
109 'target_name': 'data_assembly', | |
110 'type': 'none', | |
111 'conditions': [ | |
112 [ 'target_arch=="mips" or target_arch=="mips64"', { | |
113 'data_assembly_sources': [ | |
114 'common/icudtb.dat', | |
115 ], | |
116 'data_assembly_inputs': [ | |
117 'scripts/make_data_assembly.py', | |
118 'common/icudtb.dat', | |
119 ], | |
120 'data_assembly_outputs': [ | |
121 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_dat.S', | |
122 ], | |
123 }], | |
124 [ 'target_arch!="mips" and target_arch!="mips64"', { | |
125 'data_assembly_sources': [ | |
126 'common/icudtl.dat', | |
127 ], | |
128 'data_assembly_inputs': [ | |
129 'scripts/make_data_assembly.py', | |
130 'common/icudtl.dat', | |
131 ], | |
132 'data_assembly_outputs': [ | |
133 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_dat.S', | |
134 ], | |
135 }], | |
136 ], | |
137 'sources': [ | |
138 '<@(_data_assembly_sources)', | |
139 ], | |
140 'actions': [ | |
141 { | |
142 'action_name': 'make_data_assembly', | |
143 'inputs': [ | |
144 '<@(_data_assembly_inputs)', | |
145 ], | |
146 'outputs': [ | |
147 '<@(_data_assembly_outputs)', | |
148 ], | |
149 'action': ['python', '<@(_inputs)', '<@(_outputs)'], | |
150 }, | |
151 ], | |
152 }, | |
153 { | |
109 'target_name': 'icudata', | 154 'target_name': 'icudata', |
110 'type': 'static_library', | 155 'type': 'static_library', |
111 'defines': [ | 156 'defines': [ |
112 'U_HIDE_DATA_SYMBOL', | 157 'U_HIDE_DATA_SYMBOL', |
113 ], | 158 ], |
159 'dependencies': [ | |
160 'data_assembly#target', | |
161 ], | |
114 'sources': [ | 162 'sources': [ |
115 # These are hand-generated, but will do for now. The linux | 163 # These are hand-generated, but will do for now. The linux |
116 # version is an identical copy of the (mac) icudtl_dat.S file, | 164 # version is an identical copy of the (mac) icudtl_dat.S file, |
117 # modulo removal of the .private_extern and .const directives and | 165 # modulo removal of the .private_extern and .const directives and |
118 # with no leading underscore on the icudt52_dat symbol. | 166 # with no leading underscore on the icudt52_dat symbol. |
119 'android/icudtl_dat.S', | 167 'android/icudtl_dat.S', |
120 'linux/icudtl_dat.S', | 168 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_dat.S', |
169 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_dat.S', | |
121 'mac/icudtl_dat.S', | 170 'mac/icudtl_dat.S', |
122 ], | 171 ], |
123 'conditions': [ | 172 'conditions': [ |
173 [ 'target_arch=="mips" or target_arch=="mips64"', { | |
174 'sources!': ['<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_da t.S'], | |
175 }], | |
176 [ 'target_arch!="mips" and target_arch!="mips64"', { | |
177 'sources!': ['<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_da t.S'], | |
178 }], | |
124 [ 'use_system_icu==1 and want_separate_host_toolset==1', { | 179 [ 'use_system_icu==1 and want_separate_host_toolset==1', { |
125 'toolsets': ['host'], | 180 'toolsets': ['host'], |
126 }], | 181 }], |
127 [ 'use_system_icu==0 and want_separate_host_toolset==1', { | 182 [ 'use_system_icu==0 and want_separate_host_toolset==1', { |
128 'toolsets': ['host', 'target'], | 183 'toolsets': ['host', 'target'], |
129 }], | 184 }], |
130 [ 'use_system_icu==0 and want_separate_host_toolset==0', { | 185 [ 'use_system_icu==0 and want_separate_host_toolset==0', { |
131 'toolsets': ['target'], | 186 'toolsets': ['target'], |
132 }], | 187 }], |
133 [ 'OS == "win" and icu_use_data_file_flag==0', { | 188 [ 'OS == "win" and icu_use_data_file_flag==0', { |
134 'type': 'none', | 189 'type': 'none', |
190 'dependencies!': [ | |
191 'data_assembly#target', | |
192 ], | |
135 'copies': [ | 193 'copies': [ |
136 { | 194 { |
137 'destination': '<(PRODUCT_DIR)', | 195 'destination': '<(PRODUCT_DIR)', |
138 'files': [ | 196 'files': [ |
139 'windows/icudt.dll', | 197 'windows/icudt.dll', |
140 ], | 198 ], |
141 }, | 199 }, |
142 ], | 200 ], |
143 }], | 201 }], |
202 [ '(OS == "mac" or OS == "ios") and icu_use_data_file_flag==0', { | |
203 'type': 'none', | |
204 'dependencies!': [ | |
205 'data_assembly#target', | |
206 ], | |
207 }], | |
144 [ 'icu_use_data_file_flag==1', { | 208 [ 'icu_use_data_file_flag==1', { |
145 'type': 'none', | 209 'type': 'none', |
210 'dependencies!': [ | |
211 'data_assembly#target', | |
212 ], | |
146 # Remove any assembly data file. | 213 # Remove any assembly data file. |
147 'sources/': [['exclude', 'icudtl_dat']], | 214 'sources/': [['exclude', 'icudtl_dat', 'icudtb_dat']], |
jungshik at Google
2016/07/20 00:08:40
this should read
'sources/': [['exclude', 'icudt[
| |
148 | 215 |
149 # Make sure any binary depending on this gets the data file. | 216 # Make sure any binary depending on this gets the data file. |
150 'conditions': [ | 217 'conditions': [ |
151 ['OS != "ios"', { | 218 ['OS != "ios"', { |
152 'dependencies': [ | 219 'dependencies': [ |
153 'copy_icudtl_dat#host', | 220 'copy_icudtl_dat#host', |
154 ], | 221 ], |
155 } , { # else: OS=="ios" | 222 } , { # else: OS=="ios" |
156 'link_settings': { | 223 'link_settings': { |
157 'mac_bundle_resources': [ | 224 'mac_bundle_resources': [ |
158 'common/icudtl.dat', | 225 'common/icudtl.dat', |
159 ], | 226 ], |
160 }, | 227 }, |
161 }], # OS!=ios | 228 }], # OS!=ios |
162 ], # conditions | 229 ], # conditions |
163 }], # icu_use_data_file_flag | 230 }], # icu_use_data_file_flag |
164 ], # conditions | 231 ], # conditions |
165 'target_conditions': [ | 232 'target_conditions': [ |
166 [ 'OS == "win" or OS == "mac" or OS == "ios" or ' | 233 [ 'OS == "win" or OS == "mac" or OS == "ios" or ' |
167 '(OS == "android" and (_toolset != "host" or host_os != "linux")) or ' | 234 '(OS == "android" and (_toolset != "host" or host_os != "linux")) or ' |
168 '(OS == "qnx" and (_toolset == "host" and host_os != "linux"))', { | 235 '(OS == "qnx" and (_toolset == "host" and host_os != "linux"))', { |
169 'sources!': ['linux/icudtl_dat.S'], | 236 'sources!': [ |
237 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_dat.S', | |
238 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_dat.S' | |
239 ], | |
170 }], | 240 }], |
171 [ 'OS != "android" or _toolset == "host"', { | 241 [ 'OS != "android" or _toolset == "host"', { |
172 'sources!': ['android/icudtl_dat.S'], | 242 'sources!': ['android/icudtl_dat.S'], |
173 }], | 243 }], |
174 [ 'OS != "mac" and OS != "ios" and ' | 244 [ 'OS != "mac" and OS != "ios" and ' |
175 '((OS != "android" and OS != "qnx") or ' | 245 '((OS != "android" and OS != "qnx") or ' |
176 '_toolset != "host" or host_os != "mac")', { | 246 '_toolset != "host" or host_os != "mac")', { |
177 'sources!': ['mac/icudtl_dat.S'], | 247 'sources!': ['mac/icudtl_dat.S'], |
178 }], | 248 }], |
179 ], # target_conditions | 249 ], # target_conditions |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
338 [ 'use_system_icu==1 and want_separate_host_toolset==1', { | 408 [ 'use_system_icu==1 and want_separate_host_toolset==1', { |
339 'toolsets': ['host'], | 409 'toolsets': ['host'], |
340 }], | 410 }], |
341 [ 'use_system_icu==0 and want_separate_host_toolset==1', { | 411 [ 'use_system_icu==0 and want_separate_host_toolset==1', { |
342 'toolsets': ['host', 'target'], | 412 'toolsets': ['host', 'target'], |
343 }], | 413 }], |
344 [ 'use_system_icu==0 and want_separate_host_toolset==0', { | 414 [ 'use_system_icu==0 and want_separate_host_toolset==0', { |
345 'toolsets': ['target'], | 415 'toolsets': ['target'], |
346 }], | 416 }], |
347 [ 'OS == "win" or icu_use_data_file_flag==1', { | 417 [ 'OS == "win" or icu_use_data_file_flag==1', { |
418 'dependencies!': [ | |
419 'data_assembly#target', | |
420 ], | |
jungshik at Google
2016/07/19 23:01:30
This gave me an error when running v8/gypfiles/gyp
| |
348 'sources': [ | 421 'sources': [ |
349 'source/stubdata/stubdata.c', | 422 'source/stubdata/stubdata.c', |
350 ], | 423 ], |
351 'defines': [ | 424 'defines': [ |
352 'U_ICUDATAENTRY_IN_COMMON', | 425 'U_ICUDATAENTRY_IN_COMMON', |
353 ], | 426 ], |
354 }], | 427 }], |
355 [ 'OS == "win" and clang==1', { | 428 [ 'OS == "win" and clang==1', { |
356 # Note: General clang warnings should go in the | 429 # Note: General clang warnings should go in the |
357 # clang_warning_flags block above. | 430 # clang_warning_flags block above. |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
602 }, | 675 }, |
603 'includes': [ | 676 'includes': [ |
604 '../../build/shim_headers.gypi', | 677 '../../build/shim_headers.gypi', |
605 ], | 678 ], |
606 'toolsets': ['target'], | 679 'toolsets': ['target'], |
607 }, | 680 }, |
608 ], # targets | 681 ], # targets |
609 }], | 682 }], |
610 ], # conditions | 683 ], # conditions |
611 } | 684 } |
OLD | NEW |