OLD | NEW |
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 Loading... |
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 }, |
37 | 49 |
38 'targets': [ | 50 'targets': [ |
39 { | 51 { |
40 'target_name': 'make_platform_generated', | 52 'target_name': 'make_platform_generated', |
41 'type': 'none', | 53 'type': 'none', |
42 'hard_dependency': 1, | 54 'hard_dependency': 1, |
| 55 'conditions': [ |
| 56 ['generate_character_data==1', { |
| 57 'dependencies': [ |
| 58 'character_data_generator#host', |
| 59 ], |
| 60 }] |
| 61 ], |
43 'actions': [ | 62 'actions': [ |
44 { | 63 { |
45 'action_name': 'FontFamilyNames', | 64 'action_name': 'FontFamilyNames', |
46 'inputs': [ | 65 'inputs': [ |
47 '<@(make_names_files)', | 66 '<@(make_names_files)', |
48 'fonts/FontFamilyNames.in', | 67 'fonts/FontFamilyNames.in', |
49 ], | 68 ], |
50 'outputs': [ | 69 'outputs': [ |
51 '<(blink_platform_output_dir)/FontFamilyNames.cpp', | 70 '<(blink_platform_output_dir)/FontFamilyNames.cpp', |
52 '<(blink_platform_output_dir)/FontFamilyNames.h', | 71 '<(blink_platform_output_dir)/FontFamilyNames.h', |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 '<(blink_platform_output_dir)/ColorData.cpp', | 126 '<(blink_platform_output_dir)/ColorData.cpp', |
108 ], | 127 ], |
109 'action': [ | 128 'action': [ |
110 '<(gperf_exe)', | 129 '<(gperf_exe)', |
111 '--key-positions=*', | 130 '--key-positions=*', |
112 '-D', '-s', '2', | 131 '-D', '-s', '2', |
113 '<@(_inputs)', | 132 '<@(_inputs)', |
114 '--output-file=<(blink_platform_output_dir)/ColorData.cpp', | 133 '--output-file=<(blink_platform_output_dir)/ColorData.cpp', |
115 ], | 134 ], |
116 }, | 135 }, |
| 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 }, |
117 ] | 159 ] |
118 }, | 160 }, |
| 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 }, |
119 ], | 172 ], |
120 } | 173 } |
OLD | NEW |