From 559592504481b7da75c9155e5fea1aaa894372b4 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 30 Nov 2018 14:49:46 +0000 Subject: [PATCH] [gn build] Add build files for llvm/lib/Bitcode/Reader and llvm/lib/MC/MCParser. Differential Revision: https://reviews.llvm.org/D55087 llvm-svn: 347995 --- llvm/utils/gn/secondary/BUILD.gn | 2 ++ .../llvm/lib/Bitcode/Reader/BUILD.gn | 16 +++++++++++++++ .../secondary/llvm/lib/MC/MCParser/BUILD.gn | 20 +++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 llvm/utils/gn/secondary/llvm/lib/Bitcode/Reader/BUILD.gn create mode 100644 llvm/utils/gn/secondary/llvm/lib/MC/MCParser/BUILD.gn diff --git a/llvm/utils/gn/secondary/BUILD.gn b/llvm/utils/gn/secondary/BUILD.gn index 11e0ec93f085..6fd5876d3d72 100644 --- a/llvm/utils/gn/secondary/BUILD.gn +++ b/llvm/utils/gn/secondary/BUILD.gn @@ -1,6 +1,8 @@ group("default") { deps = [ + "//llvm/lib/Bitcode/Reader", "//llvm/lib/IR", + "//llvm/lib/MC/MCParser", "//llvm/tools/llvm-undname", "//llvm/utils/TableGen:llvm-tblgen", ] diff --git a/llvm/utils/gn/secondary/llvm/lib/Bitcode/Reader/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/Bitcode/Reader/BUILD.gn new file mode 100644 index 000000000000..a7ecdf1f4e63 --- /dev/null +++ b/llvm/utils/gn/secondary/llvm/lib/Bitcode/Reader/BUILD.gn @@ -0,0 +1,16 @@ +static_library("Reader") { + output_name = "LLVMBitReader" + deps = [ + "//llvm/include/llvm/Config:llvm-config", + "//llvm/lib/IR", + "//llvm/lib/Support", + ] + + sources = [ + "BitReader.cpp", + "BitcodeReader.cpp", + "BitstreamReader.cpp", + "MetadataLoader.cpp", + "ValueList.cpp", + ] +} diff --git a/llvm/utils/gn/secondary/llvm/lib/MC/MCParser/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/MC/MCParser/BUILD.gn new file mode 100644 index 000000000000..5c9d23074693 --- /dev/null +++ b/llvm/utils/gn/secondary/llvm/lib/MC/MCParser/BUILD.gn @@ -0,0 +1,20 @@ +static_library("MCParser") { + output_name = "LLVMMCParser" + deps = [ + "//llvm/lib/MC", + "//llvm/lib/Support", + ] + + sources = [ + "AsmLexer.cpp", + "AsmParser.cpp", + "COFFAsmParser.cpp", + "DarwinAsmParser.cpp", + "ELFAsmParser.cpp", + "MCAsmLexer.cpp", + "MCAsmParser.cpp", + "MCAsmParserExtension.cpp", + "MCTargetAsmParser.cpp", + "WasmAsmParser.cpp", + ] +}