prepare.py: add argument to not print cmake invokation command line

parent 400ffe4f
...@@ -221,7 +221,7 @@ macro(linphone_builder_add_builder_to_target TARGETNAME BUILDER) ...@@ -221,7 +221,7 @@ macro(linphone_builder_add_builder_to_target TARGETNAME BUILDER)
if(_build_from_external_source_path) if(_build_from_external_source_path)
list(FIND LINPHONE_BUILDER_EXTERNAL_SOURCE_PATH_BUILDERS ${BUILDER} _already_included) list(FIND LINPHONE_BUILDER_EXTERNAL_SOURCE_PATH_BUILDERS ${BUILDER} _already_included)
if(_already_included EQUAL -1) if(_already_included EQUAL -1)
message(" external source path builder ${BUILDER}: ${_source_dir}") # message(" external source path builder ${BUILDER}: ${_source_dir}")
set(EP_${BUILDER}_SOURCE_DIR "${_source_dir}") set(EP_${BUILDER}_SOURCE_DIR "${_source_dir}")
list(APPEND LINPHONE_BUILDER_EXTERNAL_SOURCE_PATH_BUILDERS ${BUILDER}) list(APPEND LINPHONE_BUILDER_EXTERNAL_SOURCE_PATH_BUILDERS ${BUILDER})
endif() endif()
......
...@@ -56,7 +56,7 @@ class Target: ...@@ -56,7 +56,7 @@ class Target:
output_dir = output_dir.replace('\\', '/') output_dir = output_dir.replace('\\', '/')
return output_dir return output_dir
def cmake_command(self, build_type, latest, list_cmake_variables, additional_args): def cmake_command(self, build_type, latest, list_cmake_variables, additional_args, verbose=True):
current_path = os.path.dirname(os.path.realpath(__file__)) current_path = os.path.dirname(os.path.realpath(__file__))
cmd = ['cmake', current_path] cmd = ['cmake', current_path]
if self.generator is not None: if self.generator is not None:
...@@ -84,6 +84,7 @@ class Target: ...@@ -84,6 +84,7 @@ class Target:
cmd_str += ' \"' + w + '\"' cmd_str += ' \"' + w + '\"'
else: else:
cmd_str += ' ' + w cmd_str += ' ' + w
if verbose:
print(cmd_str) print(cmd_str)
return cmd return cmd
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment