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

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

Issue 2350583002: Starting work on full GN build (Closed)
Patch Set: Fixes for Fuchsia and Flutter. Cleanup. Created 4 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/observatory/BUILD.gn ('k') | tools/clang/scripts/update.py » ('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 # TODO(zra, jamesr): This check can go away after some problems with the 6 # TODO(zra, jamesr): This check can go away after some problems with the
7 # fuchsia toolchain definition are fixed. 7 # fuchsia toolchain definition are fixed.
8 if (!defined(is_fuchsia) || !is_fuchsia) { 8 if (!defined(is_fuchsia) || !is_fuchsia) {
9 libs = [ "dl" ] 9 libs = [ "dl" ]
10 10
11 if (!is_android) { 11 if (!is_android) {
12 libs += [ "pthread" ] 12 libs += [ "pthread" ]
13 13
14 if (is_linux) { 14 if (is_linux) {
15 libs += [ "rt" ] 15 libs += [ "rt" ]
16 } 16 }
17 } 17 }
18 } else { 18 } else {
19 libs = [ 19 libs = [
20 "magenta", 20 "magenta",
21 "runtime", 21 "runtime",
22 ] 22 ]
23 } 23 }
24 } 24 }
25 25
26 26
27 static_library("libdart_platform") { 27 static_library("libdart_platform") {
28 configs += ["..:dart_config", "..:dart_product_config"] 28 configs += ["..:dart_config",
29 "..:dart_maybe_product_config"]
29 public_configs = [":libdart_vm_config"] 30 public_configs = [":libdart_vm_config"]
30 31
31 platform_headers_gypi = 32 platform_headers_gypi =
32 exec_script("../../tools/gypi_to_gn.py", 33 exec_script("../../tools/gypi_to_gn.py",
33 [rebase_path("../platform/platform_headers.gypi")], 34 [rebase_path("../platform/platform_headers.gypi")],
34 "scope", 35 "scope",
35 ["../platform/platform_headers.gypi"]) 36 ["../platform/platform_headers.gypi"])
36 platform_headers = 37 platform_headers =
37 rebase_path(platform_headers_gypi.sources, ".", "../platform") 38 rebase_path(platform_headers_gypi.sources, ".", "../platform")
38 39
(...skipping 13 matching lines...) Expand all
52 53
53 54
54 vm_sources_list = exec_script("../../tools/gypi_to_gn.py", 55 vm_sources_list = exec_script("../../tools/gypi_to_gn.py",
55 [rebase_path("vm_sources.gypi")], 56 [rebase_path("vm_sources.gypi")],
56 "scope", 57 "scope",
57 ["vm_sources.gypi"]) 58 ["vm_sources.gypi"])
58 59
59 60
60 static_library("libdart_vm") { 61 static_library("libdart_vm") {
61 configs += ["..:dart_config", 62 configs += ["..:dart_config",
62 "..:dart_product_config", 63 "..:dart_maybe_product_config",
64 "..:dart_maybe_precompiled_runtime_config"]
65 public_configs = [":libdart_vm_config"]
66 set_sources_assignment_filter(["*_test.cc", "*_test.h"])
67 sources = vm_sources_list.sources
68 include_dirs = [
69 "..",
70 ]
71 }
72
73
74 static_library("libdart_vm_precompiled_runtime") {
75 configs += ["..:dart_config",
76 "..:dart_maybe_product_config",
63 "..:dart_precompiled_runtime_config"] 77 "..:dart_precompiled_runtime_config"]
64 public_configs = [":libdart_vm_config"] 78 public_configs = [":libdart_vm_config"]
65 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) 79 set_sources_assignment_filter(["*_test.cc", "*_test.h"])
66 sources = vm_sources_list.sources 80 sources = vm_sources_list.sources
67 include_dirs = [ 81 include_dirs = [
68 "..", 82 "..",
69 ] 83 ]
70 } 84 }
71 85
72 86
73 static_library("libdart_vm_nosnapshot") { 87 static_library("libdart_vm_nosnapshot") {
74 configs += ["..:dart_config", 88 configs += ["..:dart_config",
75 "..:dart_product_config", 89 "..:dart_maybe_product_config",
76 "..:dart_precompiled_runtime_config"] 90 "..:dart_maybe_precompiled_runtime_config",
91 "..:dart_no_snapshot_config",]
77 public_configs = [":libdart_vm_config"] 92 public_configs = [":libdart_vm_config"]
78 defines = [ "DART_NO_SNAPSHOT" ]
79 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) 93 set_sources_assignment_filter(["*_test.cc", "*_test.h"])
80 sources = vm_sources_list.sources 94 sources = vm_sources_list.sources
81 include_dirs = [ 95 include_dirs = [
96 "..",
97 ]
98 }
99
100
101 static_library("libdart_vm_nosnapshot_precompiled_runtime") {
102 configs += ["..:dart_config",
103 "..:dart_maybe_product_config",
104 "..:dart_precompiled_runtime_config",
105 "..:dart_no_snapshot_config",]
106 public_configs = [":libdart_vm_config"]
107 set_sources_assignment_filter(["*_test.cc", "*_test.h"])
108 sources = vm_sources_list.sources
109 include_dirs = [
82 "..", 110 "..",
83 ] 111 ]
84 } 112 }
85 113
86 114
87 static_library("libdart_vm_nosnapshot_with_precompiler") { 115 static_library("libdart_vm_nosnapshot_with_precompiler") {
88 configs += ["..:dart_config", 116 configs += ["..:dart_config",
89 "..:dart_product_config", 117 "..:dart_maybe_product_config",
90 "..:dart_precompiler_config"] 118 "..:dart_precompiler_config",
119 "..:dart_no_snapshot_config",]
91 public_configs = [":libdart_vm_config"] 120 public_configs = [":libdart_vm_config"]
92 defines = [ "DART_NO_SNAPSHOT" ]
93 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) 121 set_sources_assignment_filter(["*_test.cc", "*_test.h"])
94 sources = vm_sources_list.sources 122 sources = vm_sources_list.sources
95 include_dirs = [ 123 include_dirs = [
96 "..", 124 "..",
97 ] 125 ]
98 } 126 }
99 127
100 128
101 template("generate_library_source") { 129 template("generate_library_source") {
102 assert(defined(invoker.libname), "Need libname in $target_name") 130 assert(defined(invoker.libname), "Need libname in $target_name")
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 liboutputs += ["$target_gen_dir/${filename}_gen.cc"] 211 liboutputs += ["$target_gen_dir/${filename}_gen.cc"]
184 libdeps += [":generate_${filename}_cc_file"] 212 libdeps += [":generate_${filename}_cc_file"]
185 if (do_patch) { 213 if (do_patch) {
186 liboutputs += ["$target_gen_dir/${filename}_patch_gen.cc"] 214 liboutputs += ["$target_gen_dir/${filename}_patch_gen.cc"]
187 libdeps += [":generate_${filename}_patch_cc_file"] 215 libdeps += [":generate_${filename}_patch_cc_file"]
188 } 216 }
189 } 217 }
190 218
191 static_library("libdart_lib_nosnapshot") { 219 static_library("libdart_lib_nosnapshot") {
192 configs += ["..:dart_config", 220 configs += ["..:dart_config",
193 "..:dart_product_config", 221 "..:dart_maybe_product_config",
222 "..:dart_maybe_precompiled_runtime_config"]
223 deps = libdeps
224 sources = libsources + ["bootstrap.cc"] + liboutputs
225 include_dirs = [
226 "..",
227 ]
228 }
229 static_library("libdart_lib_nosnapshot_precompiled_runtime") {
230 configs += ["..:dart_config",
231 "..:dart_maybe_product_config",
194 "..:dart_precompiled_runtime_config"] 232 "..:dart_precompiled_runtime_config"]
195 deps = libdeps 233 deps = libdeps
196 sources = libsources + ["bootstrap.cc"] + liboutputs 234 sources = libsources + ["bootstrap.cc"] + liboutputs
197 include_dirs = [ 235 include_dirs = [
198 "..", 236 "..",
199 ] 237 ]
200 } 238 }
201 static_library("libdart_lib_nosnapshot_with_precompiler") { 239 static_library("libdart_lib_nosnapshot_with_precompiler") {
202 configs += ["..:dart_config", 240 configs += ["..:dart_config",
203 "..:dart_product_config", 241 "..:dart_maybe_product_config",
204 "..:dart_precompiler_config" ] 242 "..:dart_precompiler_config" ]
205 deps = libdeps 243 deps = libdeps
206 sources = libsources + [ "bootstrap.cc"] + liboutputs 244 sources = libsources + [ "bootstrap.cc"] + liboutputs
207 include_dirs = [ 245 include_dirs = [
208 "..", 246 "..",
209 ] 247 ]
210 } 248 }
211 static_library("libdart_lib") { 249 static_library("libdart_lib") {
212 configs += ["..:dart_config", 250 configs += ["..:dart_config",
213 "..:dart_product_config", 251 "..:dart_maybe_product_config",
252 "..:dart_maybe_precompiled_runtime_config"]
253 sources = libsources + [ "bootstrap_nocore.cc"]
254 include_dirs = [
255 "..",
256 ]
257 }
258 static_library("libdart_lib_precompiled_runtime") {
259 configs += ["..:dart_config",
260 "..:dart_maybe_product_config",
214 "..:dart_precompiled_runtime_config"] 261 "..:dart_precompiled_runtime_config"]
215 sources = libsources + [ "bootstrap_nocore.cc"] 262 sources = libsources + [ "bootstrap_nocore.cc"]
216 include_dirs = [ 263 include_dirs = [
217 "..", 264 "..",
218 ] 265 ]
219 } 266 }
220 } 267 }
221 268
222 269
223 generate_core_libraries("core_libraries") { 270 generate_core_libraries("core_libraries") {
224 sources = [ 271 sources = [
225 ["async", "async", true, "../../sdk/lib/async", "../lib"], 272 ["async", "async", true, "../../sdk/lib/async", "../lib"],
226 ["core", "core", true, "../../sdk/lib/core", "../lib"], 273 ["core", "core", true, "../../sdk/lib/core", "../lib"],
227 ["collection", "collection", true, "../../sdk/lib/collection", "../lib"], 274 ["collection", "collection", true, "../../sdk/lib/collection", "../lib"],
228 ["convert", "convert", true, "../../sdk/lib/convert", "../lib"], 275 ["convert", "convert", true, "../../sdk/lib/convert", "../lib"],
229 ["developer", "developer", true, "../../sdk/lib/developer", "../lib"], 276 ["developer", "developer", true, "../../sdk/lib/developer", "../lib"],
230 ["_internal", "internal", true, "../../sdk/lib/internal", "../lib"], 277 ["_internal", "internal", true, "../../sdk/lib/internal", "../lib"],
231 ["isolate", "isolate", true, "../../sdk/lib/isolate", "../lib"], 278 ["isolate", "isolate", true, "../../sdk/lib/isolate", "../lib"],
232 ["math", "math", true, "../../sdk/lib/math", "../lib"], 279 ["math", "math", true, "../../sdk/lib/math", "../lib"],
233 ["mirrors", "mirrors", true, "../../sdk/lib/mirrors", "../lib"], 280 ["mirrors", "mirrors", true, "../../sdk/lib/mirrors", "../lib"],
234 ["profiler", "profiler", false, "../../sdk/lib/profiler"], 281 ["profiler", "profiler", false, "../../sdk/lib/profiler"],
235 ["typed_data", "typed_data", false, "../lib"], 282 ["typed_data", "typed_data", false, "../lib"],
236 ["_vmservice", "vmservice", true, "../../sdk/lib/vmservice", "../lib"], 283 ["_vmservice", "vmservice", true, "../../sdk/lib/vmservice", "../lib"],
237 ] 284 ]
238 } 285 }
OLDNEW
« no previous file with comments | « runtime/observatory/BUILD.gn ('k') | tools/clang/scripts/update.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698