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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 ], | 70 ], |
71 'include_dirs': [ | 71 'include_dirs': [ |
72 'source/common', | 72 'source/common', |
73 'source/i18n', | 73 'source/i18n', |
74 ], | 74 ], |
75 'msvs_disabled_warnings': [4005, 4068, 4355, 4996, 4267], | 75 'msvs_disabled_warnings': [4005, 4068, 4355, 4996, 4267], |
76 }, | 76 }, |
77 'conditions': [ | 77 'conditions': [ |
78 ['use_system_icu==0 or want_separate_host_toolset==1', { | 78 ['use_system_icu==0 or want_separate_host_toolset==1', { |
79 'targets': [ | 79 'targets': [ |
80 { | 80 # { |
81 'target_name': 'copy_icudtl_dat', | 81 # 'target_name': 'copy_icudtl_dat', |
82 'type': 'none', | 82 # 'type': 'none', |
83 # icudtl.dat is the same for both host/target, so this only supports a | 83 # # icudtl.dat is the same for both host/target, so this only supports
a |
84 # single toolset. If a target requires that the .dat file be copied | 84 # # single toolset. If a target requires that the .dat file be copied |
85 # to the output directory, it should explicitly depend on this target | 85 # # to the output directory, it should explicitly depend on this targe
t |
86 # with the host toolset (like copy_icudtl_dat#host). | 86 # # with the host toolset (like copy_icudtl_dat#host). |
87 'toolsets': [ 'host' ], | 87 # 'toolsets': [ 'host' ], |
88 'copies': [{ | 88 # 'copies': [{ |
89 'destination': '<(PRODUCT_DIR)', | 89 # 'destination': '<(PRODUCT_DIR)', |
90 'conditions': [ | 90 # 'conditions': [ |
91 ['OS == "android"', { | 91 # ['OS == "android"', { |
92 'files': [ | 92 # 'files': [ |
93 'android/icudtl.dat', | 93 # 'android/icudtl.dat', |
94 ], | 94 # ], |
95 } , { # else: OS != android | 95 # } , { # else: OS != android |
96 'files': [ | 96 # 'files': [ |
97 'source/data/in/icudtl.dat', | 97 # 'source/data/in/icudtl.dat', |
98 ], | 98 # ], |
99 }], | 99 # }], |
100 ], | 100 # ], |
101 }], | 101 # }], |
102 }, | 102 # }, |
103 { | 103 # { |
104 'target_name': 'icudata', | 104 # 'target_name': 'icudata', |
105 'type': 'static_library', | 105 # 'type': 'static_library', |
106 'defines': [ | 106 # 'defines': [ |
107 'U_HIDE_DATA_SYMBOL', | 107 # 'U_HIDE_DATA_SYMBOL', |
108 ], | 108 # ], |
109 'sources': [ | 109 # 'sources': [ |
110 # These are hand-generated, but will do for now. The linux | 110 # # These are hand-generated, but will do for now. The linux |
111 # version is an identical copy of the (mac) icudtl_dat.S file, | 111 # # version is an identical copy of the (mac) icudtl_dat.S file, |
112 # modulo removal of the .private_extern and .const directives and | 112 # # modulo removal of the .private_extern and .const directives and |
113 # with no leading underscore on the icudt52_dat symbol. | 113 # # with no leading underscore on the icudt52_dat symbol. |
114 'android/icudtl_dat.S', | 114 # 'android/icudtl_dat.S', |
115 'linux/icudtl_dat.S', | 115 # 'linux/icudtl_dat.S', |
116 'mac/icudtl_dat.S', | 116 # 'mac/icudtl_dat.S', |
117 ], | 117 # ], |
118 'conditions': [ | 118 # 'conditions': [ |
119 [ 'use_system_icu==1 and want_separate_host_toolset==1', { | 119 # [ 'use_system_icu==1 and want_separate_host_toolset==1', { |
120 'toolsets': ['host'], | 120 # 'toolsets': ['host'], |
121 }], | 121 # }], |
122 [ 'use_system_icu==0 and want_separate_host_toolset==1', { | 122 # [ 'use_system_icu==0 and want_separate_host_toolset==1', { |
123 'toolsets': ['host', 'target'], | 123 # 'toolsets': ['host', 'target'], |
124 }], | 124 # }], |
125 [ 'use_system_icu==0 and want_separate_host_toolset==0', { | 125 # [ 'use_system_icu==0 and want_separate_host_toolset==0', { |
126 'toolsets': ['target'], | 126 # 'toolsets': ['target'], |
127 }], | 127 # }], |
128 [ 'OS == "win" and icu_use_data_file_flag==0', { | 128 # [ 'OS == "win" and icu_use_data_file_flag==0', { |
129 'type': 'none', | 129 # 'type': 'none', |
130 'copies': [ | 130 # 'copies': [ |
131 { | 131 # { |
132 'destination': '<(PRODUCT_DIR)', | 132 # 'destination': '<(PRODUCT_DIR)', |
133 'files': [ | 133 # 'files': [ |
134 'windows/icudt.dll', | 134 # 'windows/icudt.dll', |
135 ], | 135 # ], |
136 }, | 136 # }, |
137 ], | 137 # ], |
138 }], | 138 # }], |
139 [ 'icu_use_data_file_flag==1', { | 139 # [ 'icu_use_data_file_flag==1', { |
140 'type': 'none', | 140 # 'type': 'none', |
141 # Remove any assembly data file. | 141 # # Remove any assembly data file. |
142 'sources/': [['exclude', 'icudtl_dat']], | 142 # 'sources/': [['exclude', 'icudtl_dat']], |
143 | 143 |
144 # Make sure any binary depending on this gets the data file. | 144 # # Make sure any binary depending on this gets the data file. |
145 'conditions': [ | 145 # 'conditions': [ |
146 ['OS != "ios"', { | 146 # ['OS != "ios"', { |
147 'dependencies': [ | 147 # 'dependencies': [ |
148 'copy_icudtl_dat#host', | 148 # 'copy_icudtl_dat#host', |
149 ], | 149 # ], |
150 } , { # else: OS=="ios" | 150 # } , { # else: OS=="ios" |
151 'link_settings': { | 151 # 'link_settings': { |
152 'mac_bundle_resources': [ | 152 # 'mac_bundle_resources': [ |
153 'source/data/in/icudtl.dat', | 153 # 'source/data/in/icudtl.dat', |
154 ], | 154 # ], |
155 }, | 155 # }, |
156 }], # OS!=ios | 156 # }], # OS!=ios |
157 ], # conditions | 157 # ], # conditions |
158 }], # icu_use_data_file_flag | 158 # }], # icu_use_data_file_flag |
159 ], # conditions | 159 # ], # conditions |
160 'target_conditions': [ | 160 # 'target_conditions': [ |
161 [ 'OS == "win" or OS == "mac" or OS == "ios" or ' | 161 # [ 'OS == "win" or OS == "mac" or OS == "ios" or ' |
162 '(OS == "android" and (_toolset != "host" or host_os != "linux"))
or ' | 162 # '(OS == "android" and (_toolset != "host" or host_os != "linux")
) or ' |
163 '(OS == "qnx" and (_toolset == "host" and host_os != "linux"))', { | 163 # '(OS == "qnx" and (_toolset == "host" and host_os != "linux"))',
{ |
164 'sources!': ['linux/icudtl_dat.S'], | 164 # 'sources!': ['linux/icudtl_dat.S'], |
165 }], | 165 # }], |
166 [ 'OS != "android" or _toolset == "host"', { | 166 # [ 'OS != "android" or _toolset == "host"', { |
167 'sources!': ['android/icudtl_dat.S'], | 167 # 'sources!': ['android/icudtl_dat.S'], |
168 }], | 168 # }], |
169 [ 'OS != "mac" and OS != "ios" and ' | 169 # [ 'OS != "mac" and OS != "ios" and ' |
170 '((OS != "android" and OS != "qnx") or ' | 170 # '((OS != "android" and OS != "qnx") or ' |
171 '_toolset != "host" or host_os != "mac")', { | 171 # '_toolset != "host" or host_os != "mac")', { |
172 'sources!': ['mac/icudtl_dat.S'], | 172 # 'sources!': ['mac/icudtl_dat.S'], |
173 }], | 173 # }], |
174 ], # target_conditions | 174 # ], # target_conditions |
175 }, | 175 # }, |
176 { | 176 { |
177 'target_name': 'icui18n', | 177 'target_name': 'icui18n', |
178 'type': '<(component)', | 178 'type': '<(component)', |
179 'sources': [ | 179 'sources': [ |
180 '<@(icui18n_sources)', | 180 '<@(icui18n_sources)', |
181 ], | 181 ], |
182 'defines': [ | 182 'defines': [ |
183 'U_I18N_IMPLEMENTATION', | 183 'U_I18N_IMPLEMENTATION', |
184 ], | 184 ], |
185 'dependencies': [ | 185 'dependencies': [ |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 'ldflags': [ | 371 'ldflags': [ |
372 '<!@(icu-config --ldflags)', | 372 '<!@(icu-config --ldflags)', |
373 ], | 373 ], |
374 'libraries': [ | 374 'libraries': [ |
375 '<!@(icu-config --ldflags-libsonly)', | 375 '<!@(icu-config --ldflags-libsonly)', |
376 ], | 376 ], |
377 }, | 377 }, |
378 }], | 378 }], |
379 ], | 379 ], |
380 }, | 380 }, |
381 { | 381 # { |
382 'target_name': 'icudata', | 382 # 'target_name': 'icudata', |
383 'type': 'none', | 383 # 'type': 'none', |
384 'dependencies': ['system_icu'], | 384 # 'dependencies': ['system_icu'], |
385 'export_dependent_settings': ['system_icu'], | 385 # 'export_dependent_settings': ['system_icu'], |
386 'toolsets': ['target'], | 386 # 'toolsets': ['target'], |
387 }, | 387 # }, |
388 { | 388 { |
389 'target_name': 'icui18n', | 389 'target_name': 'icui18n', |
390 'type': 'none', | 390 'type': 'none', |
391 'dependencies': ['system_icu'], | 391 'dependencies': ['system_icu'], |
392 'export_dependent_settings': ['system_icu'], | 392 'export_dependent_settings': ['system_icu'], |
393 'variables': { | 393 'variables': { |
394 'headers_root_path': 'source/i18n', | 394 'headers_root_path': 'source/i18n', |
395 'header_filenames': [ | 395 'header_filenames': [ |
396 # This list can easily be updated using the command below: | 396 # This list can easily be updated using the command below: |
397 # find source/i18n/unicode -iname '*.h' \ | 397 # find source/i18n/unicode -iname '*.h' \ |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 ], | 584 ], |
585 }, | 585 }, |
586 'includes': [ | 586 'includes': [ |
587 '../../build/shim_headers.gypi', | 587 '../../build/shim_headers.gypi', |
588 ], | 588 ], |
589 'toolsets': ['target'], | 589 'toolsets': ['target'], |
590 }, | 590 }, |
591 ], # targets | 591 ], # targets |
592 }], | 592 }], |
593 ], # conditions | 593 ], # conditions |
| 594 'targets': [ |
| 595 { |
| 596 'target_name': 'icudata', |
| 597 'conditions': [ |
| 598 ['icu_use_data_file_flag==1', |
| 599 { |
| 600 'type': 'none', |
| 601 }, |
| 602 { |
| 603 'type': 'static_library', |
| 604 'defines': [ |
| 605 'U_HIDE_DATA_SYMBOL', |
| 606 ], |
| 607 'sources': [ |
| 608 # These are hand-generated, but will do for now. The l
inux |
| 609 # version is an identical copy of the (mac) icudtl_dat.
S file, |
| 610 # modulo removal of the .private_extern and .const dire
ctives and |
| 611 # with no leading underscore on the icudt52_dat symbol. |
| 612 '<(SHARED_INTERMEDIATE_DIR)/tmp_icudt54l/icudt54l_dat.S
', |
| 613 ], |
| 614 }], |
| 615 ], |
| 616 'dependencies': ['icu_data.gyp:icu_data#target'], |
| 617 'toolsets': ['host', 'target'], |
| 618 }, |
| 619 ], |
594 } | 620 } |
OLD | NEW |