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

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

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