Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(441)

Unified Diff: runtime/BUILD.gn

Issue 1738503002: Add libdart_precompiled_runtime target to runtime/BUILD.gn (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
« no previous file with comments | « no previous file | runtime/vm/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698