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

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

Issue 1738503002: Add libdart_precompiled_runtime target to runtime/BUILD.gn (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
« runtime/BUILD.gn ('K') | « runtime/BUILD.gn ('k') | no next file » | 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 configs += ["..:dart_config"] 48 configs += ["..:dart_config"]
49 public_configs = [":libdart_vm_config"] 49 public_configs = [":libdart_vm_config"]
50 50
51 vm_sources_list = exec_script("../../tools/gypi_to_gn.py", 51 vm_sources_list = exec_script("../../tools/gypi_to_gn.py",
52 [rebase_path("vm_sources.gypi")], 52 [rebase_path("vm_sources.gypi")],
53 "scope", 53 "scope",
54 ["vm_sources.gypi"]) 54 ["vm_sources.gypi"])
55 55
56 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) 56 set_sources_assignment_filter(["*_test.cc", "*_test.h"])
57 sources = vm_sources_list.sources 57 sources = vm_sources_list.sources
58 - ["vtune.cc", "vtune.h"]
59 include_dirs = [ 58 include_dirs = [
60 "..", 59 "..",
61 ] 60 ]
61 }
62
63
64 static_library("libdart_vm_precompiled_runtime") {
65 configs += ["..:dart_config"]
66 public_configs = [":libdart_vm_config"]
67 defines += ["DART_PRECOMPILED_RUNTIME"]
68 vm_sources_list = exec_script("../../tools/gypi_to_gn.py",
69 [rebase_path("vm_sources.gypi")],
70 "scope",
71 ["vm_sources.gypi"])
72
73 set_sources_assignment_filter(["*_test.cc", "*_test.h"])
74 sources = vm_sources_list.sources
75 include_dirs = [
76 "..",
77 ]
62 } 78 }
63 79
64 80
65 static_library("libdart_vm_nosnapshot") { 81 static_library("libdart_vm_nosnapshot") {
66 configs += ["..:dart_config"] 82 configs += ["..:dart_config"]
67 public_configs = [":libdart_vm_config"] 83 public_configs = [":libdart_vm_config"]
68 defines = [ "DART_NO_SNAPSHOT" ] 84 defines = [ "DART_NO_SNAPSHOT" ]
69 vm_sources_list = exec_script("../../tools/gypi_to_gn.py", 85 vm_sources_list = exec_script("../../tools/gypi_to_gn.py",
70 [rebase_path("vm_sources.gypi")], 86 [rebase_path("vm_sources.gypi")],
71 "scope", 87 "scope",
72 ["vm_sources.gypi"]) 88 ["vm_sources.gypi"])
73 89
74 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) 90 set_sources_assignment_filter(["*_test.cc", "*_test.h"])
75 sources = vm_sources_list.sources 91 sources = vm_sources_list.sources
76 - ["vtune.cc", "vtune.h"]
77 include_dirs = [ 92 include_dirs = [
78 "..", 93 "..",
79 ] 94 ]
80 } 95 }
81 96
82 97
83 template("generate_library_source") { 98 template("generate_library_source") {
84 assert(defined(invoker.libname), "Need libname in $target_name") 99 assert(defined(invoker.libname), "Need libname in $target_name")
85 assert(defined(invoker.filename), "Need a filename in $target_name") 100 assert(defined(invoker.filename), "Need a filename in $target_name")
86 assert(defined(invoker.kind), "Need kind in $target_name") 101 assert(defined(invoker.kind), "Need kind in $target_name")
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 "..", 187 "..",
173 ] 188 ]
174 } 189 }
175 static_library("libdart_lib") { 190 static_library("libdart_lib") {
176 configs += ["..:dart_config"] 191 configs += ["..:dart_config"]
177 sources = libsources + [ "bootstrap_nocore.cc", ] 192 sources = libsources + [ "bootstrap_nocore.cc", ]
178 include_dirs = [ 193 include_dirs = [
179 "..", 194 "..",
180 ] 195 ]
181 } 196 }
197 static_library("libdart_lib_precompiled_runtime") {
198 configs += ["..:dart_config"]
199 defines += ["DART_PRECOMPILED_RUNTIME"]
200 sources = libsources + [ "bootstrap_nocore.cc", ]
201 include_dirs = [
202 "..",
203 ]
204 }
182 } 205 }
183 206
184 207
185 generate_core_libraries("core_libraries") { 208 generate_core_libraries("core_libraries") {
186 sources = [ 209 sources = [
187 ["async", "async"], 210 ["async", "async"],
188 ["core", "core"], 211 ["core", "core"],
189 ["collection", "collection"], 212 ["collection", "collection"],
190 ["convert", "convert"], 213 ["convert", "convert"],
191 ["developer", "developer"], 214 ["developer", "developer"],
192 ["_internal", "internal"], 215 ["_internal", "internal"],
193 ["isolate", "isolate"], 216 ["isolate", "isolate"],
194 ["math", "math"], 217 ["math", "math"],
195 ["mirrors", "mirrors"], 218 ["mirrors", "mirrors"],
196 ["profiler", "profiler"], 219 ["profiler", "profiler"],
197 ["typed_data", "typed_data"], 220 ["typed_data", "typed_data"],
198 ["_vmservice", "vmservice"], 221 ["_vmservice", "vmservice"],
199 ] 222 ]
200 } 223 }
OLDNEW
« runtime/BUILD.gn ('K') | « runtime/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698