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

Unified Diff: tools/clang/blink_gc_plugin/CMakeLists.txt

Issue 453513004: Roll Clang 214024:216630 (+216684) and switch to CMake (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, fix blink-gc plugin flags, disable -Wundefined-bool-conversion while testing Created 6 years, 4 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
Index: tools/clang/blink_gc_plugin/CMakeLists.txt
diff --git a/tools/clang/blink_gc_plugin/CMakeLists.txt b/tools/clang/blink_gc_plugin/CMakeLists.txt
new file mode 100644
index 0000000000000000000000000000000000000000..b1960ac956544e3544d694210c2b1553430b8153
--- /dev/null
+++ b/tools/clang/blink_gc_plugin/CMakeLists.txt
@@ -0,0 +1,35 @@
+cmake_minimum_required(VERSION 2.8.8)
+project(BlinkGCPlugin)
+
+# This pugin is built using LLVM's build system, not Chromium's.
+# It expects LLVM_SRC_DIR and LLVM_BUILD_DIR to be set.
+# For example:
+#
+# cmake -GNinja -DLLVM_BUILD_DIR=$CHROMIUM_SRC_DIR/third_party/llvm-build \
+# -DLLVM_SRC_DIR=$CHROMIUM_SRC_DIR/third_party/llvm \
+# $CHROMIUM_SRC_DIR/tools/clang/blink_gc_plugin/
+# ninja
+
+list(APPEND CMAKE_MODULE_PATH "${LLVM_BUILD_DIR}/share/llvm/cmake")
+
+include(LLVMConfig)
+include(AddLLVM)
+include(HandleLLVMOptions)
+
+set(LLVM_RUNTIME_OUTPUT_INTDIR "${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin")
+set(LLVM_LIBRARY_OUTPUT_INTDIR "${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib")
+
+include_directories("${LLVM_SRC_DIR}/include"
+ "${LLVM_SRC_DIR}/tools/clang/include"
+ "${LLVM_BUILD_DIR}/include"
+ "${LLVM_BUILD_DIR}/tools/clang/include")
+
+# This line is read by update.sh and other scripts in tools/clang/scripts
+# Note: The spaces are significant.
+set( LIBRARYNAME BlinkGCPlugin_10 )
+
+add_llvm_loadable_module("lib${LIBRARYNAME}"
+ BlinkGCPlugin.cpp
+ Edge.cpp
+ RecordInfo.cpp
+ )

Powered by Google App Engine
This is Rietveld 408576698