OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import("//sky/engine/bindings2/bindings.gni") | 5 import("//sky/engine/bindings2/bindings.gni") |
6 import("//sky/engine/core/core.gni") | 6 import("//sky/engine/core/core.gni") |
7 | 7 |
8 source_set("bindings2") { | 8 source_set("bindings2") { |
9 sources = [ | 9 sources = [ |
10 "builtin.cc", | 10 "builtin.cc", |
11 "builtin.h", | 11 "builtin.h", |
12 "builtin_natives.cc", | 12 "builtin_natives.cc", |
13 "builtin_natives.h", | 13 "builtin_natives.h", |
14 "builtin_sky.cc", | 14 "builtin_sky.cc", |
15 "builtin_sky.h", | 15 "builtin_sky.h", |
16 "dart_callback.cc", | 16 "dart_callback.cc", |
17 "dart_callback.h", | 17 "dart_callback.h", |
18 "dart_event_listener.cc", | 18 "dart_event_listener.cc", |
19 "dart_event_listener.h", | 19 "dart_event_listener.h", |
20 "exception_messages.cc", | 20 "exception_messages.cc", |
21 "exception_messages.h", | 21 "exception_messages.h", |
22 "exception_state.cc", | 22 "exception_state.cc", |
23 "exception_state.h", | 23 "exception_state.h", |
24 "exception_state_placeholder.cc", | 24 "exception_state_placeholder.cc", |
25 "exception_state_placeholder.h", | 25 "exception_state_placeholder.h", |
| 26 "mojo_natives.cc", |
| 27 "mojo_natives.h", |
26 "nullable.h", | 28 "nullable.h", |
27 "scheduled_action.cc", | 29 "scheduled_action.cc", |
28 "scheduled_action.h", | 30 "scheduled_action.h", |
29 ] | 31 ] |
30 deps = [ | 32 deps = [ |
31 "//base", | 33 "//base", |
32 "//dart/runtime/bin:libdart_withcore", | 34 "//dart/runtime/bin:libdart_withcore", |
| 35 "//mojo/public/c/system", |
| 36 "//mojo/public/cpp/system", |
33 "//sky/engine/platform:platform", | 37 "//sky/engine/platform:platform", |
34 "//sky/engine/tonic", | 38 "//sky/engine/tonic", |
35 "//sky/engine/wtf", | 39 "//sky/engine/wtf", |
36 ":generated_bindings", | 40 ":generated_bindings", |
37 ":snapshot_cc", | 41 ":snapshot_cc", |
38 ] | 42 ] |
39 include_dirs = [ | 43 include_dirs = [ |
40 "..", | 44 "..", |
41 "$root_build_dir", | 45 "$root_build_dir", |
42 ] | 46 ] |
43 } | 47 } |
44 | 48 |
45 action("generate_snapshot_bin") { | 49 action("generate_snapshot_bin") { |
46 deps = [ | 50 deps = [ |
47 "//dart/runtime/bin:gen_snapshot($host_toolchain)", | 51 "//dart/runtime/bin:gen_snapshot($host_toolchain)", |
48 ":generate_sky_core_dart", | 52 ":generate_sky_core_dart", |
49 ] | 53 ] |
50 inputs = [ | 54 inputs = [ |
51 "//dart/runtime/tools/create_snapshot_bin.py", | 55 "//dart/runtime/tools/create_snapshot_bin.py", |
52 "//sky/engine/bindings2/builtin.dart", | 56 "//sky/engine/bindings2/builtin.dart", |
| 57 "//mojo/public/dart/bindings.dart", |
| 58 "//mojo/public/dart/core.dart", |
| 59 "//mojo/public/dart/src/application.dart", |
| 60 "//mojo/public/dart/src/buffer.dart", |
| 61 "//mojo/public/dart/src/codec.dart", |
| 62 "//mojo/public/dart/src/data_pipe.dart", |
| 63 "//mojo/public/dart/src/drain_data.dart", |
| 64 "//mojo/public/dart/src/event_stream.dart", |
| 65 "//mojo/public/dart/src/handle.dart", |
| 66 "//mojo/public/dart/src/handle_watcher.dart", |
| 67 "//mojo/public/dart/src/message.dart", |
| 68 "//mojo/public/dart/src/message_pipe.dart", |
| 69 "//mojo/public/dart/src/proxy.dart", |
| 70 "//mojo/public/dart/src/service_provider.dart", |
| 71 "//mojo/public/dart/src/struct.dart", |
| 72 "//mojo/public/dart/src/stub.dart", |
| 73 "//mojo/public/dart/src/timer_queue.dart", |
| 74 "//mojo/public/dart/src/types.dart", |
53 "snapshot.dart", | 75 "snapshot.dart", |
54 ] | 76 ] |
55 output = "$target_gen_dir/snapshot_gen.bin" | 77 output = "$target_gen_dir/snapshot_gen.bin" |
56 outputs = [ | 78 outputs = [ |
57 output, | 79 output, |
58 ] | 80 ] |
59 | 81 |
60 builtin_path = rebase_path("//sky/engine/bindings2/builtin.dart") | 82 builtin_path = rebase_path("//sky/engine/bindings2/builtin.dart") |
61 sky_core_path = rebase_path("$bindings_output_dir/sky_core.dart") | 83 sky_core_path = rebase_path("$bindings_output_dir/sky_core.dart") |
| 84 mojo_bindings_path = rebase_path("//mojo/public/dart/bindings.dart") |
| 85 mojo_core_path = rebase_path("//mojo/public/dart/core.dart") |
62 | 86 |
63 gen_snapshot_dir = | 87 gen_snapshot_dir = |
64 get_label_info("//dart/runtime/bin:gen_snapshot($host_toolchain)", | 88 get_label_info("//dart/runtime/bin:gen_snapshot($host_toolchain)", |
65 "root_out_dir") | 89 "root_out_dir") |
66 script = "//dart/runtime/tools/create_snapshot_bin.py" | 90 script = "//dart/runtime/tools/create_snapshot_bin.py" |
67 | 91 |
68 args = [ | 92 args = [ |
69 "--executable", | 93 "--executable", |
70 rebase_path("$gen_snapshot_dir/gen_snapshot"), | 94 rebase_path("$gen_snapshot_dir/gen_snapshot"), |
71 "--package_root", | 95 "--package_root", |
72 rebase_path("$root_gen_dir"), | 96 rebase_path("$root_gen_dir"), |
73 "--script", | 97 "--script", |
74 rebase_path("snapshot.dart"), | 98 rebase_path("snapshot.dart"), |
75 "--output_bin", | 99 "--output_bin", |
76 rebase_path(output, root_build_dir), | 100 rebase_path(output, root_build_dir), |
77 "--target_os", | 101 "--target_os", |
78 os, | 102 os, |
79 "--url_mapping=dart:sky,$sky_core_path", | 103 "--url_mapping=dart:sky,$sky_core_path", |
| 104 "--url_mapping=dart:mojo_bindings,$mojo_bindings_path", |
| 105 "--url_mapping=dart:mojo_core,$mojo_core_path", |
80 "--url_mapping=dart:sky_builtin,$builtin_path", | 106 "--url_mapping=dart:sky_builtin,$builtin_path", |
81 ] | 107 ] |
82 } | 108 } |
83 | 109 |
84 action("generate_snapshot_file") { | 110 action("generate_snapshot_file") { |
85 deps = [ | 111 deps = [ |
86 ":generate_snapshot_bin", | 112 ":generate_snapshot_bin", |
87 ] | 113 ] |
88 inputs = [ | 114 inputs = [ |
89 "//dart/runtime/tools/create_snapshot_file.py", | 115 "//dart/runtime/tools/create_snapshot_file.py", |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 ] | 390 ] |
365 | 391 |
366 include_dirs = [ | 392 include_dirs = [ |
367 "..", | 393 "..", |
368 "$root_build_dir", | 394 "$root_build_dir", |
369 ] | 395 ] |
370 | 396 |
371 sources = get_target_outputs(":compile_idls") | 397 sources = get_target_outputs(":compile_idls") |
372 sources += get_target_outputs(":generate_dart_globals") | 398 sources += get_target_outputs(":generate_dart_globals") |
373 } | 399 } |
OLD | NEW |