mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 03:29:00 +08:00
Add option to not print the list of plugins installed.
This should make it a lot easier to read the test output
This commit is contained in:
parent
a9c67542bf
commit
dd6467303e
@ -9,6 +9,8 @@
|
|||||||
# form of "a;b;c" or "a,b,c". By default all plugins will be installed.
|
# form of "a;b;c" or "a,b,c". By default all plugins will be installed.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
option(PRINT_PLUGIN_LIST "Should the list of plugins that are installed be printed?" ON)
|
||||||
|
|
||||||
# FIXME: Remove the code for CMake <3.12 once we have switched over completely.
|
# FIXME: Remove the code for CMake <3.12 once we have switched over completely.
|
||||||
# FindPython3 is a new module since CMake 3.12. It deprecates FindPythonInterp and FindPythonLibs. The FindPython3
|
# FindPython3 is a new module since CMake 3.12. It deprecates FindPythonInterp and FindPythonLibs. The FindPython3
|
||||||
# module is copied from the CMake repository here so in CMake <3.12 we can still use it.
|
# module is copied from the CMake repository here so in CMake <3.12 we can still use it.
|
||||||
@ -81,7 +83,9 @@ foreach(_plugin_json_path ${_plugin_json_list})
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(_add_plugin)
|
if(_add_plugin)
|
||||||
message(STATUS "[+] PLUGIN TO INSTALL: ${_rel_plugin_dir}")
|
if(${PRINT_PLUGIN_LIST})
|
||||||
|
message(STATUS "[+] PLUGIN TO INSTALL: ${_rel_plugin_dir}")
|
||||||
|
endif()
|
||||||
get_filename_component(_rel_plugin_parent_dir ${_rel_plugin_dir} DIRECTORY)
|
get_filename_component(_rel_plugin_parent_dir ${_rel_plugin_dir} DIRECTORY)
|
||||||
install(DIRECTORY ${_rel_plugin_dir}
|
install(DIRECTORY ${_rel_plugin_dir}
|
||||||
DESTINATION lib${LIB_SUFFIX}/cura/${_rel_plugin_parent_dir}
|
DESTINATION lib${LIB_SUFFIX}/cura/${_rel_plugin_parent_dir}
|
||||||
@ -90,7 +94,9 @@ foreach(_plugin_json_path ${_plugin_json_list})
|
|||||||
)
|
)
|
||||||
list(APPEND _install_plugin_list ${_plugin_dir})
|
list(APPEND _install_plugin_list ${_plugin_dir})
|
||||||
elseif(_is_no_install_plugin)
|
elseif(_is_no_install_plugin)
|
||||||
message(STATUS "[-] PLUGIN TO REMOVE : ${_rel_plugin_dir}")
|
if(${PRINT_PLUGIN_LIST})
|
||||||
|
message(STATUS "[-] PLUGIN TO REMOVE : ${_rel_plugin_dir}")
|
||||||
|
endif()
|
||||||
execute_process(COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/mod_bundled_packages_json.py
|
execute_process(COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/mod_bundled_packages_json.py
|
||||||
-d ${CMAKE_CURRENT_SOURCE_DIR}/resources/bundled_packages
|
-d ${CMAKE_CURRENT_SOURCE_DIR}/resources/bundled_packages
|
||||||
${_plugin_dir_name}
|
${_plugin_dir_name}
|
||||||
|
@ -65,7 +65,8 @@ cmake3 \
|
|||||||
-DCMAKE_PREFIX_PATH="${CURA_BUILD_ENV_PATH}" \
|
-DCMAKE_PREFIX_PATH="${CURA_BUILD_ENV_PATH}" \
|
||||||
-DURANIUM_DIR="${PROJECT_DIR}/Uranium" \
|
-DURANIUM_DIR="${PROJECT_DIR}/Uranium" \
|
||||||
-DBUILD_TESTS=ON \
|
-DBUILD_TESTS=ON \
|
||||||
-DGENERATE_TRANSLATIONS=OFF
|
-DPRINT_PLUGIN_LIST=OFF \
|
||||||
|
-DGENERATE_TRANSLATIONS=OFF \
|
||||||
..
|
..
|
||||||
make
|
make
|
||||||
ctest3 -j4 --output-on-failure -T Test
|
ctest3 -j4 --output-on-failure -T Test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user