| OLD | NEW |
| 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
| 3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'io_in_cc_file': 'io_in.cc', | |
| 8 'io_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_gen.cc', | 7 'io_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_gen.cc', |
| 8 'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc', |
| 9 'uri_cc_file': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.cc', |
| 10 'utf8_cc_file': '<(SHARED_INTERMEDIATE_DIR)/utf8_gen.cc', |
| 9 'builtin_in_cc_file': 'builtin_in.cc', | 11 'builtin_in_cc_file': 'builtin_in.cc', |
| 10 'builtin_cc_file': '<(SHARED_INTERMEDIATE_DIR)/builtin_gen.cc', | 12 'builtin_cc_file': '<(SHARED_INTERMEDIATE_DIR)/builtin_gen.cc', |
| 11 'snapshot_in_cc_file': 'snapshot_in.cc', | 13 'snapshot_in_cc_file': 'snapshot_in.cc', |
| 12 'snapshot_bin_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.bin', | 14 'snapshot_bin_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.bin', |
| 13 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc', | 15 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc', |
| 14 'cygwin_dir': '../../third_party/cygwin', | 16 'cygwin_dir': '../../third_party/cygwin', |
| 15 }, | 17 }, |
| 16 'targets': [ | 18 'targets': [ |
| 17 { | 19 { |
| 18 'target_name': 'generate_builtin_cc_file', | 20 'target_name': 'generate_builtin_cc_file', |
| (...skipping 15 matching lines...) Expand all Loading... |
| 34 '<@(_sources)', | 36 '<@(_sources)', |
| 35 ], | 37 ], |
| 36 'outputs': [ | 38 'outputs': [ |
| 37 '<(builtin_cc_file)', | 39 '<(builtin_cc_file)', |
| 38 ], | 40 ], |
| 39 'action': [ | 41 'action': [ |
| 40 'python', | 42 'python', |
| 41 'tools/create_string_literal.py', | 43 'tools/create_string_literal.py', |
| 42 '--output', '<(builtin_cc_file)', | 44 '--output', '<(builtin_cc_file)', |
| 43 '--input_cc', '<(builtin_in_cc_file)', | 45 '--input_cc', '<(builtin_in_cc_file)', |
| 46 '--include', 'bin/builtin.h', |
| 47 '--var_name', 'Builtin::builtin_source_', |
| 44 '<@(_sources)', | 48 '<@(_sources)', |
| 45 ], | 49 ], |
| 46 'message': 'Generating ''<(builtin_cc_file)'' file.' | 50 'message': 'Generating ''<(builtin_cc_file)'' file.' |
| 47 }, | 51 }, |
| 48 ] | 52 ] |
| 49 }, | 53 }, |
| 50 { | 54 { |
| 51 'target_name': 'generate_io_cc_file', | 55 'target_name': 'generate_io_cc_file', |
| 52 'type': 'none', | 56 'type': 'none', |
| 53 'conditions': [ | 57 'conditions': [ |
| 54 ['OS=="win"', { | 58 ['OS=="win"', { |
| 55 'msvs_cygwin_dirs': ['<(cygwin_dir)'], | 59 'msvs_cygwin_dirs': ['<(cygwin_dir)'], |
| 56 }], | 60 }], |
| 57 ], | 61 ], |
| 58 'includes': [ | 62 'includes': [ |
| 59 'io_sources.gypi', | 63 'io_sources.gypi', |
| 60 ], | 64 ], |
| 61 'actions': [ | 65 'actions': [ |
| 62 { | 66 { |
| 63 'action_name': 'generate_io_cc', | 67 'action_name': 'generate_io_cc', |
| 64 'inputs': [ | 68 'inputs': [ |
| 65 '../tools/create_string_literal.py', | 69 '../tools/create_string_literal.py', |
| 66 '<(io_in_cc_file)', | 70 '<(builtin_in_cc_file)', |
| 67 '<@(_sources)', | 71 '<@(_sources)', |
| 68 ], | 72 ], |
| 69 'outputs': [ | 73 'outputs': [ |
| 70 '<(io_cc_file)', | 74 '<(io_cc_file)', |
| 71 ], | 75 ], |
| 72 'action': [ | 76 'action': [ |
| 73 'python', | 77 'python', |
| 74 'tools/create_string_literal.py', | 78 'tools/create_string_literal.py', |
| 75 '--output', '<(io_cc_file)', | 79 '--output', '<(io_cc_file)', |
| 76 '--input_cc', '<(io_in_cc_file)', | 80 '--input_cc', '<(builtin_in_cc_file)', |
| 81 '--include', 'bin/builtin.h', |
| 82 '--var_name', 'Builtin::io_source_', |
| 77 '<@(_sources)', | 83 '<@(_sources)', |
| 78 ], | 84 ], |
| 79 'message': 'Generating ''<(io_cc_file)'' file.' | 85 'message': 'Generating ''<(io_cc_file)'' file.' |
| 80 }, | 86 }, |
| 81 ] | 87 ] |
| 82 }, | 88 }, |
| 83 { | 89 { |
| 90 'target_name': 'generate_json_cc_file', |
| 91 'type': 'none', |
| 92 'conditions': [ |
| 93 ['OS=="win"', { |
| 94 'msvs_cygwin_dirs': ['<(cygwin_dir)'], |
| 95 }], |
| 96 ], |
| 97 'includes': [ |
| 98 'json_sources.gypi', |
| 99 ], |
| 100 'actions': [ |
| 101 { |
| 102 'action_name': 'generate_json_cc', |
| 103 'inputs': [ |
| 104 '../tools/create_string_literal.py', |
| 105 '<(builtin_in_cc_file)', |
| 106 '<@(_sources)', |
| 107 ], |
| 108 'outputs': [ |
| 109 '<(json_cc_file)', |
| 110 ], |
| 111 'action': [ |
| 112 'python', |
| 113 'tools/create_string_literal.py', |
| 114 '--output', '<(json_cc_file)', |
| 115 '--input_cc', '<(builtin_in_cc_file)', |
| 116 '--include', 'bin/builtin.h', |
| 117 '--var_name', 'Builtin::json_source_', |
| 118 '<@(_sources)', |
| 119 ], |
| 120 'message': 'Generating ''<(json_cc_file)'' file.' |
| 121 }, |
| 122 ] |
| 123 }, |
| 124 { |
| 125 'target_name': 'generate_uri_cc_file', |
| 126 'type': 'none', |
| 127 'conditions': [ |
| 128 ['OS=="win"', { |
| 129 'msvs_cygwin_dirs': ['<(cygwin_dir)'], |
| 130 }], |
| 131 ], |
| 132 'includes': [ |
| 133 'uri_sources.gypi', |
| 134 ], |
| 135 'actions': [ |
| 136 { |
| 137 'action_name': 'generate_uri_cc', |
| 138 'inputs': [ |
| 139 '../tools/create_string_literal.py', |
| 140 '<(builtin_in_cc_file)', |
| 141 '<@(_sources)', |
| 142 ], |
| 143 'outputs': [ |
| 144 '<(uri_cc_file)', |
| 145 ], |
| 146 'action': [ |
| 147 'python', |
| 148 'tools/create_string_literal.py', |
| 149 '--output', '<(uri_cc_file)', |
| 150 '--input_cc', '<(builtin_in_cc_file)', |
| 151 '--include', 'bin/builtin.h', |
| 152 '--var_name', 'Builtin::uri_source_', |
| 153 '<@(_sources)', |
| 154 ], |
| 155 'message': 'Generating ''<(uri_cc_file)'' file.' |
| 156 }, |
| 157 ] |
| 158 }, |
| 159 { |
| 160 'target_name': 'generate_utf8_cc_file', |
| 161 'type': 'none', |
| 162 'conditions': [ |
| 163 ['OS=="win"', { |
| 164 'msvs_cygwin_dirs': ['<(cygwin_dir)'], |
| 165 }], |
| 166 ], |
| 167 'includes': [ |
| 168 'utf8_sources.gypi', |
| 169 ], |
| 170 'actions': [ |
| 171 { |
| 172 'action_name': 'generate_utf8_cc', |
| 173 'inputs': [ |
| 174 '../tools/create_string_literal.py', |
| 175 '<(builtin_in_cc_file)', |
| 176 '<@(_sources)', |
| 177 ], |
| 178 'outputs': [ |
| 179 '<(utf8_cc_file)', |
| 180 ], |
| 181 'action': [ |
| 182 'python', |
| 183 'tools/create_string_literal.py', |
| 184 '--output', '<(utf8_cc_file)', |
| 185 '--input_cc', '<(builtin_in_cc_file)', |
| 186 '--include', 'bin/builtin.h', |
| 187 '--var_name', 'Builtin::utf8_source_', |
| 188 '<@(_sources)', |
| 189 ], |
| 190 'message': 'Generating ''<(utf8_cc_file)'' file.' |
| 191 }, |
| 192 ] |
| 193 }, |
| 194 { |
| 84 'target_name': 'libdart_builtin', | 195 'target_name': 'libdart_builtin', |
| 85 'type': 'static_library', | 196 'type': 'static_library', |
| 86 'dependencies': [ | 197 'dependencies': [ |
| 87 'generate_builtin_cc_file', | 198 'generate_builtin_cc_file', |
| 88 'generate_io_cc_file', | 199 'generate_io_cc_file', |
| 200 'generate_json_cc_file', |
| 201 'generate_uri_cc_file', |
| 202 'generate_utf8_cc_file', |
| 89 ], | 203 ], |
| 90 'include_dirs': [ | 204 'include_dirs': [ |
| 91 '..', | 205 '..', |
| 92 ], | 206 ], |
| 93 'sources': [ | 207 'sources': [ |
| 94 'builtin_natives.cc', | 208 'builtin_natives.cc', |
| 95 'builtin.h', | 209 'builtin.h', |
| 96 ], | 210 ], |
| 97 'includes': [ | 211 'includes': [ |
| 98 'builtin_impl_sources.gypi', | 212 'builtin_impl_sources.gypi', |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 ], | 250 ], |
| 137 'include_dirs': [ | 251 'include_dirs': [ |
| 138 '..', | 252 '..', |
| 139 ], | 253 ], |
| 140 'sources': [ | 254 'sources': [ |
| 141 'gen_snapshot.cc', | 255 'gen_snapshot.cc', |
| 142 'builtin.cc', | 256 'builtin.cc', |
| 143 # Include generated source files. | 257 # Include generated source files. |
| 144 '<(builtin_cc_file)', | 258 '<(builtin_cc_file)', |
| 145 '<(io_cc_file)', | 259 '<(io_cc_file)', |
| 260 '<(json_cc_file)', |
| 261 '<(uri_cc_file)', |
| 262 '<(utf8_cc_file)', |
| 146 ], | 263 ], |
| 147 'conditions': [ | 264 'conditions': [ |
| 148 ['OS=="win"', { | 265 ['OS=="win"', { |
| 149 'link_settings': { | 266 'link_settings': { |
| 150 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 267 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
| 151 }, | 268 }, |
| 152 }]], | 269 }]], |
| 153 }, | 270 }, |
| 154 { | 271 { |
| 155 # Generate snapshot file. | 272 # Generate snapshot file. |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 ], | 337 ], |
| 221 'include_dirs': [ | 338 'include_dirs': [ |
| 222 '..', | 339 '..', |
| 223 ], | 340 ], |
| 224 'sources': [ | 341 'sources': [ |
| 225 'main.cc', | 342 'main.cc', |
| 226 'builtin.cc', | 343 'builtin.cc', |
| 227 # Include generated source files. | 344 # Include generated source files. |
| 228 '<(builtin_cc_file)', | 345 '<(builtin_cc_file)', |
| 229 '<(io_cc_file)', | 346 '<(io_cc_file)', |
| 347 '<(json_cc_file)', |
| 348 '<(uri_cc_file)', |
| 349 '<(utf8_cc_file)', |
| 230 'snapshot_empty.cc', | 350 'snapshot_empty.cc', |
| 231 ], | 351 ], |
| 232 'conditions': [ | 352 'conditions': [ |
| 233 ['OS=="win"', { | 353 ['OS=="win"', { |
| 234 'link_settings': { | 354 'link_settings': { |
| 235 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 355 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
| 236 }, | 356 }, |
| 237 }]], | 357 }]], |
| 238 }, | 358 }, |
| 239 { | 359 { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 'conditions': [ | 395 'conditions': [ |
| 276 ['OS=="win"', { | 396 ['OS=="win"', { |
| 277 'link_settings': { | 397 'link_settings': { |
| 278 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 398 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
| 279 }, | 399 }, |
| 280 }], | 400 }], |
| 281 ], | 401 ], |
| 282 }, | 402 }, |
| 283 ], | 403 ], |
| 284 } | 404 } |
| OLD | NEW |