1import("//llvm/utils/gn/build/write_vcsrevision.gni") 2 3# Configure the VCSVersion.inc file 4config("write_vcsrevision_config") { 5 # To pick up the generated inc file. 6 include_dirs = [ target_gen_dir ] 7 visibility = [ ":write_vcsversion" ] 8} 9 10write_vcsrevision("write_vcsversion") { 11 visibility = [ ":Version" ] 12 header = "$target_gen_dir/VCSVersion.inc" 13 names = [ "LLDB" ] 14 public_configs = [ ":write_vcsrevision_config" ] 15} 16 17static_library("Version") { 18 output_name = "lldbVersion" 19 configs += [ 20 "//llvm/utils/gn/build:lldb_code", 21 22 # To pick up clang/Basic/Version.h. 23 "//llvm/utils/gn/build:clang_code", 24 ] 25 sources = [ "Version.cpp" ] 26 public_deps = [ 27 # public_dep because public header Version.h includes generated Version.inc. 28 "//lldb/include/lldb/Version:version", 29 ] 30 deps = [ ":write_vcsversion" ] 31} 32