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

Unified Diff: BUILD.gn

Issue 345903004: Split out libplatform into a separate libary (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 | build/features.gypi » ('j') | samples/process.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: BUILD.gn
diff --git a/BUILD.gn b/BUILD.gn
index 18e5ef21ff4c8d99f329ea20ae184a43bf874ad3..02919edf67fe06dcb8bfba5cc960acbbe1dce274 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -14,7 +14,6 @@ v8_enable_verify_heap = false
v8_interpreted_regexp = false
v8_object_print = false
v8_postmortem_support = false
-v8_use_default_platform = true
v8_use_snapshot = true
v8_use_external_startup_data = false
v8_enable_extra_checks = is_debug
@@ -90,11 +89,6 @@ config("features") {
"V8_I18N_SUPPORT",
]
}
- if (v8_use_default_platform == true) {
- defines += [
- "V8_USE_DEFAULT_PLATFORM",
- ]
- }
if (v8_compress_startup_data == "bz2") {
defines += [
"COMPRESS_STARTUP_DATA_BZ2",
@@ -633,13 +627,6 @@ source_set("v8_base") {
"src/jsregexp-inl.h",
"src/jsregexp.cc",
"src/jsregexp.h",
- # TODO(jochen): move libplatform/ files to their own target.
- "src/libplatform/default-platform.cc",
- "src/libplatform/default-platform.h",
- "src/libplatform/task-queue.cc",
- "src/libplatform/task-queue.h",
- "src/libplatform/worker-thread.cc",
- "src/libplatform/worker-thread.h",
"src/list-inl.h",
"src/list.h",
"src/lithium-allocator-inl.h",
@@ -1077,6 +1064,26 @@ source_set("v8_libbase") {
# TODO(jochen): Add support for qnx, freebsd, openbsd, netbsd, and solaris.
}
+source_set("v8_libplatform") {
tfarina 2014/07/03 18:14:39 Does this needs visibility? visibility = ":*" #
jochen (gone - plz use gerrit) 2014/07/03 19:35:20 yes, external targets can depend on this
+ sources = [
+ "include/libplatform/libplatform.h",
+ "src/libplatform/default-platform.cc",
+ "src/libplatform/default-platform.h",
+ "src/libplatform/task-queue.cc",
+ "src/libplatform/task-queue.h",
+ "src/libplatform/worker-thread.cc",
+ "src/libplatform/worker-thread.h",
+ ]
+
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [ "//build/config/compiler:no_chromium_code" ]
+ configs += [ ":internal_config", ":features", ":toolchain" ]
tfarina 2014/07/03 18:14:39 does it need also these configs?
jochen (gone - plz use gerrit) 2014/07/03 19:35:20 i've modified the configs a bit in a follow-up cl,
+
+ deps = [
+ ":v8_libbase",
+ ]
+}
+
###############################################################################
# Executables
#
@@ -1095,6 +1102,7 @@ if (current_toolchain == host_toolchain) {
deps = [
":v8_base",
+ ":v8_libplatform",
":v8_nosnapshot",
]
« no previous file with comments | « no previous file | build/features.gypi » ('j') | samples/process.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698