aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/CMakeLists.txt1
-rw-r--r--lib/Wrap/CMakeLists.txt6
-rw-r--r--tools/CMakeLists.txt1
-rw-r--r--tools/bc-wrap/CMakeLists.txt5
-rw-r--r--tools/bc-wrap/LLVMBuild.txt4
5 files changed, 15 insertions, 2 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index d1ea027338..7b2adec6e8 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -14,3 +14,4 @@ add_subdirectory(ExecutionEngine)
add_subdirectory(Target)
add_subdirectory(AsmParser)
add_subdirectory(Archive)
+add_subdirectory(Wrap) \ No newline at end of file
diff --git a/lib/Wrap/CMakeLists.txt b/lib/Wrap/CMakeLists.txt
new file mode 100644
index 0000000000..da44a6bb56
--- /dev/null
+++ b/lib/Wrap/CMakeLists.txt
@@ -0,0 +1,6 @@
+add_llvm_library(LLVMWrap
+ bitcode_wrapperer.cpp
+ file_wrapper_input.cpp
+ file_wrapper_output.cpp
+ wrapper_output.cpp
+) \ No newline at end of file
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
index 773ea0350a..dd30c77a5d 100644
--- a/tools/CMakeLists.txt
+++ b/tools/CMakeLists.txt
@@ -44,6 +44,7 @@ add_subdirectory(llvm-mcmarkup)
add_subdirectory(llvm-symbolizer)
add_subdirectory(pnacl-abicheck)
add_subdirectory(pnacl-freeze)
+add_subdirectory(bc-wrap)
if( NOT WIN32 )
add_subdirectory(lto)
diff --git a/tools/bc-wrap/CMakeLists.txt b/tools/bc-wrap/CMakeLists.txt
new file mode 100644
index 0000000000..7d8ce4fc11
--- /dev/null
+++ b/tools/bc-wrap/CMakeLists.txt
@@ -0,0 +1,5 @@
+set(LLVM_LINK_COMPONENTS wrap support )
+
+add_llvm_tool(bc-wrap
+ bc_wrap.cpp
+ ) \ No newline at end of file
diff --git a/tools/bc-wrap/LLVMBuild.txt b/tools/bc-wrap/LLVMBuild.txt
index b515fc04b9..a91f77625e 100644
--- a/tools/bc-wrap/LLVMBuild.txt
+++ b/tools/bc-wrap/LLVMBuild.txt
@@ -1,4 +1,4 @@
-;===- ./tools/llc/LLVMBuild.txt --------------------------------*- Conf -*--===;
+;===- ./tools/bc-wrap/LLVMBuild.txt ----------------------------*- Conf -*--===;
;
; The LLVM Compiler Infrastructure
;
@@ -19,4 +19,4 @@
type = Tool
name = bc-wrap
parent = Tools
-required_libraries = Wrap all-targets
+required_libraries = Wrap Support