Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: third_party/WebKit/Source/platform/BUILD.gn

Issue 1645893002: Improve performance of Character::isCJKIdeographOrSymbol by using trie tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: asan/msan/tsan build fix Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/blink_platform.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 "//build/config/sanitizers:deps",
171 "//third_party/icu",
172 ]
173 }
174
142 # This isn't strictly necessary since we can just add the deps to "platform", 175 # This isn't strictly necessary since we can just add the deps to "platform",
143 # but it helps to have the targets match the GYP build. 176 # but it helps to have the targets match the GYP build.
144 group("make_platform_generated") { 177 group("make_platform_generated") {
145 visibility = [] # Allow re-assignment of list. 178 visibility = [] # Allow re-assignment of list.
146 visibility = [ "//third_party/WebKit/Source/*" ] 179 visibility = [ "//third_party/WebKit/Source/*" ]
147 public_deps = [ 180 public_deps = [
148 ":blink_common", 181 ":blink_common",
182 ":character_data",
149 ":color_data", 183 ":color_data",
150 ":font_family_names", 184 ":font_family_names",
151 ":http_names", 185 ":http_names",
152 ":runtime_enabled_features", 186 ":runtime_enabled_features",
153 ] 187 ]
154 } 188 }
155 189
156 # TODO(brettw) Objective C Renaming postbuild steps on Mac. 190 # TODO(brettw) Objective C Renaming postbuild steps on Mac.
157 # blink_platform target in blink_platform.gyp 191 # blink_platform target in blink_platform.gyp
158 component("platform") { 192 component("platform") {
159 visibility = [] # Allow re-assignment of list. 193 visibility = [] # Allow re-assignment of list.
160 visibility = [ "//third_party/WebKit/*" ] 194 visibility = [ "//third_party/WebKit/*" ]
161 output_name = "blink_platform" 195 output_name = "blink_platform"
162 196
163 sources = platform_files 197 sources = platform_files
164 sources -= blink_platform_neon_files 198 sources -= blink_platform_neon_files
165 sources -= blink_platform_sse_files 199 sources -= blink_platform_sse_files
166 200
167 # Add in the generated files. 201 # Add in the generated files.
168 sources += get_target_outputs(":font_family_names") + 202 sources +=
169 get_target_outputs(":http_names") + 203 get_target_outputs(":font_family_names") +
170 get_target_outputs(":runtime_enabled_features") + 204 get_target_outputs(":http_names") +
171 get_target_outputs(":color_data") 205 get_target_outputs(":runtime_enabled_features") +
206 get_target_outputs(":color_data") + get_target_outputs(":character_data")
172 207
173 configs += [ 208 configs += [
174 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 209 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
175 "//build/config/compiler:no_size_t_to_int_warning", 210 "//build/config/compiler:no_size_t_to_int_warning",
176 "//third_party/WebKit/Source:config", 211 "//third_party/WebKit/Source:config",
177 "//third_party/WebKit/Source:non_test_config", 212 "//third_party/WebKit/Source:non_test_config",
178 ] 213 ]
179 214
180 defines = [ 215 defines = [
181 "BLINK_PLATFORM_IMPLEMENTATION=1", 216 "BLINK_PLATFORM_IMPLEMENTATION=1",
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 } 485 }
451 486
452 if (current_cpu == "x86" || current_cpu == "x64") { 487 if (current_cpu == "x86" || current_cpu == "x64") {
453 source_set("blink_x86_sse") { 488 source_set("blink_x86_sse") {
454 sources = blink_platform_sse_files 489 sources = blink_platform_sse_files
455 deps = [ 490 deps = [
456 ":blink_common", 491 ":blink_common",
457 ] 492 ]
458 } 493 }
459 } 494 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/blink_platform.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698