Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: mojo/dart/embedder/BUILD.gn

Issue 816113004: Dart: Adds a content handler and a test. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 action("generate_snapshot_bin") { 5 action("generate_snapshot_bin") {
6 deps = [ 6 deps = [
7 "//dart/runtime/bin:gen_snapshot", 7 "//dart/runtime/bin:gen_snapshot",
8 "//mojo/public/interfaces/application",
8 ] 9 ]
9 inputs = [ 10 inputs = [
10 "snapshot.dart", 11 "snapshot.dart",
11 "//dart/runtime/tools/create_snapshot_bin.py", 12 "//dart/runtime/tools/create_snapshot_bin.py",
12 "//mojo/dart/embedder/builtin.dart", 13 "//mojo/dart/embedder/builtin.dart",
13 "//mojo/public/dart/bindings.dart", 14 "//mojo/public/dart/bindings.dart",
14 "//mojo/public/dart/core.dart", 15 "//mojo/public/dart/core.dart",
16 "//mojo/public/dart/src/application.dart",
15 "//mojo/public/dart/src/buffer.dart", 17 "//mojo/public/dart/src/buffer.dart",
16 "//mojo/public/dart/src/client.dart", 18 "//mojo/public/dart/src/client.dart",
17 "//mojo/public/dart/src/codec.dart", 19 "//mojo/public/dart/src/codec.dart",
18 "//mojo/public/dart/src/data_pipe.dart", 20 "//mojo/public/dart/src/data_pipe.dart",
21 "//mojo/public/dart/src/drain_data.dart",
19 "//mojo/public/dart/src/handle.dart", 22 "//mojo/public/dart/src/handle.dart",
20 "//mojo/public/dart/src/handle_watcher.dart", 23 "//mojo/public/dart/src/handle_watcher.dart",
21 "//mojo/public/dart/src/interface.dart", 24 "//mojo/public/dart/src/interface.dart",
22 "//mojo/public/dart/src/message_pipe.dart", 25 "//mojo/public/dart/src/message_pipe.dart",
26 "//mojo/public/dart/src/service_provider.dart",
23 "//mojo/public/dart/src/timer_impl.dart", 27 "//mojo/public/dart/src/timer_impl.dart",
24 "//mojo/public/dart/src/timer_queue.dart", 28 "//mojo/public/dart/src/timer_queue.dart",
25 "//mojo/public/dart/src/types.dart", 29 "//mojo/public/dart/src/types.dart",
26 ] 30 ]
27 output = "$target_gen_dir/snapshot_gen.bin" 31 output = "$target_gen_dir/snapshot_gen.bin"
28 outputs = [ 32 outputs = [
29 output, 33 output,
30 ] 34 ]
31 35
32 script = "//dart/runtime/tools/create_snapshot_bin.py" 36 script = "//dart/runtime/tools/create_snapshot_bin.py"
33 builtin_path = rebase_path("//mojo/dart/embedder/builtin.dart") 37 builtin_path = rebase_path("//mojo/dart/embedder/builtin.dart")
34 bindings_path = rebase_path("//mojo/public/dart/bindings.dart") 38 bindings_path = rebase_path("//mojo/public/dart/bindings.dart")
35 core_path = rebase_path("//mojo/public/dart/core.dart") 39 core_path = rebase_path("//mojo/public/dart/core.dart")
40 app_interface_path = "$root_gen_dir/mojo/public/interfaces/application"
41 app_path = rebase_path("${app_interface_path}/application.mojom.dart")
42 sp_path = rebase_path("${app_interface_path}/service_provider.mojom.dart")
43 shell_path = rebase_path("${app_interface_path}/shell.mojom.dart")
36 args = [ 44 args = [
37 "--executable", rebase_path("$root_out_dir/gen_snapshot"), 45 "--executable", rebase_path("$root_out_dir/gen_snapshot"),
38 "--script", rebase_path("snapshot.dart"), 46 "--script", rebase_path("snapshot.dart"),
39 "--output_bin", rebase_path(output, root_build_dir), 47 "--output_bin", rebase_path(output, root_build_dir),
40 "--target_os", os, 48 "--target_os", os,
49 "--url_mapping=dart:mojo_application,$app_path",
41 "--url_mapping=dart:mojo_bindings,$bindings_path", 50 "--url_mapping=dart:mojo_bindings,$bindings_path",
42 "--url_mapping=dart:mojo_builtin,$builtin_path", 51 "--url_mapping=dart:mojo_builtin,$builtin_path",
43 "--url_mapping=dart:mojo_core,$core_path", 52 "--url_mapping=dart:mojo_core,$core_path",
53 "--url_mapping=dart:mojo_service_provider,$sp_path",
54 "--url_mapping=dart:mojo_shell,$shell_path",
44 ] 55 ]
45 } 56 }
46 57
47 action("generate_snapshot_file") { 58 action("generate_snapshot_file") {
48 deps = [ 59 deps = [
49 ":generate_snapshot_bin", 60 ":generate_snapshot_bin",
50 ] 61 ]
51 inputs = [ 62 inputs = [
52 "//dart/runtime/tools/create_snapshot_file.py", 63 "//dart/runtime/tools/create_snapshot_file.py",
53 "snapshot.cc.tmpl", 64 "snapshot.cc.tmpl",
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 103
93 defines = [] 104 defines = []
94 if (is_debug) { 105 if (is_debug) {
95 defines += [ "DEBUG" ] 106 defines += [ "DEBUG" ]
96 } else { 107 } else {
97 defines += [ "NDEBUG" ] 108 defines += [ "NDEBUG" ]
98 } 109 }
99 110
100 include_dirs = [ "//dart/runtime" ] 111 include_dirs = [ "//dart/runtime" ]
101 } 112 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698