24 lines
965 B
CMake
24 lines
965 B
CMake
# Copyright (C) 2018-2023 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
#
|
|
# OpenVINO Core components including frontends, plugins, etc
|
|
#
|
|
macro(ov_cpack_settings)
|
|
# fill a list of components which are part of conda
|
|
set(cpack_components_all ${CPACK_COMPONENTS_ALL})
|
|
unset(CPACK_COMPONENTS_ALL)
|
|
foreach(item IN LISTS cpack_components_all)
|
|
string(TOUPPER ${item} UPPER_COMP)
|
|
# filter out some components, which are not needed to be wrapped to conda-forge | brew | conan | vcpkg
|
|
if(NOT OV_CPACK_COMP_${UPPER_COMP}_EXCLUDE_ALL AND
|
|
# python_package is not needed in case of archives, because components like pyopenvino are used, as well as wheels
|
|
NOT item MATCHES "^${OV_CPACK_COMP_PYTHON_OPENVINO_PACKAGE}_python.*")
|
|
list(APPEND CPACK_COMPONENTS_ALL ${item})
|
|
endif()
|
|
endforeach()
|
|
unset(cpack_components_all)
|
|
list(REMOVE_DUPLICATES CPACK_COMPONENTS_ALL)
|
|
endmacro()
|