Index: llvm/trunk/utils/gn/secondary/BUILD.gn =================================================================== --- llvm/trunk/utils/gn/secondary/BUILD.gn +++ llvm/trunk/utils/gn/secondary/BUILD.gn @@ -5,6 +5,8 @@ deps = [ "//clang/test", "//lld/test", + "//llvm/tools/llvm-rc", + "//llvm/tools/llvm-rtdyld", "//llvm/tools/llvm-undname", ] if (clang_enable_arcmt) { Index: llvm/trunk/utils/gn/secondary/llvm/lib/ExecutionEngine/BUILD.gn =================================================================== --- llvm/trunk/utils/gn/secondary/llvm/lib/ExecutionEngine/BUILD.gn +++ llvm/trunk/utils/gn/secondary/llvm/lib/ExecutionEngine/BUILD.gn @@ -0,0 +1,21 @@ +static_library("ExecutionEngine") { + output_name = "LLVMExecutionEngine" + public_deps = [ + # Must be a public_dep because ExecutionEngine's headers include + # llvm-config.h. + "//llvm/include/llvm/Config:llvm-config", + ] + deps = [ + "//llvm/lib/IR", + "//llvm/lib/MC", + "//llvm/lib/Object", + "//llvm/lib/Target", + ] + sources = [ + "ExecutionEngine.cpp", + "ExecutionEngineBindings.cpp", + "GDBRegistrationListener.cpp", + "SectionMemoryManager.cpp", + "TargetSelect.cpp", + ] +} Index: llvm/trunk/utils/gn/secondary/llvm/lib/ExecutionEngine/RuntimeDyld/BUILD.gn =================================================================== --- llvm/trunk/utils/gn/secondary/llvm/lib/ExecutionEngine/RuntimeDyld/BUILD.gn +++ llvm/trunk/utils/gn/secondary/llvm/lib/ExecutionEngine/RuntimeDyld/BUILD.gn @@ -0,0 +1,19 @@ +static_library("RuntimeDyld") { + output_name = "LLVMRuntimeDyld" + deps = [ + "//llvm/include/llvm/Config:config", + "//llvm/lib/MC", + "//llvm/lib/Object", + "//llvm/lib/Support", + ] + sources = [ + "JITSymbol.cpp", + "RTDyldMemoryManager.cpp", + "RuntimeDyld.cpp", + "RuntimeDyldCOFF.cpp", + "RuntimeDyldChecker.cpp", + "RuntimeDyldELF.cpp", + "RuntimeDyldMachO.cpp", + "Targets/RuntimeDyldELFMips.cpp", + ] +} Index: llvm/trunk/utils/gn/secondary/llvm/tools/llvm-rc/BUILD.gn =================================================================== --- llvm/trunk/utils/gn/secondary/llvm/tools/llvm-rc/BUILD.gn +++ llvm/trunk/utils/gn/secondary/llvm/tools/llvm-rc/BUILD.gn @@ -0,0 +1,22 @@ +import("//llvm/utils/TableGen/tablegen.gni") + +tablegen("Opts") { + visibility = [ ":llvm-rc" ] + args = [ "-gen-opt-parser-defs" ] +} + +executable("llvm-rc") { + deps = [ + ":Opts", + "//llvm/lib/Option", + "//llvm/lib/Support", + ] + sources = [ + "ResourceFileWriter.cpp", + "ResourceScriptCppFilter.cpp", + "ResourceScriptParser.cpp", + "ResourceScriptStmt.cpp", + "ResourceScriptToken.cpp", + "llvm-rc.cpp", + ] +} Index: llvm/trunk/utils/gn/secondary/llvm/tools/llvm-rtdyld/BUILD.gn =================================================================== --- llvm/trunk/utils/gn/secondary/llvm/tools/llvm-rtdyld/BUILD.gn +++ llvm/trunk/utils/gn/secondary/llvm/tools/llvm-rtdyld/BUILD.gn @@ -0,0 +1,14 @@ +executable("llvm-rtdyld") { + deps = [ + "//llvm/lib/DebugInfo/DWARF", + "//llvm/lib/ExecutionEngine", + "//llvm/lib/ExecutionEngine/RuntimeDyld", + "//llvm/lib/MC", + "//llvm/lib/Object", + "//llvm/lib/Support", + "//llvm/lib/Target:TargetsToBuild", + ] + sources = [ + "llvm-rtdyld.cpp", + ] +}