Chromium Code Reviews| Index: runtime/BUILD.gn |
| diff --git a/runtime/BUILD.gn b/runtime/BUILD.gn |
| index 6932f9326b82a24d548d327609896a910a580d22..e804b9c4d836c66c10486cf106b3b56ed60633b5 100644 |
| --- a/runtime/BUILD.gn |
| +++ b/runtime/BUILD.gn |
| @@ -50,10 +50,6 @@ config("dart_config") { |
| defines += ["NDEBUG"] |
| } |
| - if (is_ios || is_mac) { |
|
rmacnak
2016/02/25 00:42:46
We can't remove this until there is another way to
|
| - defines += ["DART_PRECOMPILER"] |
| - } |
| - |
| cflags = [ |
| "-Werror", |
| "-Wall", |
| @@ -119,6 +115,38 @@ static_library("libdart") { |
| } |
| +static_library("libdart_precompiled_runtime") { |
| + configs += [":dart_config"] |
| + deps = [ |
| + "vm:libdart_lib_precompiled_runtime", |
| + "vm:libdart_vm_precompiled_runtime", |
| + "third_party/double-conversion/src:libdouble_conversion", |
| + ":generate_version_cc_file", |
| + ] |
| + include_dirs = [ |
| + ".", |
| + ] |
| + public_configs = [":dart_public_config"] |
| + sources = [ |
| + "include/dart_api.h", |
| + "include/dart_mirrors_api.h", |
| + "include/dart_native_api.h", |
| + "include/dart_tools_api.h", |
| + "vm/dart_api_impl.cc", |
| + "vm/debugger_api_impl.cc", |
| + "vm/mirrors_api_impl.cc", |
| + "vm/native_api_impl.cc", |
| + "vm/version.h", |
| + "$target_gen_dir/version.cc", |
| + ] |
| + defines = [ |
| + # Using DART_SHARED_LIB to export the Dart API entries. |
| + "DART_SHARED_LIB", |
| + "DART_PRECOMPILED_RUNTIME", |
| + ] |
| +} |
| + |
| + |
| action("generate_version_cc_file") { |
| deps = [ |
| ":libdart_dependency_helper", |