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) |
Nico
2017/04/07 15:58:53
why this change? seems independent of the rest of
matthewtff.asm
2017/04/11 12:14:43
We do not pass -DBOOTSTRAP_CHROMIUM_TOOLS to cmake
| |
62 add_subdirectory(${tool}) | 62 # CHROMIUM_TOOLS are separated by comma. To make it iterable cmake list |
63 endforeach(tool) | 63 # replace those with semicolon. |
64 string(REPLACE "," ";" CHROMIUM_TOOLS_LIST ${CHROMIUM_TOOLS}) | |
65 foreach(tool ${CHROMIUM_TOOLS_LIST}) | |
66 add_subdirectory(${tool}) | |
67 endforeach(tool) | |
68 endif(CHROMIUM_TOOLS) | |
OLD | NEW |