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

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

Issue 1903583002: GN Build fixes for Flutter + gen_snapshot fix (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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
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) {
11 libs += [ "pthread" ] 11 libs += [ "pthread" ]
12 12
13 if (is_linux) { 13 if (is_linux) {
14 libs += [ "rt" ] 14 libs += [ "rt" ]
15 } 15 }
16 } 16 }
17 } 17 }
18 18
19 19
20 static_library("libdart_platform") { 20 static_library("libdart_platform") {
21 configs += ["..:dart_config"] 21 configs += ["..:dart_config", "..:dart_product_config"]
22 public_configs = [":libdart_vm_config"] 22 public_configs = [":libdart_vm_config"]
23 23
24 platform_headers_gypi = 24 platform_headers_gypi =
25 exec_script("../../tools/gypi_to_gn.py", 25 exec_script("../../tools/gypi_to_gn.py",
26 [rebase_path("../platform/platform_headers.gypi")], 26 [rebase_path("../platform/platform_headers.gypi")],
27 "scope", 27 "scope",
28 ["../platform/platform_headers.gypi"]) 28 ["../platform/platform_headers.gypi"])
29 platform_headers = 29 platform_headers =
30 rebase_path(platform_headers_gypi.sources, ".", "../platform") 30 rebase_path(platform_headers_gypi.sources, ".", "../platform")
31 31
32 platform_sources_gypi = 32 platform_sources_gypi =
33 exec_script("../../tools/gypi_to_gn.py", 33 exec_script("../../tools/gypi_to_gn.py",
34 [rebase_path("../platform/platform_sources.gypi")], 34 [rebase_path("../platform/platform_sources.gypi")],
35 "scope", 35 "scope",
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
47 static_library("libdart_vm") { 46 static_library("libdart_vm") {
48 configs += ["..:dart_config"] 47 configs += ["..:dart_config", "..:dart_product_config", "..:dart_precompiled_r untime_config"]
49 public_configs = [":libdart_vm_config"] 48 public_configs = [":libdart_vm_config"]
50 49
51 vm_sources_list = exec_script("../../tools/gypi_to_gn.py", 50 vm_sources_list = exec_script("../../tools/gypi_to_gn.py",
52 [rebase_path("vm_sources.gypi")], 51 [rebase_path("vm_sources.gypi")],
53 "scope", 52 "scope",
54 ["vm_sources.gypi"]) 53 ["vm_sources.gypi"])
55 54
56 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) 55 set_sources_assignment_filter(["*_test.cc", "*_test.h"])
57 sources = vm_sources_list.sources 56 sources = vm_sources_list.sources
58 include_dirs = [ 57 include_dirs = [
59 "..", 58 "..",
60 ] 59 ]
61 } 60 }
62 61
63 62
64 static_library("libdart_vm_precompiled_runtime") { 63 static_library("libdart_vm_nosnapshot") {
65 configs += ["..:dart_config_no_precompiler"] 64 configs += ["..:dart_config", "..:dart_product_config", "..:dart_precompiled_r untime_config"]
66 public_configs = [":libdart_vm_config"] 65 public_configs = [":libdart_vm_config"]
67 defines = ["DART_PRECOMPILED_RUNTIME"] 66 defines = [ "DART_NO_SNAPSHOT" ]
68 vm_sources_list = exec_script("../../tools/gypi_to_gn.py", 67 vm_sources_list = exec_script("../../tools/gypi_to_gn.py",
69 [rebase_path("vm_sources.gypi")], 68 [rebase_path("vm_sources.gypi")],
70 "scope", 69 "scope",
71 ["vm_sources.gypi"]) 70 ["vm_sources.gypi"])
72 71
73 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) 72 set_sources_assignment_filter(["*_test.cc", "*_test.h"])
74 sources = vm_sources_list.sources 73 sources = vm_sources_list.sources
75 include_dirs = [ 74 include_dirs = [
76 "..", 75 "..",
77 ] 76 ]
78 } 77 }
79 78
80 79
81 static_library("libdart_vm_nosnapshot") { 80 static_library("libdart_vm_nosnapshot_with_precompiler") {
82 configs += ["..:dart_config"] 81 configs += ["..:dart_config", "..:dart_product_config", "..:dart_precompiler_c onfig"]
83 public_configs = [":libdart_vm_config"] 82 public_configs = [":libdart_vm_config"]
84 defines = [ "DART_NO_SNAPSHOT" ] 83 defines = [ "DART_NO_SNAPSHOT" ]
85 vm_sources_list = exec_script("../../tools/gypi_to_gn.py", 84 vm_sources_list = exec_script("../../tools/gypi_to_gn.py",
86 [rebase_path("vm_sources.gypi")], 85 [rebase_path("vm_sources.gypi")],
87 "scope", 86 "scope",
88 ["vm_sources.gypi"]) 87 ["vm_sources.gypi"])
89 88
90 set_sources_assignment_filter(["*_test.cc", "*_test.h"]) 89 set_sources_assignment_filter(["*_test.cc", "*_test.h"])
91 sources = vm_sources_list.sources 90 sources = vm_sources_list.sources
92 include_dirs = [ 91 include_dirs = [
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 libsources += rebase_path(lib_sources_gypi.sources, ".", "../lib") 177 libsources += rebase_path(lib_sources_gypi.sources, ".", "../lib")
179 liboutputs += ["$target_gen_dir/${filename}_gen.cc"] 178 liboutputs += ["$target_gen_dir/${filename}_gen.cc"]
180 libdeps += [":generate_${filename}_cc_file"] 179 libdeps += [":generate_${filename}_cc_file"]
181 if (do_patch) { 180 if (do_patch) {
182 liboutputs += ["$target_gen_dir/${filename}_patch_gen.cc"] 181 liboutputs += ["$target_gen_dir/${filename}_patch_gen.cc"]
183 libdeps += [":generate_${filename}_patch_cc_file"] 182 libdeps += [":generate_${filename}_patch_cc_file"]
184 } 183 }
185 } 184 }
186 185
187 static_library("libdart_lib_nosnapshot") { 186 static_library("libdart_lib_nosnapshot") {
188 configs += ["..:dart_config"] 187 configs += ["..:dart_config", "..:dart_product_config", "..:dart_precompiled _runtime_config"]
189 deps = libdeps 188 deps = libdeps
190 sources = libsources + ["bootstrap.cc"] + liboutputs 189 sources = libsources + ["bootstrap.cc"] + liboutputs
191 include_dirs = [ 190 include_dirs = [
192 "..", 191 "..",
193 ] 192 ]
194 } 193 }
195 static_library("libdart_lib") { 194 static_library("libdart_lib_nosnapshot_with_precompiler") {
196 configs += ["..:dart_config"] 195 configs += ["..:dart_config", "..:dart_product_config", "..:dart_precompiler _config" ]
197 sources = libsources + [ "bootstrap_nocore.cc", ] 196 deps = libdeps
197 sources = libsources + [ "bootstrap.cc"] + liboutputs
198 include_dirs = [ 198 include_dirs = [
199 "..", 199 "..",
200 ] 200 ]
201 } 201 }
202 static_library("libdart_lib_precompiled_runtime") { 202 static_library("libdart_lib") {
203 configs += ["..:dart_config_no_precompiler"] 203 configs += ["..:dart_config", "..:dart_product_config", "..:dart_precompiled _runtime_config"]
204 defines = ["DART_PRECOMPILED_RUNTIME"] 204 sources = libsources + [ "bootstrap_nocore.cc"]
205 sources = libsources + [ "bootstrap_nocore.cc", ]
206 include_dirs = [ 205 include_dirs = [
207 "..", 206 "..",
208 ] 207 ]
209 } 208 }
210 } 209 }
211 210
212 211
213 generate_core_libraries("core_libraries") { 212 generate_core_libraries("core_libraries") {
214 sources = [ 213 sources = [
215 ["async", "async", true, "../../sdk/lib/async", "../lib"], 214 ["async", "async", true, "../../sdk/lib/async", "../lib"],
216 ["core", "core", true, "../../sdk/lib/core", "../lib"], 215 ["core", "core", true, "../../sdk/lib/core", "../lib"],
217 ["collection", "collection", true, "../../sdk/lib/collection", "../lib"], 216 ["collection", "collection", true, "../../sdk/lib/collection", "../lib"],
218 ["convert", "convert", true, "../../sdk/lib/convert", "../lib"], 217 ["convert", "convert", true, "../../sdk/lib/convert", "../lib"],
219 ["developer", "developer", true, "../../sdk/lib/developer", "../lib"], 218 ["developer", "developer", true, "../../sdk/lib/developer", "../lib"],
220 ["_internal", "internal", true, "../../sdk/lib/internal", "../lib"], 219 ["_internal", "internal", true, "../../sdk/lib/internal", "../lib"],
221 ["isolate", "isolate", true, "../../sdk/lib/isolate", "../lib"], 220 ["isolate", "isolate", true, "../../sdk/lib/isolate", "../lib"],
222 ["math", "math", true, "../../sdk/lib/math", "../lib"], 221 ["math", "math", true, "../../sdk/lib/math", "../lib"],
223 ["mirrors", "mirrors", true, "../../sdk/lib/mirrors", "../lib"], 222 ["mirrors", "mirrors", true, "../../sdk/lib/mirrors", "../lib"],
224 ["profiler", "profiler", false, "../../sdk/lib/profiler"], 223 ["profiler", "profiler", false, "../../sdk/lib/profiler"],
225 ["typed_data", "typed_data", false, "../lib"], 224 ["typed_data", "typed_data", false, "../lib"],
226 ["_vmservice", "vmservice", true, "../../sdk/lib/vmservice", "../lib"], 225 ["_vmservice", "vmservice", true, "../../sdk/lib/vmservice", "../lib"],
227 ] 226 ]
228 } 227 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698