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

Side by Side Diff: tools/clang/CMakeLists.txt

Issue 1639663003: Clean up rewrite_to_chrome_style naming logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More comprehensive fixes Created 4 years, 11 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 unified diff | Download patch
OLDNEW
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
11 11
12 # Use rpath to find the bundled standard C++ library. 12 # Use rpath to find the bundled standard C++ library.
13 set(CMAKE_BUILD_WITH_INSTALL_RPATH ON) 13 set(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
14 if (APPLE) 14 if (APPLE)
15 set(CMAKE_INSTALL_NAME_DIR "@rpath") 15 set(CMAKE_INSTALL_NAME_DIR "@rpath")
16 set(CMAKE_INSTALL_RPATH "@executable_path/../lib") 16 set(CMAKE_INSTALL_RPATH "@executable_path/../lib")
17 else(UNIX) 17 else(UNIX)
18 set(CMAKE_INSTALL_RPATH "\$ORIGIN/../lib") 18 set(CMAKE_INSTALL_RPATH "\$ORIGIN/../lib")
19 endif() 19 endif()
20 20
21 include_directories("${CMAKE_SOURCE_DIR}/include" 21 include_directories("${CMAKE_SOURCE_DIR}/include"
22 "${CMAKE_SOURCE_DIR}/tools/clang/include" 22 "${CMAKE_SOURCE_DIR}/tools/clang/include"
23 "${CMAKE_BINARY_DIR}/include" 23 "${CMAKE_BINARY_DIR}/include"
24 "${CMAKE_BINARY_DIR}/tools/clang/include") 24 "${CMAKE_BINARY_DIR}/tools/clang/include"
25 "${CMAKE_CURRENT_SOURCE_DIR}/../..")
25 26
26 link_directories("${CMAKE_SOURCE_DIR}/lib" 27 link_directories("${CMAKE_SOURCE_DIR}/lib"
27 "${CMAKE_SOURCE_DIR}/tools/clang/lib" 28 "${CMAKE_SOURCE_DIR}/tools/clang/lib"
28 "${CMAKE_BINARY_DIR}/lib" 29 "${CMAKE_BINARY_DIR}/lib"
29 "${CMAKE_BINARY_DIR}/tools/clang/lib") 30 "${CMAKE_BINARY_DIR}/tools/clang/lib")
30 31
31 # cr_add_test( 32 # cr_add_test(
32 # name 33 # name
33 # testprog 34 # testprog
34 # arguments... 35 # arguments...
(...skipping 11 matching lines...) Expand all
46 endfunction(cr_install) 47 endfunction(cr_install)
47 48
48 # Custom install target, so the chrome tools can be installed without installing 49 # Custom install target, so the chrome tools can be installed without installing
49 # all the other LLVM targets. 50 # all the other LLVM targets.
50 add_custom_target(cr-install COMMAND 51 add_custom_target(cr-install COMMAND
51 ${CMAKE_COMMAND} -D COMPONENT=chrome-tools -P cmake_install.cmake) 52 ${CMAKE_COMMAND} -D COMPONENT=chrome-tools -P cmake_install.cmake)
52 53
53 foreach(tool ${CHROMIUM_TOOLS}) 54 foreach(tool ${CHROMIUM_TOOLS})
54 add_subdirectory(${tool}) 55 add_subdirectory(${tool})
55 endforeach(tool) 56 endforeach(tool)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698