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

Side by Side Diff: runtime/vm/BUILD.gn

Issue 1396603002: Properly split dart:_vmservice across sdk and runtime (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 | « runtime/lib/vmservice_sources.gypi ('k') | runtime/vm/bootstrap.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 (c) 2014, the Dart project authors. Please see the AUTHORS file 1 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a 2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE file. 3 # BSD-style license that can be found in the LICENSE file.
4 4
5 config("libdart_vm_config") { 5 config("libdart_vm_config") {
6 libs = [ 6 libs = [
7 "dl", 7 "dl",
8 ] 8 ]
9 9
10 if (!is_android) { 10 if (!is_android) {
(...skipping 29 matching lines...) Expand all
40 sources = platform_headers + platform_sources 40 sources = platform_headers + platform_sources
41 include_dirs = [ 41 include_dirs = [
42 "..", 42 "..",
43 ] 43 ]
44 } 44 }
45 45
46 46
47 static_library("libdart_vm") { 47 static_library("libdart_vm") {
48 configs += ["..:dart_config"] 48 configs += ["..:dart_config"]
49 public_configs = [":libdart_vm_config"] 49 public_configs = [":libdart_vm_config"]
50 deps = [ ":generate_service_cc_file", ]
51 50
52 vm_sources_list = exec_script("../../tools/gypi_to_gn.py", 51 vm_sources_list = exec_script("../../tools/gypi_to_gn.py",
53 [rebase_path("vm_sources.gypi")], 52 [rebase_path("vm_sources.gypi")],
54 "scope", 53 "scope",
55 ["vm_sources.gypi"]) 54 ["vm_sources.gypi"])
56 55
57 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) 56 set_sources_assignment_filter(["*_test.cc", "*_test.h"])
58 sources = vm_sources_list.sources 57 sources = vm_sources_list.sources
59 + ["$target_gen_dir/service_gen.cc",]
60 - ["vtune.cc", "vtune.h"] 58 - ["vtune.cc", "vtune.h"]
61 include_dirs = [ 59 include_dirs = [
62 "..", 60 "..",
63 ] 61 ]
64 } 62 }
65 63
66 64
67 static_library("libdart_vm_nosnapshot") { 65 static_library("libdart_vm_nosnapshot") {
68 configs += ["..:dart_config"] 66 configs += ["..:dart_config"]
69 public_configs = [":libdart_vm_config"] 67 public_configs = [":libdart_vm_config"]
70 deps = [ ":generate_service_cc_file", ]
71 defines = [ "DART_NO_SNAPSHOT" ] 68 defines = [ "DART_NO_SNAPSHOT" ]
72 vm_sources_list = exec_script("../../tools/gypi_to_gn.py", 69 vm_sources_list = exec_script("../../tools/gypi_to_gn.py",
73 [rebase_path("vm_sources.gypi")], 70 [rebase_path("vm_sources.gypi")],
74 "scope", 71 "scope",
75 ["vm_sources.gypi"]) 72 ["vm_sources.gypi"])
76 73
77 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) 74 set_sources_assignment_filter(["*_test.cc", "*_test.h"])
78 sources = vm_sources_list.sources 75 sources = vm_sources_list.sources
79 + ["$target_gen_dir/service_gen.cc",]
80 - ["vtune.cc", "vtune.h"] 76 - ["vtune.cc", "vtune.h"]
81 include_dirs = [ 77 include_dirs = [
82 "..", 78 "..",
83 ] 79 ]
84 } 80 }
85 81
86 82
87 template("generate_library_source") { 83 template("generate_library_source") {
88 assert(defined(invoker.libname), "Need libname in $target_name") 84 assert(defined(invoker.libname), "Need libname in $target_name")
89 assert(defined(invoker.filename), "Need a filename in $target_name") 85 assert(defined(invoker.filename), "Need a filename in $target_name")
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 ["async", "async"], 187 ["async", "async"],
192 ["core", "core"], 188 ["core", "core"],
193 ["collection", "collection"], 189 ["collection", "collection"],
194 ["convert", "convert"], 190 ["convert", "convert"],
195 ["developer", "developer"], 191 ["developer", "developer"],
196 ["_internal", "internal"], 192 ["_internal", "internal"],
197 ["isolate", "isolate"], 193 ["isolate", "isolate"],
198 ["math", "math"], 194 ["math", "math"],
199 ["mirrors", "mirrors"], 195 ["mirrors", "mirrors"],
200 ["typed_data", "typed_data"], 196 ["typed_data", "typed_data"],
197 ["_vmservice", "vmservice"],
201 ] 198 ]
202 } 199 }
203
204
205 action("generate_service_cc_file") {
206 visibility = [ ":*" ] # Only targets in this file can see this.
207 script = "../tools/create_resources.py"
208 sources = [
209 "service/client.dart",
210 "service/constants.dart",
211 "service/message.dart",
212 "service/message_router.dart",
213 "service/running_isolate.dart",
214 "service/running_isolates.dart",
215 "service/vmservice.dart",
216 ]
217
218 output = "$target_gen_dir/service_gen.cc"
219 outputs = [ output, ]
220
221 args = [
222 "--output", rebase_path(output, root_build_dir),
223 "--outer_namespace", "dart",
224 "--table_name", "service",
225 "--root_prefix", rebase_path("service/", root_build_dir)] +
226 rebase_path(sources, root_build_dir)
227 }
OLDNEW
« no previous file with comments | « runtime/lib/vmservice_sources.gypi ('k') | runtime/vm/bootstrap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698