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

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

Issue 2023703002: Beginning work on GN build (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Really add //build. Add dart_bootstrap rule. Created 4 years, 6 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') | third_party/.gitignore » ('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 25 matching lines...) Expand all
36 ["../platform/platform_sources.gypi"]) 36 ["../platform/platform_sources.gypi"])
37 platform_sources = 37 platform_sources =
38 rebase_path(platform_sources_gypi.sources, ".", "../platform") 38 rebase_path(platform_sources_gypi.sources, ".", "../platform")
39 39
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 vm_sources_list = exec_script("../../tools/gypi_to_gn.py",
47 [rebase_path("vm_sources.gypi")],
48 "scope",
49 ["vm_sources.gypi"])
50
46 static_library("libdart_vm") { 51 static_library("libdart_vm") {
47 configs += ["..:dart_config", 52 configs += ["..:dart_config",
48 "..:dart_product_config", 53 "..:dart_product_config",
49 "..:dart_precompiled_runtime_config"] 54 "..:dart_precompiled_runtime_config"]
50 public_configs = [":libdart_vm_config"] 55 public_configs = [":libdart_vm_config"]
51 56
52 vm_sources_list = exec_script("../../tools/gypi_to_gn.py",
53 [rebase_path("vm_sources.gypi")],
54 "scope",
55 ["vm_sources.gypi"])
56
57 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) 57 set_sources_assignment_filter(["*_test.cc", "*_test.h"])
58 sources = vm_sources_list.sources 58 sources = vm_sources_list.sources
59 include_dirs = [ 59 include_dirs = [
60 "..", 60 "..",
61 ] 61 ]
62 } 62 }
63 63
64 64
65 static_library("libdart_vm_nosnapshot") { 65 static_library("libdart_vm_nosnapshot") {
66 configs += ["..:dart_config", 66 configs += ["..:dart_config",
67 "..:dart_product_config", 67 "..:dart_product_config",
68 "..:dart_precompiled_runtime_config"] 68 "..:dart_precompiled_runtime_config"]
69 public_configs = [":libdart_vm_config"] 69 public_configs = [":libdart_vm_config"]
70 defines = [ "DART_NO_SNAPSHOT" ] 70 defines = [ "DART_NO_SNAPSHOT" ]
71 vm_sources_list = exec_script("../../tools/gypi_to_gn.py",
72 [rebase_path("vm_sources.gypi")],
73 "scope",
74 ["vm_sources.gypi"])
75 71
76 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) 72 set_sources_assignment_filter(["*_test.cc", "*_test.h"])
77 sources = vm_sources_list.sources 73 sources = vm_sources_list.sources
78 include_dirs = [ 74 include_dirs = [
79 "..", 75 "..",
80 ] 76 ]
81 } 77 }
82 78
83 79
84 static_library("libdart_vm_nosnapshot_with_precompiler") { 80 static_library("libdart_vm_nosnapshot_with_precompiler") {
85 configs += ["..:dart_config", 81 configs += ["..:dart_config",
86 "..:dart_product_config", 82 "..:dart_product_config",
87 "..:dart_precompiler_config"] 83 "..:dart_precompiler_config"]
88 public_configs = [":libdart_vm_config"] 84 public_configs = [":libdart_vm_config"]
89 defines = [ "DART_NO_SNAPSHOT" ] 85 defines = [ "DART_NO_SNAPSHOT" ]
90 vm_sources_list = exec_script("../../tools/gypi_to_gn.py",
91 [rebase_path("vm_sources.gypi")],
92 "scope",
93 ["vm_sources.gypi"])
94 86
95 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) 87 set_sources_assignment_filter(["*_test.cc", "*_test.h"])
96 sources = vm_sources_list.sources 88 sources = vm_sources_list.sources
97 include_dirs = [ 89 include_dirs = [
98 "..", 90 "..",
99 ] 91 ]
100 } 92 }
101 93
102 94
103 template("generate_library_source") { 95 template("generate_library_source") {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 ["developer", "developer", true, "../../sdk/lib/developer", "../lib"], 223 ["developer", "developer", true, "../../sdk/lib/developer", "../lib"],
232 ["_internal", "internal", true, "../../sdk/lib/internal", "../lib"], 224 ["_internal", "internal", true, "../../sdk/lib/internal", "../lib"],
233 ["isolate", "isolate", true, "../../sdk/lib/isolate", "../lib"], 225 ["isolate", "isolate", true, "../../sdk/lib/isolate", "../lib"],
234 ["math", "math", true, "../../sdk/lib/math", "../lib"], 226 ["math", "math", true, "../../sdk/lib/math", "../lib"],
235 ["mirrors", "mirrors", true, "../../sdk/lib/mirrors", "../lib"], 227 ["mirrors", "mirrors", true, "../../sdk/lib/mirrors", "../lib"],
236 ["profiler", "profiler", false, "../../sdk/lib/profiler"], 228 ["profiler", "profiler", false, "../../sdk/lib/profiler"],
237 ["typed_data", "typed_data", false, "../lib"], 229 ["typed_data", "typed_data", false, "../lib"],
238 ["_vmservice", "vmservice", true, "../../sdk/lib/vmservice", "../lib"], 230 ["_vmservice", "vmservice", true, "../../sdk/lib/vmservice", "../lib"],
239 ] 231 ]
240 } 232 }
OLDNEW
« no previous file with comments | « runtime/observatory/BUILD.gn ('k') | third_party/.gitignore » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698