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", | |
abarth-chromium
2015/02/12 03:29:33
We should put this code somewhere that we can shar
| |
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/application.dart", | |
58 "//mojo/public/dart/bindings.dart", | |
59 "//mojo/public/dart/core.dart", | |
60 "//mojo/public/dart/src/application.dart", | |
61 "//mojo/public/dart/src/buffer.dart", | |
62 "//mojo/public/dart/src/codec.dart", | |
63 "//mojo/public/dart/src/data_pipe.dart", | |
64 "//mojo/public/dart/src/drain_data.dart", | |
65 "//mojo/public/dart/src/event_stream.dart", | |
66 "//mojo/public/dart/src/handle.dart", | |
67 "//mojo/public/dart/src/handle_watcher.dart", | |
68 "//mojo/public/dart/src/message.dart", | |
69 "//mojo/public/dart/src/message_pipe.dart", | |
70 "//mojo/public/dart/src/proxy.dart", | |
71 "//mojo/public/dart/src/service_provider.dart", | |
72 "//mojo/public/dart/src/struct.dart", | |
73 "//mojo/public/dart/src/stub.dart", | |
74 "//mojo/public/dart/src/timer_queue.dart", | |
75 "//mojo/public/dart/src/types.dart", | |
abarth-chromium
2015/02/12 03:29:33
Is there some target we can depend on so we don't
| |
53 "snapshot.dart", | 76 "snapshot.dart", |
54 ] | 77 ] |
55 output = "$target_gen_dir/snapshot_gen.bin" | 78 output = "$target_gen_dir/snapshot_gen.bin" |
56 outputs = [ | 79 outputs = [ |
57 output, | 80 output, |
58 ] | 81 ] |
59 | 82 |
60 builtin_path = rebase_path("//sky/engine/bindings2/builtin.dart") | 83 builtin_path = rebase_path("//sky/engine/bindings2/builtin.dart") |
61 sky_core_path = rebase_path("$bindings_output_dir/sky_core.dart") | 84 sky_core_path = rebase_path("$bindings_output_dir/sky_core.dart") |
85 mojo_application_path = rebase_path("//mojo/public/dart/application.dart") | |
86 mojo_bindings_path = rebase_path("//mojo/public/dart/bindings.dart") | |
87 mojo_core_path = rebase_path("//mojo/public/dart/core.dart") | |
62 | 88 |
63 gen_snapshot_dir = | 89 gen_snapshot_dir = |
64 get_label_info("//dart/runtime/bin:gen_snapshot($host_toolchain)", | 90 get_label_info("//dart/runtime/bin:gen_snapshot($host_toolchain)", |
65 "root_out_dir") | 91 "root_out_dir") |
66 script = "//dart/runtime/tools/create_snapshot_bin.py" | 92 script = "//dart/runtime/tools/create_snapshot_bin.py" |
67 | 93 |
68 args = [ | 94 args = [ |
69 "--executable", | 95 "--executable", |
70 rebase_path("$gen_snapshot_dir/gen_snapshot"), | 96 rebase_path("$gen_snapshot_dir/gen_snapshot"), |
71 "--package_root", | 97 "--package_root", |
72 rebase_path("$root_gen_dir"), | 98 rebase_path("$root_gen_dir"), |
73 "--script", | 99 "--script", |
74 rebase_path("snapshot.dart"), | 100 rebase_path("snapshot.dart"), |
75 "--output_bin", | 101 "--output_bin", |
76 rebase_path(output, root_build_dir), | 102 rebase_path(output, root_build_dir), |
77 "--target_os", | 103 "--target_os", |
78 os, | 104 os, |
79 "--url_mapping=dart:sky,$sky_core_path", | 105 "--url_mapping=dart:sky,$sky_core_path", |
106 "--url_mapping=dart:mojo_application,$mojo_application_path", | |
107 "--url_mapping=dart:mojo_bindings,$mojo_bindings_path", | |
108 "--url_mapping=dart:mojo_core,$mojo_core_path", | |
80 "--url_mapping=dart:sky_builtin,$builtin_path", | 109 "--url_mapping=dart:sky_builtin,$builtin_path", |
81 ] | 110 ] |
82 } | 111 } |
83 | 112 |
84 action("generate_snapshot_file") { | 113 action("generate_snapshot_file") { |
85 deps = [ | 114 deps = [ |
86 ":generate_snapshot_bin", | 115 ":generate_snapshot_bin", |
87 ] | 116 ] |
88 inputs = [ | 117 inputs = [ |
89 "//dart/runtime/tools/create_snapshot_file.py", | 118 "//dart/runtime/tools/create_snapshot_file.py", |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
364 ] | 393 ] |
365 | 394 |
366 include_dirs = [ | 395 include_dirs = [ |
367 "..", | 396 "..", |
368 "$root_build_dir", | 397 "$root_build_dir", |
369 ] | 398 ] |
370 | 399 |
371 sources = get_target_outputs(":compile_idls") | 400 sources = get_target_outputs(":compile_idls") |
372 sources += get_target_outputs(":generate_dart_globals") | 401 sources += get_target_outputs(":generate_dart_globals") |
373 } | 402 } |
OLD | NEW |