Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Unified Diff: CMakeLists.txt

Issue 998693003: Subzero: Enable a cmake build. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: CMakeLists.txt
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000000000000000000000000000000000000..8db25d893f05fc35c761a451470c3f9600cc1b83
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,21 @@
+set(LLVM_LINK_COMPONENTS
+ ${LLVM_TARGETS_TO_BUILD}
+ Core
+ IRReader
+ NaClBitReader
+ Support
+ )
+
+file(GLOB pnacl_sz_SRCS "src/*.cpp")
+add_llvm_tool(pnacl-sz ${pnacl_sz_SRCS})
+
+add_definitions(
+ -DALLOW_DUMP=1
+ -DALLOW_LLVM_CL=1
+ -DALLOW_LLVM_IR=1
+ -DALLOW_LLVM_IR_AS_INPUT=1
+ -DALLOW_DISABLE_IR_GEN=1
+ -DALLOW_MINIMAL_BUILD=0
+ )
+
+target_link_libraries(pnacl-sz pthread)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698