mirror of
git://code.qt.io/qt/qt5.git
synced 2026-01-06 15:06:52 +08:00
Compare commits
2 Commits
5da5123c58
...
ca679e98de
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca679e98de | ||
|
|
30ee3ee4b2 |
@@ -421,3 +421,19 @@ function(qt_ir_get_option_as_cmake_flag_option cli_name cmake_option_name out_va
|
|||||||
endif()
|
endif()
|
||||||
set(${out_var} "${cmake_option}" PARENT_SCOPE)
|
set(${out_var} "${cmake_option}" PARENT_SCOPE)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
# Get the value of a command line option as existing absolute path.
|
||||||
|
# Yield error if the path does not exist.
|
||||||
|
# Convert to absolute path if necessary.
|
||||||
|
function(qt_ir_get_option_as_existing_absolute_path name value)
|
||||||
|
qt_ir_get_option_value("${name}" path)
|
||||||
|
if(NOT "${path}" STREQUAL "")
|
||||||
|
if(NOT EXISTS "${path}")
|
||||||
|
qt_ir_add_error("The path '${path}' passed with -${name} does not exist.")
|
||||||
|
endif()
|
||||||
|
if(NOT IS_ABSOLUTE "${path}")
|
||||||
|
get_filename_component(path "${path}" ABSOLUTE)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
set("${value}" "${path}" PARENT_SCOPE)
|
||||||
|
endfunction()
|
||||||
|
|||||||
@@ -295,7 +295,7 @@ function(qt_ir_run_after_args_parsed top_level_src_path out_var_exit_reason)
|
|||||||
"${working_directory}")
|
"${working_directory}")
|
||||||
|
|
||||||
# Get some additional options to pass down.
|
# Get some additional options to pass down.
|
||||||
qt_ir_get_option_value(alternates alternates)
|
qt_ir_get_option_as_existing_absolute_path(alternates alternates)
|
||||||
qt_ir_get_option_as_cmake_flag_option(branch "CHECKOUT_BRANCH" checkout_branch_option)
|
qt_ir_get_option_as_cmake_flag_option(branch "CHECKOUT_BRANCH" checkout_branch_option)
|
||||||
|
|
||||||
# The prefix for the cmake-style 'dictionary' that will be used by various functions.
|
# The prefix for the cmake-style 'dictionary' that will be used by various functions.
|
||||||
|
|||||||
Reference in New Issue
Block a user