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

Side by Side Diff: cmake/modules/AddLLVM.cmake

Issue 1019043002: CMake option to install utils, e.g. FileCheck (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Added LOCALMOD Created 5 years, 9 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
« no previous file with comments | « CMakeLists.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 include(LLVMParseArguments) 1 include(LLVMParseArguments)
2 include(LLVMProcessSources) 2 include(LLVMProcessSources)
3 include(LLVM-Config) 3 include(LLVM-Config)
4 4
5 function(llvm_update_compile_flags name) 5 function(llvm_update_compile_flags name)
6 get_property(sources TARGET ${name} PROPERTY SOURCES) 6 get_property(sources TARGET ${name} PROPERTY SOURCES)
7 if("${sources}" MATCHES "\\.c(;|$)") 7 if("${sources}" MATCHES "\\.c(;|$)")
8 set(update_src_props ON) 8 set(update_src_props ON)
9 endif() 9 endif()
10 10
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 if( LLVM_BUILD_EXAMPLES ) 493 if( LLVM_BUILD_EXAMPLES )
494 install(TARGETS ${name} RUNTIME DESTINATION examples) 494 install(TARGETS ${name} RUNTIME DESTINATION examples)
495 endif() 495 endif()
496 set_target_properties(${name} PROPERTIES FOLDER "Examples") 496 set_target_properties(${name} PROPERTIES FOLDER "Examples")
497 endmacro(add_llvm_example name) 497 endmacro(add_llvm_example name)
498 498
499 499
500 macro(add_llvm_utility name) 500 macro(add_llvm_utility name)
501 add_llvm_executable(${name} ${ARGN}) 501 add_llvm_executable(${name} ${ARGN})
502 set_target_properties(${name} PROPERTIES FOLDER "Utils") 502 set_target_properties(${name} PROPERTIES FOLDER "Utils")
503 # @LOCALMOD-BEGIN
504 if( LLVM_INSTALL_UTILS )
505 install (TARGETS ${name} RUNTIME DESTINATION bin)
506 endif()
507 # @LOCALMOD-END
503 endmacro(add_llvm_utility name) 508 endmacro(add_llvm_utility name)
504 509
505 510
506 macro(add_llvm_target target_name) 511 macro(add_llvm_target target_name)
507 include_directories(BEFORE 512 include_directories(BEFORE
508 ${CMAKE_CURRENT_BINARY_DIR} 513 ${CMAKE_CURRENT_BINARY_DIR}
509 ${CMAKE_CURRENT_SOURCE_DIR}) 514 ${CMAKE_CURRENT_SOURCE_DIR})
510 add_llvm_library(LLVM${target_name} ${ARGN}) 515 add_llvm_library(LLVM${target_name} ${ARGN})
511 set( CURRENT_LLVM_TARGET LLVM${target_name} ) 516 set( CURRENT_LLVM_TARGET LLVM${target_name} )
512 endmacro(add_llvm_target) 517 endmacro(add_llvm_target)
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 endif() 736 endif()
732 737
733 # Produce a specific suffixed check rule. 738 # Produce a specific suffixed check rule.
734 add_lit_target(${target} ${comment} 739 add_lit_target(${target} ${comment}
735 ${ARG_DEFAULT_ARGS} 740 ${ARG_DEFAULT_ARGS}
736 PARAMS ${ARG_PARAMS} 741 PARAMS ${ARG_PARAMS}
737 DEPENDS ${ARG_DEPENDS} 742 DEPENDS ${ARG_DEPENDS}
738 ARGS ${ARG_ARGS} 743 ARGS ${ARG_ARGS}
739 ) 744 )
740 endfunction() 745 endfunction()
OLDNEW
« no previous file with comments | « CMakeLists.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698