1//===---------------------------------------------------------------=== 2// llvm-config command line tool 3//===---------------------------------------------------------------=== 4 5cc_binary_host { 6 name: "llvm-config", 7 defaults: ["llvm-defaults"], 8 generated_headers: ["llvm-gen-config"], 9 srcs: ["llvm-config.cpp"], 10 static_libs: [ 11 "libLLVMCore", 12 "libLLVMSupport", 13 ], 14} 15 16// Create BuildVariables.inc dynamically from BuildVariables.inc.in 17genrule { 18 name: "llvm-gen-config", 19 srcs: ["BuildVariables.inc.in"], 20 out: ["BuildVariables.inc"], 21 tool_files: ["BuildVariables.inc.in"], 22 cmd: "sed -e \"s#@ANDROID_BUILD_TOP@#$$PWD#\" < $(in) > $(out)", 23} 24