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:
Michael Goderbauer 2018-09-25 23:58:57 +00:00 committed by commit-bot@chromium.org
parent 86430cb46a
commit d1a3eaaa99
2 changed files with 10 additions and 1 deletions

View file

@ -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") {

View 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() {