| OLD | NEW |
| (Empty) |
| 1 cmake_minimum_required(VERSION 2.8.8) | |
| 2 project(BlinkGCPlugin) | |
| 3 | |
| 4 # This pugin is built using LLVM's build system, not Chromium's. | |
| 5 # It expects LLVM_SRC_DIR and LLVM_BUILD_DIR to be set. | |
| 6 # For example: | |
| 7 # | |
| 8 # cmake -GNinja -DLLVM_BUILD_DIR=$CHROMIUM_SRC_DIR/third_party/llvm-build \ | |
| 9 # -DLLVM_SRC_DIR=$CHROMIUM_SRC_DIR/third_party/llvm \ | |
| 10 # $CHROMIUM_SRC_DIR/tools/clang/blink_gc_plugin/ | |
| 11 # ninja | |
| 12 | |
| 13 list(APPEND CMAKE_MODULE_PATH "${LLVM_BUILD_DIR}/share/llvm/cmake") | |
| 14 | |
| 15 include(LLVMConfig) | |
| 16 include(AddLLVM) | |
| 17 include(HandleLLVMOptions) | |
| 18 | |
| 19 set(LLVM_RUNTIME_OUTPUT_INTDIR "${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin") | |
| 20 set(LLVM_LIBRARY_OUTPUT_INTDIR "${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib") | |
| 21 | |
| 22 include_directories("${LLVM_SRC_DIR}/include" | |
| 23 "${LLVM_SRC_DIR}/tools/clang/include" | |
| 24 "${LLVM_BUILD_DIR}/include" | |
| 25 "${LLVM_BUILD_DIR}/tools/clang/include") | |
| 26 | |
| 27 # This line is read by update.sh and other scripts in tools/clang/scripts | |
| 28 # Note: The spaces are significant. | |
| 29 set(LIBRARYNAME BlinkGCPlugin_10) | |
| 30 | |
| 31 add_llvm_loadable_module("lib${LIBRARYNAME}" | |
| 32 BlinkGCPlugin.cpp | |
| 33 Edge.cpp | |
| 34 RecordInfo.cpp | |
| 35 ) | |
| OLD | NEW |