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. |