OLD | NEW |
| (Empty) |
1 # | |
2 # Copyright (C) 2013 Google Inc. All rights reserved. | |
3 # | |
4 # Redistribution and use in source and binary forms, with or without | |
5 # modification, are permitted provided that the following conditions are | |
6 # met: | |
7 # | |
8 # * Redistributions of source code must retain the above copyright | |
9 # notice, this list of conditions and the following disclaimer. | |
10 # * Redistributions in binary form must reproduce the above | |
11 # copyright notice, this list of conditions and the following disclaimer | |
12 # in the documentation and/or other materials provided with the | |
13 # distribution. | |
14 # * Neither the name of Google Inc. nor the names of its | |
15 # contributors may be used to endorse or promote products derived from | |
16 # this software without specific prior written permission. | |
17 # | |
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
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. | |
29 # | |
30 | |
31 { | |
32 'includes': [ | |
33 '../build/features.gypi', | |
34 '../build/scripts/scripts.gypi', | |
35 'platform_generated.gypi', | |
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 | |
50 'targets': [ | |
51 { | |
52 'target_name': 'make_platform_generated', | |
53 'type': 'none', | |
54 'hard_dependency': 1, | |
55 'dependencies': [ | |
56 'v8_inspector/v8_inspector.gyp:inspector_debugger_script', | |
57 'v8_inspector/v8_inspector.gyp:inspector_injected_script', | |
58 'v8_inspector/v8_inspector.gyp:protocol_sources', | |
59 ], | |
60 'conditions': [ | |
61 ['generate_character_data==1', { | |
62 'dependencies': [ | |
63 'character_data_generator#host', | |
64 ], | |
65 }] | |
66 ], | |
67 'actions': [ | |
68 { | |
69 'action_name': 'FontFamilyNames', | |
70 'inputs': [ | |
71 '<@(make_names_files)', | |
72 'fonts/FontFamilyNames.in', | |
73 ], | |
74 'outputs': [ | |
75 '<(blink_platform_output_dir)/FontFamilyNames.cpp', | |
76 '<(blink_platform_output_dir)/FontFamilyNames.h', | |
77 ], | |
78 'action': [ | |
79 'python', | |
80 '../build/scripts/make_names.py', | |
81 'fonts/FontFamilyNames.in', | |
82 '--output_dir', | |
83 '<(blink_platform_output_dir)', | |
84 ], | |
85 }, | |
86 { | |
87 'action_name': 'HTTPNames', | |
88 'inputs': [ | |
89 '<@(make_names_files)', | |
90 'network/HTTPNames.in', | |
91 ], | |
92 'outputs': [ | |
93 '<(blink_platform_output_dir)/HTTPNames.cpp', | |
94 '<(blink_platform_output_dir)/HTTPNames.h', | |
95 ], | |
96 'action': [ | |
97 'python', | |
98 '../build/scripts/make_names.py', | |
99 'network/HTTPNames.in', | |
100 '--output_dir', | |
101 '<(blink_platform_output_dir)', | |
102 ], | |
103 }, | |
104 { | |
105 'action_name': 'RuntimeEnabledFeatures', | |
106 'inputs': [ | |
107 '<@(scripts_for_in_files)', | |
108 '../build/scripts/make_runtime_features.py', | |
109 'RuntimeEnabledFeatures.in', | |
110 '../build/scripts/templates/RuntimeEnabledFeatures.cpp.tmpl', | |
111 '../build/scripts/templates/RuntimeEnabledFeatures.h.tmpl', | |
112 ], | |
113 'outputs': [ | |
114 '<(blink_platform_output_dir)/RuntimeEnabledFeatures.cpp', | |
115 '<(blink_platform_output_dir)/RuntimeEnabledFeatures.h', | |
116 ], | |
117 'action': [ | |
118 'python', | |
119 '../build/scripts/make_runtime_features.py', | |
120 'RuntimeEnabledFeatures.in', | |
121 '--output_dir', | |
122 '<(blink_platform_output_dir)', | |
123 ], | |
124 }, | |
125 { | |
126 'action_name': 'ColorData', | |
127 'inputs': [ | |
128 'ColorData.gperf', | |
129 ], | |
130 'outputs': [ | |
131 '<(blink_platform_output_dir)/ColorData.cpp', | |
132 ], | |
133 'action': [ | |
134 '<(gperf_exe)', | |
135 '--key-positions=*', | |
136 '-D', '-s', '2', | |
137 '<@(_inputs)', | |
138 '--output-file=<(blink_platform_output_dir)/ColorData.cpp', | |
139 ], | |
140 }, | |
141 { | |
142 'action_name': 'CharacterPropertyData', | |
143 'inputs': [ | |
144 'text/CharacterPropertyDataGenerator.cpp', | |
145 'text/CharacterPropertyDataGenerator.h' | |
146 ], | |
147 'outputs': [ | |
148 '<(blink_platform_output_dir)/CharacterPropertyData.cpp', | |
149 ], | |
150 'conditions': [ | |
151 ['generate_character_data==1', { | |
152 'action': [ | |
153 '<(PRODUCT_DIR)/character_data_generator', | |
154 '<(blink_platform_output_dir)/CharacterPropertyData.cpp', | |
155 ], | |
156 }, { | |
157 'action': [ | |
158 'cp', | |
159 'text/CharacterPropertyData.cpp', | |
160 '<(blink_platform_output_dir)/CharacterPropertyData.cpp', | |
161 ], | |
162 }] | |
163 ], | |
164 }, | |
165 ] | |
166 }, | |
167 { | |
168 'target_name': 'character_data_generator', | |
169 'type': 'executable', | |
170 'toolsets': ['host'], | |
171 'sources': [ | |
172 'text/CharacterPropertyDataGenerator.cpp', | |
173 ], | |
174 'dependencies': [ | |
175 '<(DEPTH)/third_party/icu/icu.gyp:icuuc#host', | |
176 ], | |
177 }, | |
178 ], | |
179 } | |
OLD | NEW |