1 # must set SRCDIR externally
10 print "# Automatically generated. Do not edit!";
16 keep_going = (NF > 0);
20 if (keep_going && ($1 == "#")) {
23 if (keep_going && ($1 == ")")) {
27 if (keep_going && ($1 == "ADDITIONAL_HEADER_DIRS")) {
32 if (keep_going && ($1 == "ADDITIONAL_HEADERS")) {
37 if (keep_going && ($1 == "DEPENDS")) {
42 if (keep_going && ($1 == "LINK_LIBS")) {
47 if (keep_going && headers) {
48 if (substr($1,2,24) == "{LLVM_MAIN_INCLUDE_DIR}/") {
50 print "HDRDIR=\t" srcdir
54 if (keep_going && depends) {
57 if (keep_going && linklibs) {
65 print "SRCS=\t" $1 " \\";
68 } else if (substr($1,1,18) == "add_clang_library(") {
71 print "LIB=\t" libname "\n"
72 } else if (substr($1,1,17) == "add_llvm_library(") {
75 print "LIB=\t" libname "\n"
76 } else if (substr($1,1,16) == "add_llvm_target(") {
80 print "\nLIB=\tLLVM" libname
82 # AArch64, ARM, AMDGPU, Mips, PowerPC code generators
84 print "LIB=\tLLVM" libname "\n"
86 } else if (substr($1,1,11) == "set(sources") {
93 print "\nSRCDIR= " SRCDIR