| 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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1807 "src/s390/simulator-s390.cc", | 1810 "src/s390/simulator-s390.cc", |
| 1808 "src/s390/simulator-s390.h", | 1811 "src/s390/simulator-s390.h", |
| 1809 ] | 1812 ] |
| 1810 } | 1813 } |
| 1811 | 1814 |
| 1812 configs = [ ":internal_config" ] | 1815 configs = [ ":internal_config" ] |
| 1813 | 1816 |
| 1814 defines = [] | 1817 defines = [] |
| 1815 deps = [ | 1818 deps = [ |
| 1816 ":v8_libbase", | 1819 ":v8_libbase", |
| 1820 ":v8_libsampler", |
| 1817 ] | 1821 ] |
| 1818 | 1822 |
| 1819 if (is_win) { | 1823 if (is_win) { |
| 1820 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1824 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1821 cflags = [ "/wd4267" ] | 1825 cflags = [ "/wd4267" ] |
| 1822 } | 1826 } |
| 1823 | 1827 |
| 1824 if (v8_enable_i18n_support) { | 1828 if (v8_enable_i18n_support) { |
| 1825 deps += [ "//third_party/icu" ] | 1829 deps += [ "//third_party/icu" ] |
| 1826 if (is_win) { | 1830 if (is_win) { |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1961 | 1965 |
| 1962 configs = [ ":internal_config_base" ] | 1966 configs = [ ":internal_config_base" ] |
| 1963 | 1967 |
| 1964 public_configs = [ ":libplatform_config" ] | 1968 public_configs = [ ":libplatform_config" ] |
| 1965 | 1969 |
| 1966 deps = [ | 1970 deps = [ |
| 1967 ":v8_libbase", | 1971 ":v8_libbase", |
| 1968 ] | 1972 ] |
| 1969 } | 1973 } |
| 1970 | 1974 |
| 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 |
| 1971 v8_source_set("fuzzer_support") { | 1992 v8_source_set("fuzzer_support") { |
| 1972 visibility = [ ":*" ] # Only targets in this file can depend on this. | 1993 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 1973 | 1994 |
| 1974 sources = [ | 1995 sources = [ |
| 1975 "test/fuzzer/fuzzer-support.cc", | 1996 "test/fuzzer/fuzzer-support.cc", |
| 1976 "test/fuzzer/fuzzer-support.h", | 1997 "test/fuzzer/fuzzer-support.h", |
| 1977 ] | 1998 ] |
| 1978 | 1999 |
| 1979 configs = [ ":internal_config_base" ] | 2000 configs = [ ":internal_config_base" ] |
| 1980 | 2001 |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2178 sources = [ | 2199 sources = [ |
| 2179 "test/fuzzer/wasm-asmjs.cc", | 2200 "test/fuzzer/wasm-asmjs.cc", |
| 2180 ] | 2201 ] |
| 2181 | 2202 |
| 2182 deps = [ | 2203 deps = [ |
| 2183 ":fuzzer_support", | 2204 ":fuzzer_support", |
| 2184 ] | 2205 ] |
| 2185 | 2206 |
| 2186 configs = [ ":internal_config" ] | 2207 configs = [ ":internal_config" ] |
| 2187 } | 2208 } |
| OLD | NEW |