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

Unified Diff: BUILD.gn

Issue 1922303002: Create libsampler as V8 sampler library. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: update test Created 4 years, 7 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 | include/v8.h » ('j') | src/v8.gyp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: BUILD.gn
diff --git a/BUILD.gn b/BUILD.gn
index 8d605416d029e20d0925672c3a5621bfcaf5d97f..63a0941bf6b1d26963ad98efb3df42609e68c89c 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -112,6 +112,11 @@ config("libplatform_config") {
include_dirs = [ "include" ]
}
+# This config should be applied to code using the libsampler.
+config("libsampler_config") {
+ include_dirs = [ "include" ]
+}
+
# This config should only be applied to code using V8 and not any V8 code
# itself.
config("external_config") {
@@ -1994,6 +1999,30 @@ source_set("v8_libplatform") {
]
}
+source_set("v8_libsampler") {
+ sources = [
+ "src/libsampler/v8-sampler.cc",
+ "src/libsampler/v8-sampler.h",
+ ]
+
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [ "//build/config/compiler:no_chromium_code" ]
+ configs += [
+ ":internal_config_base",
+ ":features",
+ ":toolchain",
+ ]
+
+ if (!is_debug || v8_optimized_debug) {
+ configs -= [ "//build/config/compiler:default_optimization" ]
+ configs += [ "//build/config/compiler:optimize_max" ]
+ }
+
+ deps = [
+ ":v8_libbase",
jochen (gone - plz use gerrit) 2016/05/11 08:54:40 should also depend on v8
lpy 2016/05/11 20:57:30 I can't find any target called v8 here, is it v8_b
+ ]
+}
+
source_set("fuzzer_support") {
visibility = [ ":*" ] # Only targets in this file can depend on this.
« no previous file with comments | « no previous file | include/v8.h » ('j') | src/v8.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698