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

Side by Side Diff: BUILD.gn

Issue 2372983003: Turn libplatform into a component (Closed)
Patch Set: updates Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | include/libplatform/DEPS » ('j') | src/v8.gyp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/arm.gni") 6 import("//build/config/arm.gni")
7 import("//build/config/dcheck_always_on.gni") 7 import("//build/config/dcheck_always_on.gni")
8 import("//build/config/mips.gni") 8 import("//build/config/mips.gni")
9 import("//build/config/sanitizers/sanitizers.gni") 9 import("//build/config/sanitizers/sanitizers.gni")
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 config("internal_config_base") { 122 config("internal_config_base") {
123 visibility = [ ":*" ] # Only targets in this file can depend on this. 123 visibility = [ ":*" ] # Only targets in this file can depend on this.
124 124
125 include_dirs = [ "." ] 125 include_dirs = [ "." ]
126 } 126 }
127 127
128 # This config should be applied to code using the libplatform. 128 # This config should be applied to code using the libplatform.
129 config("libplatform_config") { 129 config("libplatform_config") {
130 include_dirs = [ "include" ] 130 include_dirs = [ "include" ]
131 if (is_component_build) {
132 defines = [ "USING_V8_PLATFORM_SHARED" ]
133 }
131 } 134 }
132 135
133 # This config should be applied to code using the libsampler. 136 # This config should be applied to code using the libsampler.
134 config("libsampler_config") { 137 config("libsampler_config") {
135 include_dirs = [ "include" ] 138 include_dirs = [ "include" ]
136 } 139 }
137 140
138 # This config should only be applied to code using V8 and not any V8 code 141 # This config should only be applied to code using V8 and not any V8 code
139 # itself. 142 # itself.
140 config("external_config") { 143 config("external_config") {
(...skipping 2132 matching lines...) Expand 10 before | Expand all | Expand 10 after
2273 "dbghelp.lib", 2276 "dbghelp.lib",
2274 "shlwapi.lib", 2277 "shlwapi.lib",
2275 "winmm.lib", 2278 "winmm.lib",
2276 "ws2_32.lib", 2279 "ws2_32.lib",
2277 ] 2280 ]
2278 } 2281 }
2279 2282
2280 # TODO(jochen): Add support for qnx, freebsd, openbsd, netbsd, and solaris. 2283 # TODO(jochen): Add support for qnx, freebsd, openbsd, netbsd, and solaris.
2281 } 2284 }
2282 2285
2283 v8_source_set("v8_libplatform") { 2286 v8_component("v8_libplatform") {
2284 sources = [ 2287 sources = [
2285 "//base/trace_event/common/trace_event_common.h", 2288 "//base/trace_event/common/trace_event_common.h",
2289 "include/libplatform/libplatform-export.h",
2286 "include/libplatform/libplatform.h", 2290 "include/libplatform/libplatform.h",
2287 "include/libplatform/v8-tracing.h", 2291 "include/libplatform/v8-tracing.h",
2288 "src/libplatform/default-platform.cc", 2292 "src/libplatform/default-platform.cc",
2289 "src/libplatform/default-platform.h", 2293 "src/libplatform/default-platform.h",
2290 "src/libplatform/task-queue.cc", 2294 "src/libplatform/task-queue.cc",
2291 "src/libplatform/task-queue.h", 2295 "src/libplatform/task-queue.h",
2292 "src/libplatform/tracing/trace-buffer.cc", 2296 "src/libplatform/tracing/trace-buffer.cc",
2293 "src/libplatform/tracing/trace-buffer.h", 2297 "src/libplatform/tracing/trace-buffer.h",
2294 "src/libplatform/tracing/trace-config.cc", 2298 "src/libplatform/tracing/trace-config.cc",
2295 "src/libplatform/tracing/trace-object.cc", 2299 "src/libplatform/tracing/trace-object.cc",
2296 "src/libplatform/tracing/trace-writer.cc", 2300 "src/libplatform/tracing/trace-writer.cc",
2297 "src/libplatform/tracing/trace-writer.h", 2301 "src/libplatform/tracing/trace-writer.h",
2298 "src/libplatform/tracing/tracing-controller.cc", 2302 "src/libplatform/tracing/tracing-controller.cc",
2299 "src/libplatform/worker-thread.cc", 2303 "src/libplatform/worker-thread.cc",
2300 "src/libplatform/worker-thread.h", 2304 "src/libplatform/worker-thread.h",
2301 ] 2305 ]
2302 2306
2303 configs = [ ":internal_config_base" ] 2307 configs = [ ":internal_config_base" ]
2304 2308
2309 if (is_component_build) {
2310 defines = [ "BUILDING_V8_PLATFORM_SHARED" ]
2311 }
2312
2305 public_configs = [ ":libplatform_config" ] 2313 public_configs = [ ":libplatform_config" ]
2306 2314
2307 deps = [ 2315 deps = [
2308 ":v8_libbase", 2316 ":v8_libbase",
2309 ] 2317 ]
2310 } 2318 }
2311 2319
2312 v8_source_set("v8_libsampler") { 2320 v8_source_set("v8_libsampler") {
2313 sources = [ 2321 sources = [
2314 "src/libsampler/sampler.cc", 2322 "src/libsampler/sampler.cc",
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
2931 ] 2939 ]
2932 2940
2933 configs = [ 2941 configs = [
2934 ":external_config", 2942 ":external_config",
2935 ":internal_config_base", 2943 ":internal_config_base",
2936 ] 2944 ]
2937 } 2945 }
2938 2946
2939 v8_fuzzer("wasm_data_section_fuzzer") { 2947 v8_fuzzer("wasm_data_section_fuzzer") {
2940 } 2948 }
OLDNEW
« no previous file with comments | « no previous file | include/libplatform/DEPS » ('j') | src/v8.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698