Chromium Code Reviews| 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/mips.gni") | 7 import("//build/config/mips.gni") |
| 8 import("//build/config/sanitizers/sanitizers.gni") | 8 import("//build/config/sanitizers/sanitizers.gni") |
| 9 | 9 |
| 10 if (is_android) { | 10 if (is_android) { |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 105 visibility = [ ":*" ] # Only targets in this file can depend on this. | 105 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 106 | 106 |
| 107 include_dirs = [ "." ] | 107 include_dirs = [ "." ] |
| 108 } | 108 } |
| 109 | 109 |
| 110 # This config should be applied to code using the libplatform. | 110 # This config should be applied to code using the libplatform. |
| 111 config("libplatform_config") { | 111 config("libplatform_config") { |
| 112 include_dirs = [ "include" ] | 112 include_dirs = [ "include" ] |
| 113 } | 113 } |
| 114 | 114 |
| 115 # This config should be applied to code using the libsampler. | |
| 116 config("libsampler_config") { | |
| 117 include_dirs = [ "include" ] | |
| 118 } | |
| 119 | |
| 115 # This config should only be applied to code using V8 and not any V8 code | 120 # This config should only be applied to code using V8 and not any V8 code |
| 116 # itself. | 121 # itself. |
| 117 config("external_config") { | 122 config("external_config") { |
| 118 if (is_component_build) { | 123 if (is_component_build) { |
| 119 defines = [ | 124 defines = [ |
| 120 "V8_SHARED", | 125 "V8_SHARED", |
| 121 "USING_V8_SHARED", | 126 "USING_V8_SHARED", |
| 122 ] | 127 ] |
| 123 } | 128 } |
| 124 include_dirs = [ "include" ] | 129 include_dirs = [ "include" ] |
| (...skipping 1862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1987 if (!is_debug || v8_optimized_debug) { | 1992 if (!is_debug || v8_optimized_debug) { |
| 1988 configs -= [ "//build/config/compiler:default_optimization" ] | 1993 configs -= [ "//build/config/compiler:default_optimization" ] |
| 1989 configs += [ "//build/config/compiler:optimize_max" ] | 1994 configs += [ "//build/config/compiler:optimize_max" ] |
| 1990 } | 1995 } |
| 1991 | 1996 |
| 1992 deps = [ | 1997 deps = [ |
| 1993 ":v8_libbase", | 1998 ":v8_libbase", |
| 1994 ] | 1999 ] |
| 1995 } | 2000 } |
| 1996 | 2001 |
| 2002 source_set("v8_libsampler") { | |
| 2003 sources = [ | |
| 2004 "src/libsampler/v8-sampler.cc", | |
| 2005 "src/libsampler/v8-sampler.h", | |
| 2006 ] | |
| 2007 | |
| 2008 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 2009 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 2010 configs += [ | |
| 2011 ":internal_config_base", | |
| 2012 ":features", | |
| 2013 ":toolchain", | |
| 2014 ] | |
| 2015 | |
| 2016 if (!is_debug || v8_optimized_debug) { | |
| 2017 configs -= [ "//build/config/compiler:default_optimization" ] | |
| 2018 configs += [ "//build/config/compiler:optimize_max" ] | |
| 2019 } | |
| 2020 | |
| 2021 deps = [ | |
| 2022 ":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
| |
| 2023 ] | |
| 2024 } | |
| 2025 | |
| 1997 source_set("fuzzer_support") { | 2026 source_set("fuzzer_support") { |
| 1998 visibility = [ ":*" ] # Only targets in this file can depend on this. | 2027 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 1999 | 2028 |
| 2000 sources = [ | 2029 sources = [ |
| 2001 "test/fuzzer/fuzzer-support.cc", | 2030 "test/fuzzer/fuzzer-support.cc", |
| 2002 "test/fuzzer/fuzzer-support.h", | 2031 "test/fuzzer/fuzzer-support.h", |
| 2003 ] | 2032 ] |
| 2004 | 2033 |
| 2005 configs -= [ "//build/config/compiler:chromium_code" ] | 2034 configs -= [ "//build/config/compiler:chromium_code" ] |
| 2006 configs += [ "//build/config/compiler:no_chromium_code" ] | 2035 configs += [ "//build/config/compiler:no_chromium_code" ] |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2250 | 2279 |
| 2251 configs -= [ "//build/config/compiler:chromium_code" ] | 2280 configs -= [ "//build/config/compiler:chromium_code" ] |
| 2252 configs += [ "//build/config/compiler:no_chromium_code" ] | 2281 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 2253 configs += [ | 2282 configs += [ |
| 2254 ":internal_config", | 2283 ":internal_config", |
| 2255 ":libplatform_config", | 2284 ":libplatform_config", |
| 2256 ":features", | 2285 ":features", |
| 2257 ":toolchain", | 2286 ":toolchain", |
| 2258 ] | 2287 ] |
| 2259 } | 2288 } |
| OLD | NEW |