OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 import("//third_party/WebKit/Source/build/scripts/scripts.gni") | 7 import("//third_party/WebKit/Source/build/scripts/scripts.gni") |
8 import("//third_party/WebKit/Source/config.gni") | 8 import("//third_party/WebKit/Source/config.gni") |
9 import("//third_party/WebKit/Source/platform/platform.gni") | 9 import("//third_party/WebKit/Source/platform/platform.gni") |
10 import("//third_party/WebKit/Source/platform/platform_generated.gni") | 10 import("//third_party/WebKit/Source/platform/platform_generated.gni") |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 gperf_exe, | 132 gperf_exe, |
133 "--key-positions=*", | 133 "--key-positions=*", |
134 "-D", | 134 "-D", |
135 "-s", | 135 "-s", |
136 "2", | 136 "2", |
137 rebase_path(color_data_gperf, root_build_dir), | 137 rebase_path(color_data_gperf, root_build_dir), |
138 "--output-file=" + rebase_path(output_file, root_build_dir), | 138 "--output-file=" + rebase_path(output_file, root_build_dir), |
139 ] | 139 ] |
140 } | 140 } |
141 | 141 |
142 action("character_data") { | |
143 script = "../build/scripts/gperf.py" | |
144 deps = [ | |
145 ":character_data_generator($host_toolchain)", | |
146 ] | |
147 output_file = "$blink_platform_output_dir/CharacterData.cpp" | |
148 outputs = [ | |
149 output_file, | |
150 ] | |
151 | |
152 # Find character_data_generator, which is generated in a different directory | |
153 # when cross-compile. | |
154 generator = "./" + rebase_path( | |
155 get_label_info(":character_data_generator($host_toolchain)", | |
156 "root_out_dir") + "/character_data_generator", | |
157 root_build_dir) | |
158 args = [ | |
159 generator, | |
160 rebase_path(output_file, root_build_dir), | |
161 ] | |
162 } | |
163 | |
164 executable("character_data_generator") { | |
165 sources = [ | |
166 "fonts/CharacterDataGenerator.cpp", | |
167 ] | |
168 configs += [ "//third_party/WebKit/Source:config" ] | |
169 deps = [ | |
170 "//third_party/icu", | |
171 ] | |
172 } | |
173 | |
174 # This isn't strictly necessary since we can just add the deps to "platform", | 142 # This isn't strictly necessary since we can just add the deps to "platform", |
175 # but it helps to have the targets match the GYP build. | 143 # but it helps to have the targets match the GYP build. |
176 group("make_platform_generated") { | 144 group("make_platform_generated") { |
177 visibility = [] # Allow re-assignment of list. | 145 visibility = [] # Allow re-assignment of list. |
178 visibility = [ "//third_party/WebKit/Source/*" ] | 146 visibility = [ "//third_party/WebKit/Source/*" ] |
179 public_deps = [ | 147 public_deps = [ |
180 ":blink_common", | 148 ":blink_common", |
181 ":character_data", | |
182 ":color_data", | 149 ":color_data", |
183 ":font_family_names", | 150 ":font_family_names", |
184 ":http_names", | 151 ":http_names", |
185 ":runtime_enabled_features", | 152 ":runtime_enabled_features", |
186 ] | 153 ] |
187 } | 154 } |
188 | 155 |
189 # TODO(brettw) Objective C Renaming postbuild steps on Mac. | 156 # TODO(brettw) Objective C Renaming postbuild steps on Mac. |
190 # blink_platform target in blink_platform.gyp | 157 # blink_platform target in blink_platform.gyp |
191 component("platform") { | 158 component("platform") { |
192 visibility = [] # Allow re-assignment of list. | 159 visibility = [] # Allow re-assignment of list. |
193 visibility = [ "//third_party/WebKit/*" ] | 160 visibility = [ "//third_party/WebKit/*" ] |
194 output_name = "blink_platform" | 161 output_name = "blink_platform" |
195 | 162 |
196 sources = platform_files | 163 sources = platform_files |
197 sources -= blink_platform_neon_files | 164 sources -= blink_platform_neon_files |
198 sources -= blink_platform_sse_files | 165 sources -= blink_platform_sse_files |
199 | 166 |
200 # Add in the generated files. | 167 # Add in the generated files. |
201 sources += | 168 sources += get_target_outputs(":font_family_names") + |
202 get_target_outputs(":font_family_names") + | 169 get_target_outputs(":http_names") + |
203 get_target_outputs(":http_names") + | 170 get_target_outputs(":runtime_enabled_features") + |
204 get_target_outputs(":runtime_enabled_features") + | 171 get_target_outputs(":color_data") |
205 get_target_outputs(":color_data") + get_target_outputs(":character_data") | |
206 | 172 |
207 configs += [ | 173 configs += [ |
208 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 174 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
209 "//build/config/compiler:no_size_t_to_int_warning", | 175 "//build/config/compiler:no_size_t_to_int_warning", |
210 "//third_party/WebKit/Source:config", | 176 "//third_party/WebKit/Source:config", |
211 "//third_party/WebKit/Source:non_test_config", | 177 "//third_party/WebKit/Source:non_test_config", |
212 ] | 178 ] |
213 | 179 |
214 defines = [ | 180 defines = [ |
215 "BLINK_PLATFORM_IMPLEMENTATION=1", | 181 "BLINK_PLATFORM_IMPLEMENTATION=1", |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 } | 450 } |
485 | 451 |
486 if (current_cpu == "x86" || current_cpu == "x64") { | 452 if (current_cpu == "x86" || current_cpu == "x64") { |
487 source_set("blink_x86_sse") { | 453 source_set("blink_x86_sse") { |
488 sources = blink_platform_sse_files | 454 sources = blink_platform_sse_files |
489 deps = [ | 455 deps = [ |
490 ":blink_common", | 456 ":blink_common", |
491 ] | 457 ] |
492 } | 458 } |
493 } | 459 } |
OLD | NEW |