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

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

Issue 1027603002: Dart: Removes all but native calls and the handle watcher from the snapshot. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Hoist application interface dependence Created 5 years, 9 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
« no previous file with comments | « mojo/dart/apptest/apptest/apptest.dart ('k') | mojo/dart/embedder/builtin.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 source_set("dart_controller_no_snapshot") { 5 source_set("dart_controller_no_snapshot") {
6 sources = [ 6 sources = [
7 "$target_gen_dir/dart_embedder_patch_resources.cc",
7 "builtin.cc", 8 "builtin.cc",
8 "builtin.h", 9 "builtin.h",
9 "builtin_natives.cc", 10 "builtin_natives.cc",
10 "dart_controller.cc", 11 "dart_controller.cc",
11 "dart_controller.h", 12 "dart_controller.h",
12 "isolate_data.h", 13 "isolate_data.h",
13 "mojo_natives.cc", 14 "mojo_natives.cc",
14 "mojo_natives.h", 15 "mojo_natives.h",
15 "$target_gen_dir/dart_embedder_patch_resources.cc",
16 ] 16 ]
17 17
18 deps = [ 18 deps = [
19 ":generate_dart_embedder_patch_resources_cc", 19 ":generate_dart_embedder_patch_resources_cc",
20 "//base", 20 "//base",
21 "//base:i18n", 21 "//base:i18n",
22 "//crypto", 22 "//crypto",
23 "//dart/runtime:libdart", 23 "//dart/runtime:libdart",
24 "//dart/runtime/bin:libdart_embedder_noio", 24 "//dart/runtime/bin:libdart_embedder_noio",
25 "//mojo/public/c/system", 25 "//mojo/public/c/system",
26 "//mojo/public/cpp/system", 26 "//mojo/public/cpp/system",
27 ] 27 ]
28 28
29 defines = [] 29 defines = []
30 if (is_debug) { 30 if (is_debug) {
31 defines += [ "DEBUG" ] 31 defines += [ "DEBUG" ]
32 } else { 32 } else {
33 defines += [ "NDEBUG" ] 33 defines += [ "NDEBUG" ]
34 } 34 }
35 35
36 include_dirs = [ "//dart/runtime" ] 36 include_dirs = [ "//dart/runtime" ]
37 } 37 }
38 38
39 action("generate_dart_embedder_patch_resources_cc") { 39 action("generate_dart_embedder_patch_resources_cc") {
40 inputs = [ 40 inputs = [
41 "//dart/runtime/tools/create_resources.py", 41 "//dart/runtime/tools/create_resources.py",
42 "//mojo/dart/embedder/core/buffer_patch.dart", 42 "//mojo/dart/embedder/core/natives_patch.dart",
43 "//mojo/dart/embedder/core/data_pipe_patch.dart",
44 "//mojo/dart/embedder/core/handle_patch.dart",
45 "//mojo/dart/embedder/core/handle_watcher_patch.dart",
46 "//mojo/dart/embedder/core/message_pipe_patch.dart",
47 ] 43 ]
48 output = "$target_gen_dir/dart_embedder_patch_resources.cc" 44 output = "$target_gen_dir/dart_embedder_patch_resources.cc"
49 outputs = [ 45 outputs = [
50 output, 46 output,
51 ] 47 ]
52 48
53 # Patch files 49 # Patch files
54 buffer_patch_path = rebase_path("//mojo/dart/embedder/core/buffer_patch.dart") 50 natives_patch_path =
55 data_pipe_patch_path = 51 rebase_path("//mojo/dart/embedder/core/natives_patch.dart")
56 rebase_path("//mojo/dart/embedder/core/data_pipe_patch.dart")
57 handle_patch_path = rebase_path("//mojo/dart/embedder/core/handle_patch.dart")
58 handle_watcher_patch_path =
59 rebase_path("//mojo/dart/embedder/core/handle_watcher_patch.dart")
60 message_pipe_patch_path =
61 rebase_path("//mojo/dart/embedder/core/message_pipe_patch.dart")
62 52
63 root_path = rebase_path("//mojo/dart/embedder/") 53 root_path = rebase_path("//mojo/dart/embedder/")
64 script = "//dart/runtime/tools/create_resources.py" 54 script = "//dart/runtime/tools/create_resources.py"
65 55
66 args = [ 56 args = [
67 "--output", 57 "--output",
68 rebase_path(output), 58 rebase_path(output),
69 "--outer_namespace", 59 "--outer_namespace",
70 "mojo", 60 "mojo",
71 "--inner_namespace", 61 "--inner_namespace",
72 "dart", 62 "dart",
73 "--table_name", 63 "--table_name",
74 "dart_embedder_patch", 64 "dart_embedder_patch",
75 "--root_prefix", 65 "--root_prefix",
76 root_path, 66 root_path,
77 buffer_patch_path, 67 natives_patch_path,
78 data_pipe_patch_path,
79 handle_patch_path,
80 handle_watcher_patch_path,
81 message_pipe_patch_path,
82 ] 68 ]
83 } 69 }
OLDNEW
« no previous file with comments | « mojo/dart/apptest/apptest/apptest.dart ('k') | mojo/dart/embedder/builtin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698