• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import("//llvm/utils/gn/build/toolchain/compiler.gni")
2
3supported_toolchains = []
4if (target_os == "linux" || target_os == "fuchsia") {
5  supported_toolchains += [ "//llvm/utils/gn/build/toolchain:stage2_unix" ]
6}
7if (android_ndk_path != "") {
8  supported_toolchains += [
9    "//llvm/utils/gn/build/toolchain:stage2_android_aarch64",
10    "//llvm/utils/gn/build/toolchain:stage2_android_arm",
11  ]
12}
13
14group("scudo") {
15  deps = []
16  foreach(toolchain, supported_toolchains) {
17    deps += [
18      "standalone/benchmarks:ScudoBenchmarks($toolchain)",
19      "standalone/tests:ScudoCUnitTest($toolchain)",
20      "standalone/tests:ScudoCxxUnitTest($toolchain)",
21      "standalone/tests:ScudoUnitTest($toolchain)",
22    ]
23  }
24  testonly = true
25}
26
27# This target is unused, it only exists to satisfy
28# sync_source_lists_from_cmake.py.
29source_set("sources") {
30  configs -= [ "//llvm/utils/gn/build:llvm_code" ]
31  configs += [ "//llvm/utils/gn/build:crt_code" ]
32  sources = [
33    "scudo_allocator.cpp",
34    "scudo_allocator.h",
35    "scudo_allocator_combined.h",
36    "scudo_allocator_secondary.h",
37    "scudo_crc32.cpp",
38    "scudo_crc32.h",
39    "scudo_errors.cpp",
40    "scudo_errors.h",
41    "scudo_flags.cpp",
42    "scudo_flags.h",
43    "scudo_interface_internal.h",
44    "scudo_malloc.cpp",
45    "scudo_platform.h",
46    "scudo_termination.cpp",
47    "scudo_tsd.h",
48    "scudo_tsd_exclusive.cpp",
49    "scudo_tsd_shared.cpp",
50  ]
51}
52