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

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: 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 | « no previous file | 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 if( LLVM_INSTALL_UTILS )
Derek Schuff 2015/03/19 00:15:13 do these variables have to get defaults anywhere?
Mircea Trofin 2015/03/19 00:29:46 Done. I added the documentation for the option, to
504 install (TARGETS ${name} RUNTIME DESTINATION bin)
505 endif()
503 endmacro(add_llvm_utility name) 506 endmacro(add_llvm_utility name)
504 507
505 508
506 macro(add_llvm_target target_name) 509 macro(add_llvm_target target_name)
507 include_directories(BEFORE 510 include_directories(BEFORE
508 ${CMAKE_CURRENT_BINARY_DIR} 511 ${CMAKE_CURRENT_BINARY_DIR}
509 ${CMAKE_CURRENT_SOURCE_DIR}) 512 ${CMAKE_CURRENT_SOURCE_DIR})
510 add_llvm_library(LLVM${target_name} ${ARGN}) 513 add_llvm_library(LLVM${target_name} ${ARGN})
511 set( CURRENT_LLVM_TARGET LLVM${target_name} ) 514 set( CURRENT_LLVM_TARGET LLVM${target_name} )
512 endmacro(add_llvm_target) 515 endmacro(add_llvm_target)
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 endif() 734 endif()
732 735
733 # Produce a specific suffixed check rule. 736 # Produce a specific suffixed check rule.
734 add_lit_target(${target} ${comment} 737 add_lit_target(${target} ${comment}
735 ${ARG_DEFAULT_ARGS} 738 ${ARG_DEFAULT_ARGS}
736 PARAMS ${ARG_PARAMS} 739 PARAMS ${ARG_PARAMS}
737 DEPENDS ${ARG_DEPENDS} 740 DEPENDS ${ARG_DEPENDS}
738 ARGS ${ARG_ARGS} 741 ARGS ${ARG_ARGS}
739 ) 742 )
740 endfunction() 743 endfunction()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698