Index: llvm/trunk/utils/gn/secondary/BUILD.gn =================================================================== --- llvm/trunk/utils/gn/secondary/BUILD.gn +++ llvm/trunk/utils/gn/secondary/BUILD.gn @@ -1,5 +1,6 @@ group("default") { deps = [ + "//clang/lib/Parse", "//clang/tools/clang-format", "//lld/test", "//llvm/tools/llvm-undname", Index: llvm/trunk/utils/gn/secondary/clang/include/clang/Parse/BUILD.gn =================================================================== --- llvm/trunk/utils/gn/secondary/clang/include/clang/Parse/BUILD.gn +++ llvm/trunk/utils/gn/secondary/clang/include/clang/Parse/BUILD.gn @@ -0,0 +1,19 @@ +import("//clang/utils/TableGen/clang_tablegen.gni") + +clang_tablegen("AttrParserStringSwitches") { + args = [ + "-gen-clang-attr-parser-string-switches", + "-I", + rebase_path("../..", root_out_dir), + ] + td_file = "../Basic/Attr.td" +} + +clang_tablegen("AttrSubMatchRulesParserStringSwitches") { + args = [ + "-gen-clang-attr-subject-match-rules-parser-string-switches", + "-I", + rebase_path("../..", root_out_dir), + ] + td_file = "../Basic/Attr.td" +} Index: llvm/trunk/utils/gn/secondary/clang/lib/Parse/BUILD.gn =================================================================== --- llvm/trunk/utils/gn/secondary/clang/lib/Parse/BUILD.gn +++ llvm/trunk/utils/gn/secondary/clang/lib/Parse/BUILD.gn @@ -0,0 +1,32 @@ +static_library("Parse") { + output_name = "clangParse" + configs += [ "//llvm/utils/gn/build:clang_code" ] + deps = [ + "//clang/include/clang/Parse:AttrParserStringSwitches", + "//clang/include/clang/Parse:AttrSubMatchRulesParserStringSwitches", + "//clang/lib/AST", + "//clang/lib/Basic", + "//clang/lib/Lex", + "//clang/lib/Sema", + "//llvm/lib/MC", + "//llvm/lib/MC/MCParser", + "//llvm/lib/Support", + ] + sources = [ + "ParseAST.cpp", + "ParseCXXInlineMethods.cpp", + "ParseDecl.cpp", + "ParseDeclCXX.cpp", + "ParseExpr.cpp", + "ParseExprCXX.cpp", + "ParseInit.cpp", + "ParseObjc.cpp", + "ParseOpenMP.cpp", + "ParsePragma.cpp", + "ParseStmt.cpp", + "ParseStmtAsm.cpp", + "ParseTemplate.cpp", + "ParseTentative.cpp", + "Parser.cpp", + ] +}