OLD | NEW |
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 Loading... |
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 libbase. | 136 # This config should be applied to code using the libbase. |
134 config("libbase_config") { | 137 config("libbase_config") { |
135 if (is_component_build) { | 138 if (is_component_build) { |
136 defines = [ "USING_V8_BASE_SHARED" ] | 139 defines = [ "USING_V8_BASE_SHARED" ] |
137 } | 140 } |
138 libs = [] | 141 libs = [] |
139 if (is_android && current_toolchain != host_toolchain) { | 142 if (is_android && current_toolchain != host_toolchain) { |
140 libs += [ "log" ] | 143 libs += [ "log" ] |
(...skipping 2147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2288 "dbghelp.lib", | 2291 "dbghelp.lib", |
2289 "shlwapi.lib", | 2292 "shlwapi.lib", |
2290 "winmm.lib", | 2293 "winmm.lib", |
2291 "ws2_32.lib", | 2294 "ws2_32.lib", |
2292 ] | 2295 ] |
2293 } | 2296 } |
2294 | 2297 |
2295 # TODO(jochen): Add support for qnx, freebsd, openbsd, netbsd, and solaris. | 2298 # TODO(jochen): Add support for qnx, freebsd, openbsd, netbsd, and solaris. |
2296 } | 2299 } |
2297 | 2300 |
2298 v8_source_set("v8_libplatform") { | 2301 v8_component("v8_libplatform") { |
2299 sources = [ | 2302 sources = [ |
2300 "//base/trace_event/common/trace_event_common.h", | 2303 "//base/trace_event/common/trace_event_common.h", |
| 2304 "include/libplatform/libplatform-export.h", |
2301 "include/libplatform/libplatform.h", | 2305 "include/libplatform/libplatform.h", |
2302 "include/libplatform/v8-tracing.h", | 2306 "include/libplatform/v8-tracing.h", |
2303 "src/libplatform/default-platform.cc", | 2307 "src/libplatform/default-platform.cc", |
2304 "src/libplatform/default-platform.h", | 2308 "src/libplatform/default-platform.h", |
2305 "src/libplatform/task-queue.cc", | 2309 "src/libplatform/task-queue.cc", |
2306 "src/libplatform/task-queue.h", | 2310 "src/libplatform/task-queue.h", |
2307 "src/libplatform/tracing/trace-buffer.cc", | 2311 "src/libplatform/tracing/trace-buffer.cc", |
2308 "src/libplatform/tracing/trace-buffer.h", | 2312 "src/libplatform/tracing/trace-buffer.h", |
2309 "src/libplatform/tracing/trace-config.cc", | 2313 "src/libplatform/tracing/trace-config.cc", |
2310 "src/libplatform/tracing/trace-object.cc", | 2314 "src/libplatform/tracing/trace-object.cc", |
2311 "src/libplatform/tracing/trace-writer.cc", | 2315 "src/libplatform/tracing/trace-writer.cc", |
2312 "src/libplatform/tracing/trace-writer.h", | 2316 "src/libplatform/tracing/trace-writer.h", |
2313 "src/libplatform/tracing/tracing-controller.cc", | 2317 "src/libplatform/tracing/tracing-controller.cc", |
2314 "src/libplatform/worker-thread.cc", | 2318 "src/libplatform/worker-thread.cc", |
2315 "src/libplatform/worker-thread.h", | 2319 "src/libplatform/worker-thread.h", |
2316 ] | 2320 ] |
2317 | 2321 |
2318 configs = [ ":internal_config_base" ] | 2322 configs = [ ":internal_config_base" ] |
2319 | 2323 |
| 2324 if (is_component_build) { |
| 2325 defines = [ "BUILDING_V8_PLATFORM_SHARED" ] |
| 2326 } |
| 2327 |
2320 public_configs = [ ":libplatform_config" ] | 2328 public_configs = [ ":libplatform_config" ] |
2321 | 2329 |
2322 deps = [ | 2330 deps = [ |
2323 ":v8_libbase", | 2331 ":v8_libbase", |
2324 ] | 2332 ] |
2325 } | 2333 } |
2326 | 2334 |
2327 v8_source_set("v8_libsampler") { | 2335 v8_source_set("v8_libsampler") { |
2328 sources = [ | 2336 sources = [ |
2329 "src/libsampler/sampler.cc", | 2337 "src/libsampler/sampler.cc", |
(...skipping 17 matching lines...) Expand all Loading... |
2347 "test/fuzzer/fuzzer-support.h", | 2355 "test/fuzzer/fuzzer-support.h", |
2348 ] | 2356 ] |
2349 | 2357 |
2350 configs = [ ":internal_config_base" ] | 2358 configs = [ ":internal_config_base" ] |
2351 | 2359 |
2352 deps = [ | 2360 deps = [ |
2353 ":v8", | 2361 ":v8", |
2354 ] | 2362 ] |
2355 | 2363 |
2356 public_deps = [ | 2364 public_deps = [ |
| 2365 ":v8_libbase", |
2357 ":v8_libplatform", | 2366 ":v8_libplatform", |
2358 ] | 2367 ] |
2359 } | 2368 } |
2360 | 2369 |
2361 # Used by fuzzers that would require exposing too many symbols for a proper | 2370 # Used by fuzzers that would require exposing too many symbols for a proper |
2362 # component build. | 2371 # component build. |
2363 v8_source_set("fuzzer_support_nocomponent") { | 2372 v8_source_set("fuzzer_support_nocomponent") { |
2364 visibility = [ ":*" ] # Only targets in this file can depend on this. | 2373 visibility = [ ":*" ] # Only targets in this file can depend on this. |
2365 | 2374 |
2366 sources = [ | 2375 sources = [ |
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2953 ] | 2962 ] |
2954 | 2963 |
2955 configs = [ | 2964 configs = [ |
2956 ":external_config", | 2965 ":external_config", |
2957 ":internal_config_base", | 2966 ":internal_config_base", |
2958 ] | 2967 ] |
2959 } | 2968 } |
2960 | 2969 |
2961 v8_fuzzer("wasm_data_section_fuzzer") { | 2970 v8_fuzzer("wasm_data_section_fuzzer") { |
2962 } | 2971 } |
OLD | NEW |