--- /dev/null
+import("//llvm/utils/gn/build/libs/edit/enable.gni")
+
+config("edit_config") {
+ visibility = [ ":edit" ]
+ libs = [ "edit" ]
+}
+
+group("edit") {
+ if (llvm_enable_libedit) {
+ public_configs = [ ":edit_config" ]
+ }
+}
import("//llvm/lib/Target/targets.gni")
import("//llvm/triples.gni")
import("//llvm/utils/gn/build/buildflags.gni")
+import("//llvm/utils/gn/build/libs/edit/enable.gni")
import("//llvm/utils/gn/build/libs/pthread/enable.gni")
import("//llvm/utils/gn/build/libs/terminfo/enable.gni")
import("//llvm/utils/gn/build/libs/xar/enable.gni")
"HAVE_CRASHREPORTER_INFO=1",
"HAVE_DECL_ARC4RANDOM=1",
"HAVE_DLADDR=1",
- "HAVE_LIBEDIT=1",
"HAVE_MALLOC_H=",
"HAVE_MACH_MACH_H=1",
"HAVE_MALLOC_MALLOC_H=1",
"HAVE_CRASHREPORTER_INFO=",
"HAVE_DECL_ARC4RANDOM=",
"HAVE_DLADDR=",
- "HAVE_LIBEDIT=",
"HAVE_MACH_MACH_H=",
"HAVE_MALLOC_H=1",
"HAVE_MALLOC_MALLOC_H=",
args += [ "LTDL_SHLIB_EXT=.dll" ]
}
+ if (llvm_enable_libedit) {
+ args += [ "HAVE_LIBEDIT=1" ]
+ } else {
+ args += [ "HAVE_LIBEDIT=" ]
+ }
+
if (llvm_enable_libxar) {
args += [ "HAVE_LIBXAR=1" ]
} else {
--- /dev/null
+static_library("LineEditor") {
+ output_name = "LLVMLineEditor"
+ deps = [
+ "//llvm/include/llvm/Config:config",
+ "//llvm/lib/Support",
+ "//llvm/utils/gn/build/libs/edit",
+ ]
+
+ sources = [
+ "LineEditor.cpp",
+ ]
+}
--- /dev/null
+static_library("Support") {
+ output_name = "LLVMTestingSupport"
+ deps = [
+ "//llvm/lib/Support",
+ "//llvm/utils/unittest:gtest",
+ ]
+ sources = [
+ "Error.cpp",
+ "SupportHelpers.cpp",
+ ]
+ testonly = true
+}
--- /dev/null
+static_library("TextAPI") {
+ output_name = "LLVMTextAPI"
+ deps = [
+ "//llvm/lib/BinaryFormat",
+ "//llvm/lib/Support",
+ ]
+ include_dirs = [ "." ]
+ sources = [
+ "ELF/ELFStub.cpp",
+ "ELF/TBEHandler.cpp",
+ ]
+}