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

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

Issue 950063002: Add patch file support to Dart embedder (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | 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 "builtin.cc", 7 "builtin.cc",
8 "builtin.h", 8 "builtin.h",
9 "builtin_natives.cc", 9 "builtin_natives.cc",
10 "dart_controller.cc", 10 "dart_controller.cc",
11 "dart_controller.h", 11 "dart_controller.h",
12 "isolate_data.h", 12 "isolate_data.h",
13 "mojo_natives.cc", 13 "mojo_natives.cc",
14 "mojo_natives.h", 14 "mojo_natives.h",
15 "$target_gen_dir/dart_mojo_core_patch.cc",
15 ] 16 ]
16 17
17 deps = [ 18 deps = [
18 "//base", 19 "//base",
19 "//base:i18n", 20 "//base:i18n",
20 "//crypto", 21 "//crypto",
21 "//dart/runtime:libdart", 22 "//dart/runtime:libdart",
22 "//dart/runtime/bin:libdart_embedder_noio", 23 "//dart/runtime/bin:libdart_embedder_noio",
23 "//mojo/public/c/system", 24 "//mojo/public/c/system",
24 "//mojo/public/cpp/system", 25 "//mojo/public/cpp/system",
26 "//mojo/dart/embedder:generate_dart_mojo_core_patch_cc",
zra 2015/02/23 23:21:02 I believe this can just be ":generate_dart_mojo_c
Cutch 2015/02/24 15:36:48 Done.
25 ] 27 ]
26 28
27 defines = [] 29 defines = []
28 if (is_debug) { 30 if (is_debug) {
29 defines += [ "DEBUG" ] 31 defines += [ "DEBUG" ]
30 } else { 32 } else {
31 defines += [ "NDEBUG" ] 33 defines += [ "NDEBUG" ]
32 } 34 }
33 35
34 include_dirs = [ "//dart/runtime" ] 36 include_dirs = [ "//dart/runtime" ]
35 } 37 }
38
39 action("generate_dart_mojo_core_patch_cc") {
40 inputs = [
41 "//mojo/dart/embedder/core/buffer_patch.dart",
42 "//mojo/dart/embedder/core/data_pipe_patch.dart",
43 "//mojo/dart/embedder/core/handle_patch.dart",
44 "//mojo/dart/embedder/core/handle_watcher_patch.dart",
45 "//mojo/dart/embedder/core/message_pipe_patch.dart",
46 "//dart/runtime/tools/gen_library_src_paths.py",
47 "//dart/runtime/bin/builtin_in.cc",
48 ]
49 output = "$target_gen_dir/dart_mojo_core_patch.cc"
50 outputs = [
51 output,
52 ]
53 buffer_patch_path = rebase_path("//mojo/dart/embedder/core/buffer_patch.dart")
54 data_pipe_patch_path =
55 rebase_path("//mojo/dart/embedder/core/data_pipe_patch.dart")
56 handle_patch_path = rebase_path("//mojo/dart/embedder/core/handle_patch.dart")
57 handle_watcher_patch_path =
58 rebase_path("//mojo/dart/embedder/core/handle_watcher_patch.dart")
59 message_pipe_patch_path =
60 rebase_path("//mojo/dart/embedder/core/message_pipe_patch.dart")
61 builtin_in_cc_path = rebase_path("//dart/runtime/bin/builtin_in.cc")
62 builtin_h_path = rebase_path("//mojo/dart/embedder/builtin.h")
63 script = "//dart/runtime/tools/gen_library_src_paths.py"
64 args = [
65 "--output",
66 rebase_path(output),
67 "--input_cc",
68 builtin_in_cc_path,
69 "--include",
70 builtin_h_path,
71 "--var_name",
72 "mojo::dart::Builtin::mojo_core_patch_paths_",
73 "--library_name",
74 "dart:mojo_core",
75 buffer_patch_path,
76 data_pipe_patch_path,
77 handle_patch_path,
78 handle_watcher_patch_path,
79 message_pipe_patch_path,
80 ]
81 }
OLDNEW
« no previous file with comments | « no previous file | mojo/dart/embedder/builtin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698