summaryrefslogtreecommitdiff
path: root/llvm/utils/gn/secondary/llvm/tools/llvm-debuginfod-find/BUILD.gn
blob: 16b2c53438314a06d1111b7d9fb9200b63942719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import("//llvm/tools/binutils_symlinks.gni")
import("//llvm/utils/gn/build/symlink_or_copy.gni")

if (llvm_install_binutils_symlinks) {
  symlink_or_copy("debuginfod-find") {
    deps = [ ":llvm-debuginfod-find" ]
    source = "llvm-debuginfod-find"
    output = "$root_out_dir/bin/debuginfod-find"
  }
}

# //:llvm-debuginfod-find depends on this symlink target, see comment in
# //BUILD.gn.
group("symlinks") {
  deps = [ ":llvm-debuginfod-find" ]
  if (llvm_install_binutils_symlinks) {
    deps += [ ":debuginfod-find" ]
  }
}

executable("llvm-debuginfod-find") {
  deps = [
    "//llvm/lib/Debuginfod",
    "//llvm/lib/Support",
  ]
  sources = [ "llvm-debuginfod-find.cpp" ]
}