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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 visibility = [ ":*" ] # Only targets in this file can depend on this. | 108 visibility = [ ":*" ] # Only targets in this file can depend on this. |
109 | 109 |
110 include_dirs = [ "." ] | 110 include_dirs = [ "." ] |
111 } | 111 } |
112 | 112 |
113 # This config should be applied to code using the libplatform. | 113 # This config should be applied to code using the libplatform. |
114 config("libplatform_config") { | 114 config("libplatform_config") { |
115 include_dirs = [ "include" ] | 115 include_dirs = [ "include" ] |
116 } | 116 } |
117 | 117 |
| 118 # This config should be applied to code using the libsampler. |
| 119 config("libsampler_config") { |
| 120 include_dirs = [ "include" ] |
| 121 } |
| 122 |
118 # This config should only be applied to code using V8 and not any V8 code | 123 # This config should only be applied to code using V8 and not any V8 code |
119 # itself. | 124 # itself. |
120 config("external_config") { | 125 config("external_config") { |
121 if (is_component_build) { | 126 if (is_component_build) { |
122 defines = [ | 127 defines = [ |
123 "V8_SHARED", | 128 "V8_SHARED", |
124 "USING_V8_SHARED", | 129 "USING_V8_SHARED", |
125 ] | 130 ] |
126 } | 131 } |
127 include_dirs = [ "include" ] | 132 include_dirs = [ "include" ] |
(...skipping 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1331 "src/profiler/cpu-profiler.cc", | 1336 "src/profiler/cpu-profiler.cc", |
1332 "src/profiler/cpu-profiler.h", | 1337 "src/profiler/cpu-profiler.h", |
1333 "src/profiler/heap-profiler.cc", | 1338 "src/profiler/heap-profiler.cc", |
1334 "src/profiler/heap-profiler.h", | 1339 "src/profiler/heap-profiler.h", |
1335 "src/profiler/heap-snapshot-generator-inl.h", | 1340 "src/profiler/heap-snapshot-generator-inl.h", |
1336 "src/profiler/heap-snapshot-generator.cc", | 1341 "src/profiler/heap-snapshot-generator.cc", |
1337 "src/profiler/heap-snapshot-generator.h", | 1342 "src/profiler/heap-snapshot-generator.h", |
1338 "src/profiler/profile-generator-inl.h", | 1343 "src/profiler/profile-generator-inl.h", |
1339 "src/profiler/profile-generator.cc", | 1344 "src/profiler/profile-generator.cc", |
1340 "src/profiler/profile-generator.h", | 1345 "src/profiler/profile-generator.h", |
1341 "src/profiler/sampler.cc", | |
1342 "src/profiler/sampler.h", | |
1343 "src/profiler/sampling-heap-profiler.cc", | 1346 "src/profiler/sampling-heap-profiler.cc", |
1344 "src/profiler/sampling-heap-profiler.h", | 1347 "src/profiler/sampling-heap-profiler.h", |
1345 "src/profiler/strings-storage.cc", | 1348 "src/profiler/strings-storage.cc", |
1346 "src/profiler/strings-storage.h", | 1349 "src/profiler/strings-storage.h", |
1347 "src/profiler/tick-sample.cc", | 1350 "src/profiler/tick-sample.cc", |
1348 "src/profiler/tick-sample.h", | 1351 "src/profiler/tick-sample.h", |
1349 "src/profiler/unbound-queue-inl.h", | 1352 "src/profiler/unbound-queue-inl.h", |
1350 "src/profiler/unbound-queue.h", | 1353 "src/profiler/unbound-queue.h", |
1351 "src/property-descriptor.cc", | 1354 "src/property-descriptor.cc", |
1352 "src/property-descriptor.h", | 1355 "src/property-descriptor.h", |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1816 "src/s390/simulator-s390.cc", | 1819 "src/s390/simulator-s390.cc", |
1817 "src/s390/simulator-s390.h", | 1820 "src/s390/simulator-s390.h", |
1818 ] | 1821 ] |
1819 } | 1822 } |
1820 | 1823 |
1821 configs = [ ":internal_config" ] | 1824 configs = [ ":internal_config" ] |
1822 | 1825 |
1823 defines = [] | 1826 defines = [] |
1824 deps = [ | 1827 deps = [ |
1825 ":v8_libbase", | 1828 ":v8_libbase", |
| 1829 ":v8_libsampler", |
1826 ] | 1830 ] |
1827 | 1831 |
1828 if (is_win) { | 1832 if (is_win) { |
1829 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1833 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
1830 cflags = [ "/wd4267" ] | 1834 cflags = [ "/wd4267" ] |
1831 } | 1835 } |
1832 | 1836 |
1833 if (v8_enable_i18n_support) { | 1837 if (v8_enable_i18n_support) { |
1834 deps += [ "//third_party/icu" ] | 1838 deps += [ "//third_party/icu" ] |
1835 if (is_win) { | 1839 if (is_win) { |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1970 | 1974 |
1971 configs = [ ":internal_config_base" ] | 1975 configs = [ ":internal_config_base" ] |
1972 | 1976 |
1973 public_configs = [ ":libplatform_config" ] | 1977 public_configs = [ ":libplatform_config" ] |
1974 | 1978 |
1975 deps = [ | 1979 deps = [ |
1976 ":v8_libbase", | 1980 ":v8_libbase", |
1977 ] | 1981 ] |
1978 } | 1982 } |
1979 | 1983 |
| 1984 v8_source_set("v8_libsampler") { |
| 1985 sources = [ |
| 1986 "src/libsampler/hashmap.h", |
| 1987 "src/libsampler/utils.h", |
| 1988 "src/libsampler/v8-sampler.cc", |
| 1989 "src/libsampler/v8-sampler.h", |
| 1990 ] |
| 1991 |
| 1992 configs = [ ":internal_config_base" ] |
| 1993 |
| 1994 public_configs = [ ":libsampler_config" ] |
| 1995 |
| 1996 deps = [ |
| 1997 ":v8_libbase", |
| 1998 ] |
| 1999 } |
| 2000 |
1980 v8_source_set("fuzzer_support") { | 2001 v8_source_set("fuzzer_support") { |
1981 visibility = [ ":*" ] # Only targets in this file can depend on this. | 2002 visibility = [ ":*" ] # Only targets in this file can depend on this. |
1982 | 2003 |
1983 sources = [ | 2004 sources = [ |
1984 "test/fuzzer/fuzzer-support.cc", | 2005 "test/fuzzer/fuzzer-support.cc", |
1985 "test/fuzzer/fuzzer-support.h", | 2006 "test/fuzzer/fuzzer-support.h", |
1986 ] | 2007 ] |
1987 | 2008 |
1988 configs = [ ":internal_config_base" ] | 2009 configs = [ ":internal_config_base" ] |
1989 | 2010 |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2184 sources = [ | 2205 sources = [ |
2185 "test/fuzzer/wasm-asmjs.cc", | 2206 "test/fuzzer/wasm-asmjs.cc", |
2186 ] | 2207 ] |
2187 | 2208 |
2188 deps = [ | 2209 deps = [ |
2189 ":fuzzer_support", | 2210 ":fuzzer_support", |
2190 ] | 2211 ] |
2191 | 2212 |
2192 configs = [ ":internal_config" ] | 2213 configs = [ ":internal_config" ] |
2193 } | 2214 } |
OLD | NEW |