OLD | NEW |
1 cmake_minimum_required(VERSION 2.8.8) | 1 cmake_minimum_required(VERSION 2.8.8) |
2 project(ChromeExtras) | 2 project(ChromeExtras) |
3 enable_testing() | 3 enable_testing() |
4 | 4 |
5 list(APPEND CMAKE_MODULE_PATH "${LLVM_BUILD_DIR}/share/llvm/cmake") | 5 list(APPEND CMAKE_MODULE_PATH "${LLVM_BUILD_DIR}/share/llvm/cmake") |
6 | 6 |
7 # These tools are built using LLVM's build system, not Chromium's. | 7 # These tools are built using LLVM's build system, not Chromium's. |
8 # The build script generates a shim CMakeLists.txt in the LLVM source tree, | 8 # The build script generates a shim CMakeLists.txt in the LLVM source tree, |
9 # which simply forwards to this file. | 9 # which simply forwards to this file. |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 function(cr_install) | 52 function(cr_install) |
53 install(${ARGN} COMPONENT chrome-tools OPTIONAL) | 53 install(${ARGN} COMPONENT chrome-tools OPTIONAL) |
54 endfunction(cr_install) | 54 endfunction(cr_install) |
55 | 55 |
56 # Custom install target, so the chrome tools can be installed without installing | 56 # Custom install target, so the chrome tools can be installed without installing |
57 # all the other LLVM targets. | 57 # all the other LLVM targets. |
58 add_custom_target(cr-install COMMAND | 58 add_custom_target(cr-install COMMAND |
59 ${CMAKE_COMMAND} -D COMPONENT=chrome-tools -P cmake_install.cmake) | 59 ${CMAKE_COMMAND} -D COMPONENT=chrome-tools -P cmake_install.cmake) |
60 | 60 |
61 foreach(tool ${CHROMIUM_TOOLS}) | 61 if (CHROMIUM_TOOLS) |
62 add_subdirectory(${tool}) | 62 # Clang bootstraper has hard times with semicolon separated values, so |
63 endforeach(tool) | 63 # CHROMIUM_TOOLS are separated by comma. To make it iterable cmake list |
| 64 # replace those with semicolon. |
| 65 string(REPLACE "," ";" CHROMIUM_TOOLS_LIST ${CHROMIUM_TOOLS}) |
| 66 foreach(tool ${CHROMIUM_TOOLS_LIST}) |
| 67 add_subdirectory(${tool}) |
| 68 endforeach(tool) |
| 69 endif(CHROMIUM_TOOLS) |
OLD | NEW |