mirror of
https://github.com/dart-lang/sdk
synced 2024-09-06 00:59:09 +00:00
Add flag to control symbol visibility of libdart
Change-Id: Ib2acfaa0f7813d6aa5e9886c664e863c3f8ebf00 Reviewed-on: https://dart-review.googlesource.com/76567 Reviewed-by: Zach Anderson <zra@google.com> Commit-Queue: Zach Anderson <zra@google.com>
This commit is contained in:
parent
86430cb46a
commit
d1a3eaaa99
|
@ -184,6 +184,12 @@ config("dart_config") {
|
|||
}
|
||||
}
|
||||
|
||||
config("dart_shared_lib") {
|
||||
if (dart_lib_export_symbols) {
|
||||
defines = [ "DART_SHARED_LIB" ]
|
||||
}
|
||||
}
|
||||
|
||||
source_set("dart_api") {
|
||||
public_configs = [ ":dart_public_config" ]
|
||||
sources = [
|
||||
|
@ -204,6 +210,7 @@ library_for_all_configs("libdart") {
|
|||
"vm:libdart_lib",
|
||||
"vm:libdart_vm",
|
||||
]
|
||||
extra_configs = [ ":dart_shared_lib" ]
|
||||
include_dirs = [ "." ]
|
||||
public_configs = [ ":dart_public_config" ]
|
||||
sources = [
|
||||
|
@ -215,7 +222,6 @@ library_for_all_configs("libdart") {
|
|||
"vm/native_api_impl.cc",
|
||||
"vm/version.h",
|
||||
]
|
||||
defines = [ "DART_SHARED_LIB" ]
|
||||
}
|
||||
|
||||
action("generate_version_cc_file") {
|
||||
|
|
|
@ -84,6 +84,9 @@ declare_args() {
|
|||
# Whether the VM includes the kernel service in all modes (debug, release,
|
||||
# product).
|
||||
exclude_kernel_service = false
|
||||
|
||||
# Whether libdart should export the symbols of the Dart API.
|
||||
dart_lib_export_symbols = true
|
||||
}
|
||||
|
||||
declare_args() {
|
||||
|
|
Loading…
Reference in a new issue