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

Side by Side Diff: third_party/WebKit/Source/platform/platform_generated.gyp

Issue 1644893002: Revert of Improve performance of Character::isCJKIdeographOrSymbol by using trie tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « third_party/WebKit/Source/platform/fonts/CharacterTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 1 #
2 # Copyright (C) 2013 Google Inc. All rights reserved. 2 # Copyright (C) 2013 Google Inc. All rights reserved.
3 # 3 #
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 16 matching lines...) Expand all
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 # 29 #
30 30
31 { 31 {
32 'includes': [ 32 'includes': [
33 '../build/features.gypi', 33 '../build/features.gypi',
34 '../build/scripts/scripts.gypi', 34 '../build/scripts/scripts.gypi',
35 'platform_generated.gypi', 35 'platform_generated.gypi',
36 ], 36 ],
37 'variables': {
38 'conditions': [
39 # TODO(kojii): The character_data_generator fails when cross-compile, so
40 # we use a pre-generated copy in the tree until we fix or until we move
41 # to gn. See crbug.com/581555
42 ['OS=="android" or chromeos==1 or (target_arch!="ia32" and target_arch!="x 64")', {
43 'generate_character_data%': 0,
44 }, {
45 'generate_character_data%': 1,
46 }],
47 ],
48 },
49 37
50 'targets': [ 38 'targets': [
51 { 39 {
52 'target_name': 'make_platform_generated', 40 'target_name': 'make_platform_generated',
53 'type': 'none', 41 'type': 'none',
54 'hard_dependency': 1, 42 'hard_dependency': 1,
55 'conditions': [
56 ['generate_character_data==1', {
57 'dependencies': [
58 'character_data_generator#host',
59 ],
60 }]
61 ],
62 'actions': [ 43 'actions': [
63 { 44 {
64 'action_name': 'FontFamilyNames', 45 'action_name': 'FontFamilyNames',
65 'inputs': [ 46 'inputs': [
66 '<@(make_names_files)', 47 '<@(make_names_files)',
67 'fonts/FontFamilyNames.in', 48 'fonts/FontFamilyNames.in',
68 ], 49 ],
69 'outputs': [ 50 'outputs': [
70 '<(blink_platform_output_dir)/FontFamilyNames.cpp', 51 '<(blink_platform_output_dir)/FontFamilyNames.cpp',
71 '<(blink_platform_output_dir)/FontFamilyNames.h', 52 '<(blink_platform_output_dir)/FontFamilyNames.h',
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 '<(blink_platform_output_dir)/ColorData.cpp', 107 '<(blink_platform_output_dir)/ColorData.cpp',
127 ], 108 ],
128 'action': [ 109 'action': [
129 '<(gperf_exe)', 110 '<(gperf_exe)',
130 '--key-positions=*', 111 '--key-positions=*',
131 '-D', '-s', '2', 112 '-D', '-s', '2',
132 '<@(_inputs)', 113 '<@(_inputs)',
133 '--output-file=<(blink_platform_output_dir)/ColorData.cpp', 114 '--output-file=<(blink_platform_output_dir)/ColorData.cpp',
134 ], 115 ],
135 }, 116 },
136 {
137 'action_name': 'CharacterData',
138 'inputs': [
139 'fonts/CharacterDataGenerator.cpp',
140 ],
141 'outputs': [
142 '<(blink_platform_output_dir)/CharacterData.cpp',
143 ],
144 'conditions': [
145 ['generate_character_data==1', {
146 'action': [
147 '<(PRODUCT_DIR)/character_data_generator',
148 '<(blink_platform_output_dir)/CharacterData.cpp',
149 ],
150 }, {
151 'action': [
152 'cp',
153 'fonts/CharacterData.cpp',
154 '<(blink_platform_output_dir)/CharacterData.cpp',
155 ],
156 }]
157 ],
158 },
159 ] 117 ]
160 }, 118 },
161 {
162 'target_name': 'character_data_generator',
163 'type': 'executable',
164 'toolsets': ['host'],
165 'sources': [
166 'fonts/CharacterDataGenerator.cpp',
167 ],
168 'dependencies': [
169 '<(DEPTH)/third_party/icu/icu.gyp:icuuc#host',
170 ],
171 },
172 ], 119 ],
173 } 120 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/CharacterTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698