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