Index: llvm/trunk/utils/gn/secondary/BUILD.gn =================================================================== --- llvm/trunk/utils/gn/secondary/BUILD.gn +++ llvm/trunk/utils/gn/secondary/BUILD.gn @@ -1,8 +1,11 @@ group("default") { deps = [ "//clang/lib/AST", + "//clang/lib/Analysis", "//clang/lib/Basic", + "//clang/lib/Edit", "//clang/lib/Lex", + "//clang/lib/Sema", "//lld/test", "//llvm/tools/llvm-undname", ] Index: llvm/trunk/utils/gn/secondary/clang/include/clang/Sema/BUILD.gn =================================================================== --- llvm/trunk/utils/gn/secondary/clang/include/clang/Sema/BUILD.gn +++ llvm/trunk/utils/gn/secondary/clang/include/clang/Sema/BUILD.gn @@ -0,0 +1,46 @@ +import("//clang/utils/TableGen/clang_tablegen.gni") + +clang_tablegen("AttrTemplateInstantiate") { + args = [ + "-gen-clang-attr-template-instantiate", + "-I", + rebase_path("../..", root_out_dir), + ] + td_file = "../Basic/Attr.td" +} + +clang_tablegen("AttrParsedAttrList") { + args = [ + "-gen-clang-attr-parsed-attr-list", + "-I", + rebase_path("../..", root_out_dir), + ] + td_file = "../Basic/Attr.td" +} + +clang_tablegen("AttrParsedAttrKinds") { + args = [ + "-gen-clang-attr-parsed-attr-kinds", + "-I", + rebase_path("../..", root_out_dir), + ] + td_file = "../Basic/Attr.td" +} + +clang_tablegen("AttrSpellingListIndex") { + args = [ + "-gen-clang-attr-spelling-index", + "-I", + rebase_path("../..", root_out_dir), + ] + td_file = "../Basic/Attr.td" +} + +clang_tablegen("AttrParsedAttrImpl") { + args = [ + "-gen-clang-attr-parsed-attr-impl", + "-I", + rebase_path("../..", root_out_dir), + ] + td_file = "../Basic/Attr.td" +} Index: llvm/trunk/utils/gn/secondary/clang/lib/Analysis/BUILD.gn =================================================================== --- llvm/trunk/utils/gn/secondary/clang/lib/Analysis/BUILD.gn +++ llvm/trunk/utils/gn/secondary/clang/lib/Analysis/BUILD.gn @@ -0,0 +1,36 @@ +static_library("Analysis") { + output_name = "clangAnalysis" + configs += [ "//llvm/utils/gn/build:clang_code" ] + deps = [ + "//clang/include/clang/AST:StmtDataCollectors", + "//clang/lib/AST", + "//clang/lib/Basic", + "//clang/lib/Lex", + "//llvm/lib/Support", + ] + sources = [ + "AnalysisDeclContext.cpp", + "BodyFarm.cpp", + "CFG.cpp", + "CFGReachabilityAnalysis.cpp", + "CFGStmtMap.cpp", + "CallGraph.cpp", + "CloneDetection.cpp", + "CocoaConventions.cpp", + "CodeInjector.cpp", + "ConstructionContext.cpp", + "Consumed.cpp", + "Dominators.cpp", + "ExprMutationAnalyzer.cpp", + "LiveVariables.cpp", + "ObjCNoReturn.cpp", + "PostOrderCFGView.cpp", + "ProgramPoint.cpp", + "ReachableCode.cpp", + "ThreadSafety.cpp", + "ThreadSafetyCommon.cpp", + "ThreadSafetyLogical.cpp", + "ThreadSafetyTIL.cpp", + "UninitializedValues.cpp", + ] +} Index: llvm/trunk/utils/gn/secondary/clang/lib/Edit/BUILD.gn =================================================================== --- llvm/trunk/utils/gn/secondary/clang/lib/Edit/BUILD.gn +++ llvm/trunk/utils/gn/secondary/clang/lib/Edit/BUILD.gn @@ -0,0 +1,15 @@ +static_library("Edit") { + output_name = "clangEdit" + configs += [ "//llvm/utils/gn/build:clang_code" ] + deps = [ + "//clang/lib/AST", + "//clang/lib/Basic", + "//clang/lib/Lex", + "//llvm/lib/Support", + ] + sources = [ + "Commit.cpp", + "EditedSource.cpp", + "RewriteObjCFoundationAPI.cpp", + ] +} Index: llvm/trunk/utils/gn/secondary/clang/lib/Sema/BUILD.gn =================================================================== --- llvm/trunk/utils/gn/secondary/clang/lib/Sema/BUILD.gn +++ llvm/trunk/utils/gn/secondary/clang/lib/Sema/BUILD.gn @@ -0,0 +1,66 @@ +static_library("Sema") { + output_name = "clangSema" + configs += [ "//llvm/utils/gn/build:clang_code" ] + deps = [ + "//clang/include/clang/Sema:AttrParsedAttrImpl", + "//clang/include/clang/Sema:AttrParsedAttrKinds", + "//clang/include/clang/Sema:AttrParsedAttrList", + "//clang/include/clang/Sema:AttrSpellingListIndex", + "//clang/include/clang/Sema:AttrTemplateInstantiate", + "//clang/lib/AST", + "//clang/lib/Analysis", + "//clang/lib/Basic", + "//clang/lib/Edit", + "//clang/lib/Lex", + "//llvm/lib/Support", + ] + sources = [ + "AnalysisBasedWarnings.cpp", + "CodeCompleteConsumer.cpp", + "DeclSpec.cpp", + "DelayedDiagnostic.cpp", + "IdentifierResolver.cpp", + "JumpDiagnostics.cpp", + "MultiplexExternalSemaSource.cpp", + "ParsedAttr.cpp", + "Scope.cpp", + "ScopeInfo.cpp", + "Sema.cpp", + "SemaAccess.cpp", + "SemaAttr.cpp", + "SemaCUDA.cpp", + "SemaCXXScopeSpec.cpp", + "SemaCast.cpp", + "SemaChecking.cpp", + "SemaCodeComplete.cpp", + "SemaConsumer.cpp", + "SemaCoroutine.cpp", + "SemaDecl.cpp", + "SemaDeclAttr.cpp", + "SemaDeclCXX.cpp", + "SemaDeclObjC.cpp", + "SemaExceptionSpec.cpp", + "SemaExpr.cpp", + "SemaExprCXX.cpp", + "SemaExprMember.cpp", + "SemaExprObjC.cpp", + "SemaFixItUtils.cpp", + "SemaInit.cpp", + "SemaLambda.cpp", + "SemaLookup.cpp", + "SemaObjCProperty.cpp", + "SemaOpenMP.cpp", + "SemaOverload.cpp", + "SemaPseudoObject.cpp", + "SemaStmt.cpp", + "SemaStmtAsm.cpp", + "SemaStmtAttr.cpp", + "SemaTemplate.cpp", + "SemaTemplateDeduction.cpp", + "SemaTemplateInstantiate.cpp", + "SemaTemplateInstantiateDecl.cpp", + "SemaTemplateVariadic.cpp", + "SemaType.cpp", + "TypeLocBuilder.cpp", + ] +}