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

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: 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/libsampler/hashmap.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: BUILD.gn
diff --git a/BUILD.gn b/BUILD.gn
index b08fbb8efa0a22c805283e4240d2742fbd6cabe8..9ecd59dc8c82265c90fb7193d87aa117798d4b3c 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -115,6 +115,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") {
@@ -1338,8 +1343,6 @@ v8_source_set("v8_base") {
"src/profiler/profile-generator-inl.h",
"src/profiler/profile-generator.cc",
"src/profiler/profile-generator.h",
- "src/profiler/sampler.cc",
- "src/profiler/sampler.h",
"src/profiler/sampling-heap-profiler.cc",
"src/profiler/sampling-heap-profiler.h",
"src/profiler/strings-storage.cc",
@@ -1823,6 +1826,7 @@ v8_source_set("v8_base") {
defines = []
deps = [
":v8_libbase",
+ ":v8_libsampler",
]
if (is_win) {
@@ -1977,6 +1981,23 @@ v8_source_set("v8_libplatform") {
]
}
+v8_source_set("v8_libsampler") {
+ sources = [
+ "src/libsampler/hashmap.h",
+ "src/libsampler/utils.h",
+ "src/libsampler/v8-sampler.cc",
+ "src/libsampler/v8-sampler.h",
+ ]
+
+ configs = [ ":internal_config_base" ]
+
+ public_configs = [ ":libsampler_config" ]
+
+ deps = [
+ ":v8_libbase",
+ ]
+}
+
v8_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/libsampler/hashmap.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698