1 import("//llvm/utils/gn/build/write_vcsrevision.gni")
3 config("write_vcsrevision_config") {
4 # To pick up the generated inc file.
5 include_dirs = [ target_gen_dir ]
6 visibility = [ ":write_vcsversion" ]
9 write_vcsrevision("write_vcsversion") {
10 visibility = [ ":Common" ]
11 header = "$target_gen_dir/VCSVersion.inc"
13 public_configs = [ ":write_vcsrevision_config" ]
16 static_library("Common") {
17 output_name = "lldCommon"
18 configs += [ "//llvm/utils/gn/build:lld_code" ]
20 # public_dep because public header Version.h includes generated Version.inc.
21 "//lld/include/lld/Common:version",
26 "//llvm/lib/Demangle",
32 "//llvm/lib/TargetParser",
36 "BPSectionOrdererBase.cpp",
37 "CommonLinkerContext.cpp",
39 "DriverDispatcher.cpp",
45 "TargetOptionsCommandFlags.cpp",