OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # embedder specific template rules. | 5 # embedder specific template rules. |
6 import("embedder.gni") | 6 import("embedder.gni") |
7 | 7 |
8 source_set("dart_controller_no_snapshot") { | 8 source_set("dart_controller_no_snapshot") { |
9 sources = [ | 9 sources = [ |
10 "$target_gen_dir/dart_embedder_patch_resources.cc", | 10 "$target_gen_dir/dart_embedder_patch_resources.cc", |
11 "$target_gen_dir/dart_embedder_service_isolate_resources.cc", | 11 "$target_gen_dir/dart_embedder_service_isolate_resources.cc", |
12 "builtin.cc", | 12 "builtin.cc", |
13 "builtin.h", | 13 "builtin.h", |
14 "builtin_natives.cc", | 14 "builtin_natives.cc", |
15 "common.cc", | 15 "common.cc", |
16 "common.h", | 16 "common.h", |
17 "dart_controller.cc", | 17 "dart_controller.cc", |
18 "dart_controller.h", | 18 "dart_controller.h", |
19 "dart_debugger.cc", | |
20 "dart_debugger.h", | |
21 "io/internet_address.h", | 19 "io/internet_address.h", |
22 "mojo_io_natives.cc", | 20 "mojo_io_natives.cc", |
23 "mojo_io_natives.h", | 21 "mojo_io_natives.h", |
24 "mojo_natives.cc", | 22 "mojo_natives.cc", |
25 "mojo_natives.h", | 23 "mojo_natives.h", |
26 "monitor.h", | |
27 "vmservice.cc", | 24 "vmservice.cc", |
28 "vmservice.h", | 25 "vmservice.h", |
29 ] | 26 ] |
30 | 27 |
31 if (is_linux) { | 28 if (is_linux) { |
32 sources += [ "io/internet_address_linux.cc" ] | 29 sources += [ "io/internet_address_linux.cc" ] |
33 } | 30 } |
34 | 31 |
35 if (is_android) { | 32 if (is_android) { |
36 sources += [ "io/internet_address_android.cc" ] | 33 sources += [ "io/internet_address_android.cc" ] |
(...skipping 12 matching lines...) Expand all Loading... |
49 "//mojo/public/cpp/system", | 46 "//mojo/public/cpp/system", |
50 "//tonic", | 47 "//tonic", |
51 ] | 48 ] |
52 | 49 |
53 defines = [] | 50 defines = [] |
54 if (is_debug) { | 51 if (is_debug) { |
55 defines += [ "DEBUG" ] | 52 defines += [ "DEBUG" ] |
56 } else { | 53 } else { |
57 defines += [ "NDEBUG" ] | 54 defines += [ "NDEBUG" ] |
58 } | 55 } |
59 | |
60 include_dirs = [ "//dart/runtime" ] | |
61 } | 56 } |
62 | 57 |
63 dart_embedder_resources("generate_dart_embedder_patch_resources_cc") { | 58 dart_embedder_resources("generate_dart_embedder_patch_resources_cc") { |
64 inputs = [ | 59 inputs = [ |
65 "//mojo/dart/embedder/core/natives_patch.dart", | 60 "//mojo/dart/embedder/core/natives_patch.dart", |
66 "//mojo/dart/embedder/io/internet_address_patch.dart", | 61 "//mojo/dart/embedder/io/internet_address_patch.dart", |
67 "//mojo/dart/embedder/io/mojo_patch.dart", | 62 "//mojo/dart/embedder/io/mojo_patch.dart", |
68 "//mojo/dart/embedder/io/platform_patch.dart", | 63 "//mojo/dart/embedder/io/platform_patch.dart", |
69 "//mojo/dart/embedder/io/socket_patch.dart", | 64 "//mojo/dart/embedder/io/socket_patch.dart", |
70 "//mojo/dart/embedder/io/server_socket_patch.dart", | 65 "//mojo/dart/embedder/io/server_socket_patch.dart", |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 "--vm_input_bin", | 399 "--vm_input_bin", |
405 rebase_path("$target_gen_dir/vm_isolate_snapshot.bin"), | 400 rebase_path("$target_gen_dir/vm_isolate_snapshot.bin"), |
406 "--input_bin", | 401 "--input_bin", |
407 rebase_path("$target_gen_dir/isolate_snapshot.bin"), | 402 rebase_path("$target_gen_dir/isolate_snapshot.bin"), |
408 "--input_cc", | 403 "--input_cc", |
409 rebase_path("//mojo/dart/embedder/snapshot.cc.tmpl"), | 404 rebase_path("//mojo/dart/embedder/snapshot.cc.tmpl"), |
410 "--output", | 405 "--output", |
411 rebase_path(output), | 406 rebase_path(output), |
412 ] | 407 ] |
413 } | 408 } |
OLD | NEW |