mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 17:59:39 +00:00
Update GN build files for Mojo roll
BUG= R=asiva@google.com Review URL: https://codereview.chromium.org//1142293007
This commit is contained in:
parent
1a324ac3e7
commit
d7450e43fb
|
@ -111,7 +111,7 @@ action("generate_version_cc_file") {
|
|||
executable("libdart_dependency_helper") {
|
||||
configs += [":dart_config"]
|
||||
deps = [
|
||||
"vm:libdart_lib_withcore",
|
||||
"vm:libdart_lib_nosnapshot",
|
||||
"vm:libdart_lib",
|
||||
"vm:libdart_vm",
|
||||
"vm:libdart_platform",
|
||||
|
|
|
@ -108,11 +108,11 @@ static_library("libdart_builtin") {
|
|||
}
|
||||
|
||||
|
||||
static_library("libdart_withcore") {
|
||||
static_library("libdart_nosnapshot") {
|
||||
configs += ["..:dart_config"]
|
||||
deps = [
|
||||
"../vm:libdart_lib_withcore",
|
||||
"../vm:libdart_vm",
|
||||
"../vm:libdart_lib_nosnapshot",
|
||||
"../vm:libdart_vm_nosnapshot",
|
||||
"../vm:libdart_platform",
|
||||
"../third_party/double-conversion/src:libdouble_conversion",
|
||||
"..:generate_version_cc_file",
|
||||
|
@ -143,7 +143,7 @@ static_library("libdart_withcore") {
|
|||
executable("gen_snapshot") {
|
||||
configs += ["..:dart_config"]
|
||||
deps = [
|
||||
":libdart_withcore",
|
||||
":libdart_nosnapshot",
|
||||
":libdart_builtin",
|
||||
]
|
||||
|
||||
|
|
12
runtime/lib/profiler_sources.gypi
Normal file
12
runtime/lib/profiler_sources.gypi
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
|
||||
# for details. All rights reserved. Use of this source code is governed by a
|
||||
# BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
# Sources list to keep vm/BUILD.gn generate_core_libraries happy.
|
||||
|
||||
{
|
||||
'sources': [
|
||||
'empty_source.dart'
|
||||
],
|
||||
}
|
||||
|
|
@ -64,6 +64,26 @@ static_library("libdart_vm") {
|
|||
}
|
||||
|
||||
|
||||
static_library("libdart_vm_nosnapshot") {
|
||||
configs += ["..:dart_config"]
|
||||
public_configs = [":libdart_vm_config"]
|
||||
deps = [ ":generate_service_cc_file", ]
|
||||
defines = [ "DART_NO_SNAPSHOT" ]
|
||||
vm_sources_list = exec_script("../../tools/gypi_to_gn.py",
|
||||
[rebase_path("vm_sources.gypi")],
|
||||
"scope",
|
||||
["vm_sources.gypi"])
|
||||
|
||||
set_sources_assignment_filter(["*_test.cc", "*_test.h"])
|
||||
sources = vm_sources_list.sources
|
||||
+ ["$target_gen_dir/service_gen.cc",]
|
||||
- ["vtune.cc", "vtune.h"]
|
||||
include_dirs = [
|
||||
"..",
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
template("generate_library_source") {
|
||||
assert(defined(invoker.libname), "Need libname in $target_name")
|
||||
assert(defined(invoker.filename), "Need a filename in $target_name")
|
||||
|
@ -115,7 +135,7 @@ template("generate_library_source") {
|
|||
#
|
||||
# The template iterates over the list, and generates generate_library_source
|
||||
# actions for each. After that, it generates targets to compile the generated
|
||||
# sources to make libdart_lib_withcore and libdart_lib.
|
||||
# sources to make libdart_lib_nosnapshot and libdart_lib.
|
||||
template("generate_core_libraries") {
|
||||
assert(defined(invoker.sources), "Need sources in $target_name")
|
||||
liboutputs = []
|
||||
|
@ -148,7 +168,7 @@ template("generate_core_libraries") {
|
|||
":generate_${filename}_patch_cc_file"]
|
||||
}
|
||||
|
||||
static_library("libdart_lib_withcore") {
|
||||
static_library("libdart_lib_nosnapshot") {
|
||||
configs += ["..:dart_config"]
|
||||
deps = libdeps
|
||||
sources = libsources + ["bootstrap.cc"] + liboutputs
|
||||
|
@ -172,7 +192,7 @@ generate_core_libraries("core_libraries") {
|
|||
["core", "core"],
|
||||
["collection", "collection"],
|
||||
["convert", "convert"],
|
||||
["debugger", "debugger"],
|
||||
["developer", "developer"],
|
||||
["_internal", "internal"],
|
||||
["isolate", "isolate"],
|
||||
["math", "math"],
|
||||
|
|
|
@ -44,6 +44,7 @@ class Bootstrap : public AllStatic {
|
|||
static const char* isolate_patch_paths_[];
|
||||
static const char* math_patch_paths_[];
|
||||
static const char* mirrors_patch_paths_[];
|
||||
static const char* profiler_patch_paths_[];
|
||||
static const char* typed_data_patch_paths_[];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue