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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 visibility = [ ":*" ] # Only targets in this file can depend on this. | 98 visibility = [ ":*" ] # Only targets in this file can depend on this. |
99 | 99 |
100 include_dirs = [ "." ] | 100 include_dirs = [ "." ] |
101 } | 101 } |
102 | 102 |
103 # This config should be applied to code using the libplatform. | 103 # This config should be applied to code using the libplatform. |
104 config("libplatform_config") { | 104 config("libplatform_config") { |
105 include_dirs = [ "include" ] | 105 include_dirs = [ "include" ] |
106 } | 106 } |
107 | 107 |
| 108 # This config should be applied to code using the libsampler. |
| 109 config("libsampler_config") { |
| 110 include_dirs = [ "include" ] |
| 111 } |
| 112 |
108 # This config should only be applied to code using V8 and not any V8 code | 113 # This config should only be applied to code using V8 and not any V8 code |
109 # itself. | 114 # itself. |
110 config("external_config") { | 115 config("external_config") { |
111 if (is_component_build) { | 116 if (is_component_build) { |
112 defines = [ | 117 defines = [ |
113 "V8_SHARED", | 118 "V8_SHARED", |
114 "USING_V8_SHARED", | 119 "USING_V8_SHARED", |
115 ] | 120 ] |
116 } | 121 } |
117 include_dirs = [ "include" ] | 122 include_dirs = [ "include" ] |
(...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1322 "src/profiler/cpu-profiler.cc", | 1327 "src/profiler/cpu-profiler.cc", |
1323 "src/profiler/cpu-profiler.h", | 1328 "src/profiler/cpu-profiler.h", |
1324 "src/profiler/heap-profiler.cc", | 1329 "src/profiler/heap-profiler.cc", |
1325 "src/profiler/heap-profiler.h", | 1330 "src/profiler/heap-profiler.h", |
1326 "src/profiler/heap-snapshot-generator-inl.h", | 1331 "src/profiler/heap-snapshot-generator-inl.h", |
1327 "src/profiler/heap-snapshot-generator.cc", | 1332 "src/profiler/heap-snapshot-generator.cc", |
1328 "src/profiler/heap-snapshot-generator.h", | 1333 "src/profiler/heap-snapshot-generator.h", |
1329 "src/profiler/profile-generator-inl.h", | 1334 "src/profiler/profile-generator-inl.h", |
1330 "src/profiler/profile-generator.cc", | 1335 "src/profiler/profile-generator.cc", |
1331 "src/profiler/profile-generator.h", | 1336 "src/profiler/profile-generator.h", |
1332 "src/profiler/sampler.cc", | |
1333 "src/profiler/sampler.h", | |
1334 "src/profiler/sampling-heap-profiler.cc", | 1337 "src/profiler/sampling-heap-profiler.cc", |
1335 "src/profiler/sampling-heap-profiler.h", | 1338 "src/profiler/sampling-heap-profiler.h", |
1336 "src/profiler/strings-storage.cc", | 1339 "src/profiler/strings-storage.cc", |
1337 "src/profiler/strings-storage.h", | 1340 "src/profiler/strings-storage.h", |
1338 "src/profiler/tick-sample.cc", | 1341 "src/profiler/tick-sample.cc", |
1339 "src/profiler/tick-sample.h", | 1342 "src/profiler/tick-sample.h", |
1340 "src/profiler/unbound-queue-inl.h", | 1343 "src/profiler/unbound-queue-inl.h", |
1341 "src/profiler/unbound-queue.h", | 1344 "src/profiler/unbound-queue.h", |
1342 "src/property-descriptor.cc", | 1345 "src/property-descriptor.cc", |
1343 "src/property-descriptor.h", | 1346 "src/property-descriptor.h", |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1809 "src/s390/simulator-s390.cc", | 1812 "src/s390/simulator-s390.cc", |
1810 "src/s390/simulator-s390.h", | 1813 "src/s390/simulator-s390.h", |
1811 ] | 1814 ] |
1812 } | 1815 } |
1813 | 1816 |
1814 configs = [ ":internal_config" ] | 1817 configs = [ ":internal_config" ] |
1815 | 1818 |
1816 defines = [] | 1819 defines = [] |
1817 deps = [ | 1820 deps = [ |
1818 ":v8_libbase", | 1821 ":v8_libbase", |
| 1822 ":v8_libsampler", |
1819 ] | 1823 ] |
1820 | 1824 |
1821 if (is_win) { | 1825 if (is_win) { |
1822 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1826 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
1823 cflags = [ "/wd4267" ] | 1827 cflags = [ "/wd4267" ] |
1824 } | 1828 } |
1825 | 1829 |
1826 if (v8_enable_i18n_support) { | 1830 if (v8_enable_i18n_support) { |
1827 deps += [ "//third_party/icu" ] | 1831 deps += [ "//third_party/icu" ] |
1828 if (is_win) { | 1832 if (is_win) { |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1963 | 1967 |
1964 configs = [ ":internal_config_base" ] | 1968 configs = [ ":internal_config_base" ] |
1965 | 1969 |
1966 public_configs = [ ":libplatform_config" ] | 1970 public_configs = [ ":libplatform_config" ] |
1967 | 1971 |
1968 deps = [ | 1972 deps = [ |
1969 ":v8_libbase", | 1973 ":v8_libbase", |
1970 ] | 1974 ] |
1971 } | 1975 } |
1972 | 1976 |
| 1977 v8_source_set("v8_libsampler") { |
| 1978 sources = [ |
| 1979 "src/libsampler/hashmap.h", |
| 1980 "src/libsampler/utils.h", |
| 1981 "src/libsampler/v8-sampler.cc", |
| 1982 "src/libsampler/v8-sampler.h", |
| 1983 ] |
| 1984 |
| 1985 configs = [ ":internal_config_base" ] |
| 1986 |
| 1987 public_configs = [ ":libsampler_config" ] |
| 1988 |
| 1989 deps = [ |
| 1990 ":v8_libbase", |
| 1991 ] |
| 1992 } |
| 1993 |
1973 v8_source_set("fuzzer_support") { | 1994 v8_source_set("fuzzer_support") { |
1974 visibility = [ ":*" ] # Only targets in this file can depend on this. | 1995 visibility = [ ":*" ] # Only targets in this file can depend on this. |
1975 | 1996 |
1976 sources = [ | 1997 sources = [ |
1977 "test/fuzzer/fuzzer-support.cc", | 1998 "test/fuzzer/fuzzer-support.cc", |
1978 "test/fuzzer/fuzzer-support.h", | 1999 "test/fuzzer/fuzzer-support.h", |
1979 ] | 2000 ] |
1980 | 2001 |
1981 configs = [ ":internal_config_base" ] | 2002 configs = [ ":internal_config_base" ] |
1982 | 2003 |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2180 sources = [ | 2201 sources = [ |
2181 "test/fuzzer/wasm-asmjs.cc", | 2202 "test/fuzzer/wasm-asmjs.cc", |
2182 ] | 2203 ] |
2183 | 2204 |
2184 deps = [ | 2205 deps = [ |
2185 ":fuzzer_support", | 2206 ":fuzzer_support", |
2186 ] | 2207 ] |
2187 | 2208 |
2188 configs = [ ":internal_config" ] | 2209 configs = [ ":internal_config" ] |
2189 } | 2210 } |
OLD | NEW |