| 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_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', | 8 'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc', |
| 9 'uri_cc_file': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.cc', | 9 'uri_cc_file': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.cc', |
| 10 'utf8_cc_file': '<(SHARED_INTERMEDIATE_DIR)/utf8_gen.cc', | 10 'utf_cc_file': '<(SHARED_INTERMEDIATE_DIR)/utf_gen.cc', |
| 11 'builtin_in_cc_file': 'builtin_in.cc', | 11 'builtin_in_cc_file': 'builtin_in.cc', |
| 12 'builtin_cc_file': '<(SHARED_INTERMEDIATE_DIR)/builtin_gen.cc', | 12 'builtin_cc_file': '<(SHARED_INTERMEDIATE_DIR)/builtin_gen.cc', |
| 13 'snapshot_in_cc_file': 'snapshot_in.cc', | 13 'snapshot_in_cc_file': 'snapshot_in.cc', |
| 14 'snapshot_bin_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.bin', | 14 'snapshot_bin_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.bin', |
| 15 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc', | 15 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc', |
| 16 'cygwin_dir': '../../third_party/cygwin', | 16 'cygwin_dir': '../../third_party/cygwin', |
| 17 }, | 17 }, |
| 18 'targets': [ | 18 'targets': [ |
| 19 { | 19 { |
| 20 'target_name': 'generate_builtin_cc_file', | 20 'target_name': 'generate_builtin_cc_file', |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 '--input_cc', '<(builtin_in_cc_file)', | 150 '--input_cc', '<(builtin_in_cc_file)', |
| 151 '--include', 'bin/builtin.h', | 151 '--include', 'bin/builtin.h', |
| 152 '--var_name', 'Builtin::uri_source_', | 152 '--var_name', 'Builtin::uri_source_', |
| 153 '<@(_sources)', | 153 '<@(_sources)', |
| 154 ], | 154 ], |
| 155 'message': 'Generating ''<(uri_cc_file)'' file.' | 155 'message': 'Generating ''<(uri_cc_file)'' file.' |
| 156 }, | 156 }, |
| 157 ] | 157 ] |
| 158 }, | 158 }, |
| 159 { | 159 { |
| 160 'target_name': 'generate_utf8_cc_file', | 160 'target_name': 'generate_utf_cc_file', |
| 161 'type': 'none', | 161 'type': 'none', |
| 162 'conditions': [ | 162 'conditions': [ |
| 163 ['OS=="win"', { | 163 ['OS=="win"', { |
| 164 'msvs_cygwin_dirs': ['<(cygwin_dir)'], | 164 'msvs_cygwin_dirs': ['<(cygwin_dir)'], |
| 165 }], | 165 }], |
| 166 ], | 166 ], |
| 167 'includes': [ | 167 'includes': [ |
| 168 'utf8_sources.gypi', | 168 'utf_sources.gypi', |
| 169 ], | 169 ], |
| 170 'actions': [ | 170 'actions': [ |
| 171 { | 171 { |
| 172 'action_name': 'generate_utf8_cc', | 172 'action_name': 'generate_utf_cc', |
| 173 'inputs': [ | 173 'inputs': [ |
| 174 '../tools/create_string_literal.py', | 174 '../tools/create_string_literal.py', |
| 175 '<(builtin_in_cc_file)', | 175 '<(builtin_in_cc_file)', |
| 176 '<@(_sources)', | 176 '<@(_sources)', |
| 177 ], | 177 ], |
| 178 'outputs': [ | 178 'outputs': [ |
| 179 '<(utf8_cc_file)', | 179 '<(utf_cc_file)', |
| 180 ], | 180 ], |
| 181 'action': [ | 181 'action': [ |
| 182 'python', | 182 'python', |
| 183 'tools/create_string_literal.py', | 183 'tools/create_string_literal.py', |
| 184 '--output', '<(utf8_cc_file)', | 184 '--output', '<(utf_cc_file)', |
| 185 '--input_cc', '<(builtin_in_cc_file)', | 185 '--input_cc', '<(builtin_in_cc_file)', |
| 186 '--include', 'bin/builtin.h', | 186 '--include', 'bin/builtin.h', |
| 187 '--var_name', 'Builtin::utf8_source_', | 187 '--var_name', 'Builtin::utf_source_', |
| 188 '<@(_sources)', | 188 '<@(_sources)', |
| 189 ], | 189 ], |
| 190 'message': 'Generating ''<(utf8_cc_file)'' file.' | 190 'message': 'Generating ''<(utf_cc_file)'' file.' |
| 191 }, | 191 }, |
| 192 ] | 192 ] |
| 193 }, | 193 }, |
| 194 { | 194 { |
| 195 'target_name': 'libdart_builtin', | 195 'target_name': 'libdart_builtin', |
| 196 'type': 'static_library', | 196 'type': 'static_library', |
| 197 'dependencies': [ | 197 'dependencies': [ |
| 198 'generate_builtin_cc_file', | 198 'generate_builtin_cc_file', |
| 199 'generate_io_cc_file', | 199 'generate_io_cc_file', |
| 200 'generate_json_cc_file', | 200 'generate_json_cc_file', |
| 201 'generate_uri_cc_file', | 201 'generate_uri_cc_file', |
| 202 'generate_utf8_cc_file', | 202 'generate_utf_cc_file', |
| 203 ], | 203 ], |
| 204 'include_dirs': [ | 204 'include_dirs': [ |
| 205 '..', | 205 '..', |
| 206 ], | 206 ], |
| 207 'sources': [ | 207 'sources': [ |
| 208 'builtin_natives.cc', | 208 'builtin_natives.cc', |
| 209 'builtin.h', | 209 'builtin.h', |
| 210 ], | 210 ], |
| 211 'includes': [ | 211 'includes': [ |
| 212 'builtin_impl_sources.gypi', | 212 'builtin_impl_sources.gypi', |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 '..', | 259 '..', |
| 260 ], | 260 ], |
| 261 'sources': [ | 261 'sources': [ |
| 262 'gen_snapshot.cc', | 262 'gen_snapshot.cc', |
| 263 'builtin.cc', | 263 'builtin.cc', |
| 264 # Include generated source files. | 264 # Include generated source files. |
| 265 '<(builtin_cc_file)', | 265 '<(builtin_cc_file)', |
| 266 '<(io_cc_file)', | 266 '<(io_cc_file)', |
| 267 '<(json_cc_file)', | 267 '<(json_cc_file)', |
| 268 '<(uri_cc_file)', | 268 '<(uri_cc_file)', |
| 269 '<(utf8_cc_file)', | 269 '<(utf_cc_file)', |
| 270 ], | 270 ], |
| 271 'conditions': [ | 271 'conditions': [ |
| 272 ['OS=="win"', { | 272 ['OS=="win"', { |
| 273 'link_settings': { | 273 'link_settings': { |
| 274 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-llibeay32MT.lib' ], | 274 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-llibeay32MT.lib' ], |
| 275 }, | 275 }, |
| 276 }]], | 276 }]], |
| 277 }, | 277 }, |
| 278 { | 278 { |
| 279 # Generate snapshot file. | 279 # Generate snapshot file. |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 '..', | 346 '..', |
| 347 ], | 347 ], |
| 348 'sources': [ | 348 'sources': [ |
| 349 'main.cc', | 349 'main.cc', |
| 350 'builtin.cc', | 350 'builtin.cc', |
| 351 # Include generated source files. | 351 # Include generated source files. |
| 352 '<(builtin_cc_file)', | 352 '<(builtin_cc_file)', |
| 353 '<(io_cc_file)', | 353 '<(io_cc_file)', |
| 354 '<(json_cc_file)', | 354 '<(json_cc_file)', |
| 355 '<(uri_cc_file)', | 355 '<(uri_cc_file)', |
| 356 '<(utf8_cc_file)', | 356 '<(utf_cc_file)', |
| 357 'snapshot_empty.cc', | 357 'snapshot_empty.cc', |
| 358 ], | 358 ], |
| 359 'conditions': [ | 359 'conditions': [ |
| 360 ['OS=="win"', { | 360 ['OS=="win"', { |
| 361 'link_settings': { | 361 'link_settings': { |
| 362 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-llibeay32MT.lib' ], | 362 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-llibeay32MT.lib' ], |
| 363 }, | 363 }, |
| 364 }]], | 364 }]], |
| 365 }, | 365 }, |
| 366 { | 366 { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 ], | 424 ], |
| 425 'defines': [ | 425 'defines': [ |
| 426 'DART_SHARED_LIB', | 426 'DART_SHARED_LIB', |
| 427 ], | 427 ], |
| 428 }, | 428 }, |
| 429 ], | 429 ], |
| 430 }], | 430 }], |
| 431 ], | 431 ], |
| 432 } | 432 } |
| 433 | 433 |
| OLD | NEW |