mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 16:41:07 +00:00
Moves BUILD.gn config from root to runtime.
Cannot checkout a single file from svn through gclient. Review URL: https://codereview.chromium.org//712313005 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41677 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
9bc06fbf41
commit
9c352e0898
28
BUILD.gn
28
BUILD.gn
|
@ -1,28 +0,0 @@
|
||||||
# Copyright (c) 2014, 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.
|
|
||||||
|
|
||||||
|
|
||||||
config("dart_config") {
|
|
||||||
defines = []
|
|
||||||
if (is_debug) {
|
|
||||||
defines += ["DEBUG"]
|
|
||||||
} else {
|
|
||||||
defines += ["NDEBUG"]
|
|
||||||
}
|
|
||||||
|
|
||||||
cflags = [
|
|
||||||
"-Werror",
|
|
||||||
"-Wall",
|
|
||||||
"-Wextra", # Also known as -W.
|
|
||||||
"-Wno-unused-parameter",
|
|
||||||
"-Wnon-virtual-dtor",
|
|
||||||
"-Wvla",
|
|
||||||
"-Wno-conversion-null",
|
|
||||||
"-Woverloaded-virtual",
|
|
||||||
"-g3",
|
|
||||||
"-ggdb3",
|
|
||||||
"-fno-rtti",
|
|
||||||
"-fno-exceptions",
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -2,8 +2,33 @@
|
||||||
# for details. All rights reserved. Use of this source code is governed by a
|
# 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.
|
# BSD-style license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
config("dart_config") {
|
||||||
|
defines = []
|
||||||
|
if (is_debug) {
|
||||||
|
defines += ["DEBUG"]
|
||||||
|
} else {
|
||||||
|
defines += ["NDEBUG"]
|
||||||
|
}
|
||||||
|
|
||||||
|
cflags = [
|
||||||
|
"-Werror",
|
||||||
|
"-Wall",
|
||||||
|
"-Wextra", # Also known as -W.
|
||||||
|
"-Wno-unused-parameter",
|
||||||
|
"-Wnon-virtual-dtor",
|
||||||
|
"-Wvla",
|
||||||
|
"-Wno-conversion-null",
|
||||||
|
"-Woverloaded-virtual",
|
||||||
|
"-g3",
|
||||||
|
"-ggdb3",
|
||||||
|
"-fno-rtti",
|
||||||
|
"-fno-exceptions",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static_library("libdart") {
|
static_library("libdart") {
|
||||||
configs += ["..:dart_config"]
|
configs += [":dart_config"]
|
||||||
deps = [
|
deps = [
|
||||||
"vm:libdart_lib",
|
"vm:libdart_lib",
|
||||||
"vm:libdart_vm",
|
"vm:libdart_vm",
|
||||||
|
|
|
@ -88,7 +88,7 @@ builtin_impl_sources_gypi =
|
||||||
["builtin_impl_sources.gypi"])
|
["builtin_impl_sources.gypi"])
|
||||||
|
|
||||||
static_library("libdart_builtin") {
|
static_library("libdart_builtin") {
|
||||||
configs += ["../..:dart_config"]
|
configs += ["..:dart_config"]
|
||||||
public_configs = [":libdart_builtin_config"]
|
public_configs = [":libdart_builtin_config"]
|
||||||
deps = [
|
deps = [
|
||||||
":generate_builtin_cc_file",
|
":generate_builtin_cc_file",
|
||||||
|
@ -109,7 +109,7 @@ static_library("libdart_builtin") {
|
||||||
|
|
||||||
|
|
||||||
static_library("libdart_withcore") {
|
static_library("libdart_withcore") {
|
||||||
configs += ["../..:dart_config"]
|
configs += ["..:dart_config"]
|
||||||
deps = [
|
deps = [
|
||||||
"../vm:libdart_lib_withcore",
|
"../vm:libdart_lib_withcore",
|
||||||
"../vm:libdart_vm",
|
"../vm:libdart_vm",
|
||||||
|
@ -142,7 +142,7 @@ static_library("libdart_withcore") {
|
||||||
|
|
||||||
|
|
||||||
executable("gen_snapshot") {
|
executable("gen_snapshot") {
|
||||||
configs += ["../..:dart_config"]
|
configs += ["..:dart_config"]
|
||||||
deps = [
|
deps = [
|
||||||
":libdart_withcore",
|
":libdart_withcore",
|
||||||
":libdart_builtin",
|
":libdart_builtin",
|
||||||
|
@ -167,7 +167,7 @@ executable("gen_snapshot") {
|
||||||
|
|
||||||
|
|
||||||
static_library("libdart_embedder_noio") {
|
static_library("libdart_embedder_noio") {
|
||||||
configs += ["../..:dart_config",]
|
configs += ["..:dart_config",]
|
||||||
deps = [
|
deps = [
|
||||||
"..:libdart",
|
"..:libdart",
|
||||||
"../vm:libdart_platform",
|
"../vm:libdart_platform",
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
|
|
||||||
static_library("libdouble_conversion") {
|
static_library("libdouble_conversion") {
|
||||||
configs += [ "../../../..:dart_config", ]
|
configs += [ "../../..:dart_config", ]
|
||||||
sources = [
|
sources = [
|
||||||
"bignum.cc",
|
"bignum.cc",
|
||||||
"bignum.h",
|
"bignum.h",
|
||||||
|
|
2
runtime/third_party/jscre/BUILD.gn
vendored
2
runtime/third_party/jscre/BUILD.gn
vendored
|
@ -3,7 +3,7 @@
|
||||||
# BSD-style license that can be found in the LICENSE file.
|
# BSD-style license that can be found in the LICENSE file.
|
||||||
|
|
||||||
static_library("libjscre") {
|
static_library("libjscre") {
|
||||||
configs += [ "../../..:dart_config", ]
|
configs += [ "../..:dart_config", ]
|
||||||
defines = [
|
defines = [
|
||||||
"SUPPORT_UTF8",
|
"SUPPORT_UTF8",
|
||||||
"SUPPORT_UCP",
|
"SUPPORT_UCP",
|
||||||
|
|
|
@ -12,7 +12,7 @@ config("libdart_vm_config") {
|
||||||
|
|
||||||
|
|
||||||
static_library("libdart_platform") {
|
static_library("libdart_platform") {
|
||||||
configs += ["../..:dart_config"]
|
configs += ["..:dart_config"]
|
||||||
public_configs = [":libdart_vm_config"]
|
public_configs = [":libdart_vm_config"]
|
||||||
|
|
||||||
platform_headers_gypi =
|
platform_headers_gypi =
|
||||||
|
@ -39,7 +39,7 @@ static_library("libdart_platform") {
|
||||||
|
|
||||||
|
|
||||||
static_library("libdart_vm") {
|
static_library("libdart_vm") {
|
||||||
configs += ["../..:dart_config"]
|
configs += ["..:dart_config"]
|
||||||
public_configs = [":libdart_vm_config"]
|
public_configs = [":libdart_vm_config"]
|
||||||
deps = [ ":generate_service_cc_file", ]
|
deps = [ ":generate_service_cc_file", ]
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ template("generate_core_libraries") {
|
||||||
}
|
}
|
||||||
|
|
||||||
static_library("libdart_lib_withcore") {
|
static_library("libdart_lib_withcore") {
|
||||||
configs += ["../..:dart_config"]
|
configs += ["..:dart_config"]
|
||||||
deps = libdeps
|
deps = libdeps
|
||||||
sources = libsources + ["bootstrap.cc"] + liboutputs
|
sources = libsources + ["bootstrap.cc"] + liboutputs
|
||||||
include_dirs = [
|
include_dirs = [
|
||||||
|
@ -151,7 +151,7 @@ template("generate_core_libraries") {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
static_library("libdart_lib") {
|
static_library("libdart_lib") {
|
||||||
configs += ["../..:dart_config"]
|
configs += ["..:dart_config"]
|
||||||
sources = libsources + [ "bootstrap_nocore.cc", ]
|
sources = libsources + [ "bootstrap_nocore.cc", ]
|
||||||
include_dirs = [
|
include_dirs = [
|
||||||
"..",
|
"..",
|
||||||
|
|
Loading…
Reference in a new issue