openvino/cmake/developer_package/IEDevScriptsConfig.cmake

295 lines
8.5 KiB
CMake
Raw Normal View History

# Copyright (C) 2018-2022 Intel Corporation
2019-08-09 11:02:42 -05:00
# SPDX-License-Identifier: Apache-2.0
#
cmake_minimum_required(VERSION 3.13)
if(NOT DEFINED IEDevScripts_DIR)
message(FATAL_ERROR "IEDevScripts_DIR is not defined")
endif()
set(OLD_CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH})
set(CMAKE_MODULE_PATH "${IEDevScripts_DIR}")
function(set_ci_build_number)
set(repo_root "${CMAKE_SOURCE_DIR}")
include(version)
foreach(var CI_BUILD_NUMBER OpenVINO_VERSION OpenVINO_SOVERSION OpenVINO_VERSION_SUFFIX OpenVINO_VERSION_BUILD
OpenVINO_VERSION_MAJOR OpenVINO_VERSION_MINOR OpenVINO_VERSION_PATCH)
Inference engine versioning (#5562) * Exclude xbyak from install * Added automatically generated InferenceEngineConfig.cmake * Reverted a version back * Fixed issues with target aliases * Make TBB dependency private * Made ie_parallel.cmake self-sufficient * Don't expose ie_paralle.cmake to end users * Fixed compilation with TBB * Fixes for TBB * Fixed vpu_graph_transformer compilation * Fixed tests compilation * Added install of ie_parallel.cmake * Switched ENABLE_ALTERNATIVE_TEMP to OFF. Fixed COMPONENTS for TBB * Fixed file name in install rules * Added find_dependency for TBB in ie_parallel.cmake * WA for cmake bug with PACKAGE_PREFIX_DIR * Fixed no-deprecation to fix speech-library build * Reverted version from 2.1.0 to 2.1 * Revert "Reverted version from 2.1.0 to 2.1" This reverts commit 7cb5d1563ce06ed94f609077e4b9fcb9da223b04. * Added versions to cmake * Added versions to ie_version.hpp * Returned custom version file back * Added InferenceEngineConfig-version.cmake to share as well * Disabled one more GPU test * Added one more WA for CI * WA for CI issue for C API * Added InferenceEngineConfig-version.cmake to share as well * Added verison parsing from ie_version.hpp * Revert "[CPU] Add Roll support (#5112)" This reverts commit 5d8f209df6a47edc3722ed2e4ea55ce3fac3f5b2. * Revert "[CPU] windows_Interpolate_fused-FQ_nearest-mode_nspc-layout_fix (#5317)" This reverts commit 0808975a379bc2d7aa497af501203f38a5c78e8f. * Revert "[INT8][BF16] INT8 + BF16 feature was enabled (#5059)" This reverts commit 7d2ec02d65c5326dbd54b0a8a322970e32884ae3. * Support for components * No version for IEDevScripts package * Removed IE_VS_VER_HAS_VERSION from vs_version.rc.in * Added compatibility for 2.x old versioning
2021-05-20 02:21:44 -05:00
if(NOT DEFINED ${var})
message(FATAL_ERROR "${var} version component is not defined")
endif()
set(${var} "${${var}}" PARENT_SCOPE)
endforeach()
endfunction()
include(features)
include(message)
set_ci_build_number()
#
# Detect target
#
include(target_flags)
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" ARCH_FOLDER)
if(X86_64)
set(ARCH_FOLDER intel64)
elseif(X86)
set(ARCH_FOLDER ia32)
elseif(MSVC AND ARM)
set(ARCH_FOLDER arm)
elseif((MSVC OR APPLE) AND AARCH64)
set(ARCH_FOLDER arm64)
elseif(UNIVERSAL2)
set(ARCH_FOLDER universal2)
endif()
2020-04-13 13:17:23 -05:00
#
# Prepare temporary folder
2020-04-13 13:17:23 -05:00
#
2020-02-11 13:48:49 -06:00
2020-04-13 13:17:23 -05:00
function(set_temp_directory temp_variable source_tree_dir)
if(DEFINED OV_TEMP)
message(STATUS "OV_TEMP cmake variable is set : ${OV_TEMP}")
file(TO_CMAKE_PATH ${OV_TEMP} temp)
elseif (DEFINED ENV{DL_SDK_TEMP} AND NOT $ENV{DL_SDK_TEMP} STREQUAL "")
2020-04-13 13:17:23 -05:00
message(STATUS "DL_SDK_TEMP environment is set : $ENV{DL_SDK_TEMP}")
file(TO_CMAKE_PATH $ENV{DL_SDK_TEMP} temp)
2020-04-13 13:17:23 -05:00
else ()
set(temp ${source_tree_dir}/temp)
endif()
set("${temp_variable}" "${temp}" CACHE PATH "Path to temp directory")
if(ALTERNATIVE_PATH)
set(ALTERNATIVE_PATH "${ALTERNATIVE_PATH}" PARENT_SCOPE)
endif()
endfunction()
#
# For cross-compilation
#
# Search packages for the host system instead of packages for the target system
# in case of cross compilation these macros should be defined by the toolchain file
if(NOT COMMAND find_host_package)
macro(find_host_package)
find_package(${ARGN})
endmacro()
endif()
if(NOT COMMAND find_host_library)
macro(find_host_library)
find_library(${ARGN})
endmacro()
endif()
if(NOT COMMAND find_host_program)
macro(find_host_program)
find_program(${ARGN})
endmacro()
endif()
#
# Common scripts
#
2020-04-13 13:17:23 -05:00
include(coverage/coverage)
include(shellcheck/shellcheck)
2020-04-13 13:17:23 -05:00
2019-08-09 11:02:42 -05:00
# printing debug messages
include(debug)
if(OS_FOLDER)
message ("**** OS FOLDER IS: [${OS_FOLDER}]")
if(OS_FOLDER STREQUAL "ON")
message ("**** USING OS FOLDER: [${CMAKE_SYSTEM_NAME}]")
set(BIN_FOLDER "bin/${CMAKE_SYSTEM_NAME}/${ARCH_FOLDER}")
else()
set(BIN_FOLDER "bin/${OS_FOLDER}/${ARCH_FOLDER}")
endif()
2019-08-09 11:02:42 -05:00
else()
set(BIN_FOLDER "bin/${ARCH_FOLDER}")
endif()
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "CMake build type")
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Release;Debug;RelWithDebInfo;MinSizeRel")
if(CMAKE_GENERATOR MATCHES "^Ninja Multi-Config$")
set(CMAKE_DEFAULT_BUILD_TYPE "Release" CACHE STRING "CMake default build type")
2019-08-09 11:02:42 -05:00
endif()
if(USE_BUILD_TYPE_SUBFOLDER)
set(BIN_FOLDER "${BIN_FOLDER}/${CMAKE_BUILD_TYPE}")
endif()
2019-08-09 11:02:42 -05:00
# allow to override default OUTPUT_ROOT root
if(NOT DEFINED OUTPUT_ROOT)
if(NOT DEFINED OpenVINO_SOURCE_DIR)
message(FATAL_ERROR "OpenVINO_SOURCE_DIR is not defined")
endif()
set(OUTPUT_ROOT ${OpenVINO_SOURCE_DIR})
endif()
2019-08-09 11:02:42 -05:00
# Enable postfixes for Debug/Release builds
set(IE_DEBUG_POSTFIX_WIN "d")
set(IE_RELEASE_POSTFIX_WIN "")
set(IE_DEBUG_POSTFIX_LIN "")
set(IE_RELEASE_POSTFIX_LIN "")
set(IE_DEBUG_POSTFIX_MAC "d")
2019-08-09 11:02:42 -05:00
set(IE_RELEASE_POSTFIX_MAC "")
if(WIN32)
set(IE_DEBUG_POSTFIX ${IE_DEBUG_POSTFIX_WIN})
set(IE_RELEASE_POSTFIX ${IE_RELEASE_POSTFIX_WIN})
elseif(APPLE)
set(IE_DEBUG_POSTFIX ${IE_DEBUG_POSTFIX_MAC})
set(IE_RELEASE_POSTFIX ${IE_RELEASE_POSTFIX_MAC})
else()
set(IE_DEBUG_POSTFIX ${IE_DEBUG_POSTFIX_LIN})
set(IE_RELEASE_POSTFIX ${IE_RELEASE_POSTFIX_LIN})
endif()
set(CMAKE_DEBUG_POSTFIX ${IE_DEBUG_POSTFIX})
set(CMAKE_RELEASE_POSTFIX ${IE_RELEASE_POSTFIX})
# Support CMake multi-configuration for Visual Studio / Ninja or Xcode build
if (OV_GENERATOR_MULTI_CONFIG)
2019-08-09 11:02:42 -05:00
set(IE_BUILD_POSTFIX $<$<CONFIG:Debug>:${IE_DEBUG_POSTFIX}>$<$<CONFIG:Release>:${IE_RELEASE_POSTFIX}>)
else ()
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
2019-08-09 11:02:42 -05:00
set(IE_BUILD_POSTFIX ${IE_DEBUG_POSTFIX})
else()
set(IE_BUILD_POSTFIX ${IE_RELEASE_POSTFIX})
endif()
endif()
add_definitions(-DIE_BUILD_POSTFIX=\"${IE_BUILD_POSTFIX}\")
macro(ov_set_if_not_defined var value)
if(NOT DEFINED ${var})
set(${var} ${value})
endif()
endmacro()
ov_set_if_not_defined(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${OUTPUT_ROOT}/${BIN_FOLDER})
ov_set_if_not_defined(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${OUTPUT_ROOT}/${BIN_FOLDER})
ov_set_if_not_defined(CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY ${OUTPUT_ROOT}/${BIN_FOLDER})
ov_set_if_not_defined(CMAKE_PDB_OUTPUT_DIRECTORY ${OUTPUT_ROOT}/${BIN_FOLDER})
ov_set_if_not_defined(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${OUTPUT_ROOT}/${BIN_FOLDER})
2019-08-09 11:02:42 -05:00
2022-10-12 03:16:13 -05:00
if(CPACK_GENERATOR MATCHES "^(DEB|RPM)$")
Debian packages tests on Azure (#12469) * Squashed commit of the following: commit 036a32290ed795326d51dd41d83b891248b0ac05 Merge: db41a71ea9 ee0b67e605 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Aug 9 04:33:54 2022 +0800 Merge remote-tracking branch 'origin/debian-packages-azure' into debian-on-azure commit ee0b67e60555a52a229e7e4553f248db0ef389b9 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Jul 18 03:31:46 2022 +0800 test commit e357eb1428add322f3e6aa8ac1129425bbb376d0 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Thu Jul 7 02:58:22 2022 +0800 Test commit 4635acc4979f3001143df39df9250987f350c6c9 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Jul 17 22:10:52 2022 +0800 Azure commit b1fff55143f49603e269ecb7988e63b2989efd44 Merge: 806ecaefa5 d67d4ce736 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Jul 17 21:28:49 2022 +0800 Merge branch 'debian-packages' into debian-packages-azure commit d67d4ce736651b76f581e2e847995dc92a2dd0cb Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Jul 17 21:28:30 2022 +0800 Removed commented code commit 806ecaefa5cea79686062e447d5ff3653ef17e2e Merge: e328c9fc07 4413f0c4a8 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Jul 17 21:24:40 2022 +0800 Merge branch 'debian-packages' into debian-packages-azure commit 4413f0c4a807754aeac0dbc1b261400d6e779b98 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Jul 17 21:24:22 2022 +0800 Fixed python; need to update component name in product config commit e328c9fc07ed191b18e9ad57b38fecd5139fd131 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Jul 17 21:23:51 2022 +0800 Updated .ci commit cb59bc9563fec7f1691fa75514c2e1d33f8d6ac3 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Jul 17 15:33:21 2022 +0800 Updates commit d733e7aeb5d1a223f8b310b36e2ced26cd543cca Merge: 096bdcc9e4 e31018844d Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Jul 17 15:31:26 2022 +0800 Merge branch 'debian-packages' into debian-packages-azure commit e31018844ddfbbdcf6936e574f3ce38927b1f88d Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Jul 17 15:31:08 2022 +0800 Some updates commit b079a9e3a55e53c8c5dd90a0733adad16d0c2890 Merge: b0f15a8513 6514c213c3 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Jul 17 15:06:59 2022 +0800 Merge remote-tracking branch 'upstream/master' into debian-packages commit 096bdcc9e4430cb72ac35a5e53a593dc78bff89d Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Jul 17 02:59:56 2022 +0800 CI pipeline with debian commit 5b1c29a1a3d86b0167cd47c6f80db2a3c054e47b Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Jul 17 02:12:15 2022 +0800 Test comit commit b0f15a85130fc815efe5694387bd0c58840ea459 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sat Jul 16 18:56:58 2022 +0800 Fixde tests on Windows commit 16dc4d8bc04f12388fca435287aa0de9090232d8 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sat Jul 16 15:46:15 2022 +0800 Try to fix GNA commit 9801e52322622224a618dbb0f03a86ac9946c1b4 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sat Jul 16 14:40:21 2022 +0800 Update TBB install rules commit 279f8a8a72a20e92bf877a947b4b4bbe176d0c3d Merge: 9bf178fce0 09f2b5062b Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sat Jul 16 14:30:15 2022 +0800 Merge remote-tracking branch 'upstream/master' into debian-packages commit 9bf178fce069f17dd49ac15a2ce5007202dcd9dd Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Jul 15 21:09:00 2022 +0800 Fix for debian commit 7afa431f05d6d19e788ca04944c115e9041a29f8 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Jul 15 20:16:09 2022 +0800 Revert cmake scripts location commit 9ead76efce92eb08d988165dafece7538f603216 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Jul 15 19:31:08 2022 +0800 Try to fix TBB finding commit 6f0da74e2a4649c950f4ca7a773d62bac4879d81 Merge: be9e25c6f7 e8310f7e0b Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Jul 15 19:14:50 2022 +0800 Merge remote-tracking branch 'upstream/master' into debian-packages commit be9e25c6f700c6c5a94444a2bb29a27f8a3af690 Merge: c203963548 35a31a329d Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Thu Jul 14 22:44:45 2022 +0800 Merge remote-tracking branch 'upstream/master' into debian-packages commit c2039635488e5b80b9c30d8eec9c1af226076588 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Apr 5 22:29:34 2022 +0300 Small fixes after self-revew commit e2f1595c2178f3d12e84c3af0a1675e9f744dea9 Merge: 3bae350d1c c2703c81f6 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Apr 5 22:21:41 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit 3bae350d1c46b65fa9ec8531c962365a3cfe3f99 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Apr 5 22:17:17 2022 +0300 Split debian file on common tools and repo specific stuff commit 8a5bb7fe041855ad65813394f58126cf36482bb9 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Apr 5 20:41:45 2022 +0300 Revert TMP WAs commit be78da4a88f7d9868f08f4b04334afe99e8dde6a Merge: d0da7056d0 86495ceb0f Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Apr 5 13:44:49 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit d0da7056d010dffed5a19c2686b77ac4dae4f2c2 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Apr 3 12:11:33 2022 +0300 Improvements commit 69bafd35192c1fb943633678e3826ffc6a6d100f Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Apr 3 12:02:25 2022 +0300 Enabled nlohmann_json from system commit bdbc7804aff8455a3231c598ff88c7e1839463fb Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Apr 3 11:46:19 2022 +0300 Use nlohmann_jsonConfig from system commit 0f2e2bbdcb7e15e45bcdc92d628b175f0c261d4f Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Apr 3 11:13:40 2022 +0300 Tried to use dependencies on system commit 88415fc13375e12d95adbdb63ceb819989729ef8 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sat Apr 2 19:28:48 2022 +0300 Try to improve gflags: part 2 commit b8fafcb67017b52899317ebcac57170d83b192b5 Merge: 56dad4d12a 29fb8c79b1 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sat Apr 2 19:23:19 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit 56dad4d12a77b1a5166c95f2eeed756a74002948 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sat Apr 2 19:23:15 2022 +0300 Try to improve gflags commit 81aa7ccc38ebdc4fc690c1fad6a7922ccfdb394e Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sat Apr 2 18:08:03 2022 +0300 Skip TBB component commit 944632604055aa39fd1e5657cbbbb71f29a61a04 Merge: 610729c716 4fcc18c00e Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sat Apr 2 11:13:14 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit 610729c71646a1756bae8193d93cb4dbc1382718 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Apr 1 19:36:10 2022 +0300 fixed TBB commit 1930daa5807c91c0b4849de6d67c2704e12af7fb Merge: fc37de4382 2388f3b976 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Apr 1 19:04:19 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit fc37de438278105909628460d92f7a2e7239bd38 Merge: c2ea71e45d d3060d4bcc Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Thu Mar 31 21:08:44 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit c2ea71e45d2cc8e46b3ee81e61a30dbba39d9868 Merge: aeebfeba92 9fa5150d71 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Wed Mar 30 13:42:44 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit aeebfeba92b4a711392fa1d2f49e9bfeca739e8c Merge: e65d2e8097 30ec7366bb Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Mar 28 20:06:38 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit e65d2e80971f70beaa72229d9b3a260b9adb1ef5 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sat Mar 26 13:55:52 2022 +0300 Reverted OV_CPACK_COMPILER_IS_CLANG commit 8cf4d15d4d93650b82de64757497125c4902e59b Merge: 2639adb686 aded1a2c70 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sat Mar 26 13:53:40 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit 2639adb68639193f1ff78a4706bd5d773a4bdbc8 Merge: cebdf3f92a a2705b1fed Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Mar 25 15:18:48 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit cebdf3f92a7fd8ad0be4dd416de2f9c39034966f Merge: 7ded4663d0 e3098ece7e Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Mar 18 18:08:10 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit 7ded4663d0487abd575a0a9e8fe3fe63a51f384b Merge: ab92bd6c13 6b22d0d109 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Feb 18 19:51:47 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit ab92bd6c1363290617729e11e8a445a2989a3f3a Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Feb 18 19:48:07 2022 +0300 added versions via - commit 1f4f71a4986155681546a31d1338b89a1cee3c76 Merge: f3825b8d9d 07f0966e62 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Feb 18 19:29:31 2022 +0300 Merge branch 'tf-brick-3' into debian-packages commit f3825b8d9d0af2bdb6640287c3236484bdd2f099 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Feb 18 19:05:20 2022 +0300 Used standard dir for OV_CPACK_TOOLSDIR commit 466c5c055c8ccaa9944057754c03dbba1aebe160 Merge: 6d57fc75a3 d2177cf177 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Feb 18 18:47:36 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit 07f0966e621b14c69af3e203b37917f209779851 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Feb 18 15:02:29 2022 +0300 Revert "repair TF FE tests after build (#10432)" This reverts commit 306b7611d9ec8f9efdf7a143eb40bb8a3e184f06. commit 6d57fc75a3561a6f9b2264f2c160ae3191ddf9a4 Merge: 697b0190e3 61f657795c Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Feb 18 14:30:26 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit 697b0190e3d71dc18d4d85597fcd2eeb07630c5e Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Wed Feb 16 20:00:45 2022 +0300 Fixed package name commit 8bd9368f6ecbc9178576d3ec516f804f16ac44a4 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Wed Feb 16 19:37:55 2022 +0300 Tuned locations commit 61f09a2f3eb453554818e8f758458b32d4a7ac33 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Wed Feb 16 19:24:42 2022 +0300 Fixed cmake stage commit 4519f0fc0653830d2b262c35001fc593de98c9be Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Wed Feb 16 19:07:41 2022 +0300 Split packaging into common and debian part commit a6b3259e384da6c30c30b77d5b8f4cf3f7fea3b6 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Wed Feb 16 18:27:22 2022 +0300 Renaming commit 694581c317c4aafd49813049a289dc3d02c5fc6b Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Wed Feb 16 18:20:44 2022 +0300 Parametrize installation paths commit d693205c401bd1036415960f6398aa0c185b0d87 Merge: 5047fc8667 abeb910ce2 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Wed Feb 16 17:34:11 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit 5047fc86671d5959e6184d4770440b32fe18a8b0 Merge: ee8cdf3b12 317b956d2e Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Feb 15 18:49:52 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit ee8cdf3b127e99b060acd545412976566e098e78 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Feb 15 18:49:23 2022 +0300 Removed custom MYRIAD kernels commit 5c1db8f9f8dbf4658f64d15d0bddf2c733755a1f Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Feb 15 18:26:58 2022 +0300 Disabled versioning for now commit f305376469c72d61b151ffe7d9f45e001fbb603f Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Feb 15 17:12:24 2022 +0300 System TBB commit fcc455e18e94283c947739bfca26c5f336abb6c1 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Feb 15 16:35:40 2022 +0300 Improvements commit a2dc0275a382c375d4bcb02a5189ec8328ca68e6 Merge: de9cb7c102 e168c9b1c3 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Feb 15 14:14:54 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit de9cb7c102d3fa8146f5dad73957fff8d900c071 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Feb 15 14:14:36 2022 +0300 Self-review commit df794a493ad37c6930ab5e02bd816d2eadcb94cf Merge: 85e01e8b4c 68c390f679 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Feb 15 13:35:32 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit 85e01e8b4cbf01f03029aa635c27b9b834788a9c Merge: f637f8fbc4 a875f6ed9c Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Feb 15 12:55:25 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit f637f8fbc4e6b8ff4e4bba806cceed8086b34dc4 Merge: db2e5d348e 3a5d821219 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Feb 14 19:29:34 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit db2e5d348e7c0d8139d09180fab4e33833c4b4b3 Merge: 78073f53ca ac2e639ff8 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Feb 14 18:25:05 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit 78073f53ca47e89e17b7b273ba0bcd739ef9ce97 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Thu Jan 13 16:37:54 2022 +0300 Automatic triplet generation; added SOVERSION commit 2267703a558b390cd859822cf7f3f78941fb5413 Merge: 91b67538ca b7e8ef910d Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Thu Jan 13 16:01:38 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit 91b67538ca5ccfc75e3d9d4a313b248dd39881b5 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Thu Jan 13 01:09:30 2022 +0300 Added both version and soversion commit c19ecf16a8be9b040b3cdc114e35599eabd5579b Merge: fc449e76dc ab09135195 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Jan 11 18:29:46 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit fc449e76dc037b4684b2910fff27a92b6728062f Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 27 20:17:22 2021 +0300 removed if target commit 52638ac629fb88f74ecb07a5752ecc6771a8ef6b Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 27 20:13:01 2021 +0300 location for DM commit dd8f0ffaf49c262c0566ae12c888926e321b1f8c Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 27 19:55:04 2021 +0300 Fixed complation of private plugins commit 140472f4361f60dae0c7f8d72fb30df4c53d1962 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 27 18:40:44 2021 +0300 Enable FHS even for non-debian packages commit f461859cfea3a844739a04d3068119baf0ccaa03 Merge: e603fcf8af f565e0f854 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 27 18:34:31 2021 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit e603fcf8af347c236af451d6c2e3cdd7742ad0d3 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 27 18:34:20 2021 +0300 Install location for plugins and python commit 1ae71e993d914da94708d08d0c451b6672926cdb Merge: 5c2b9a97d5 ab10057371 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 27 17:53:48 2021 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit 5c2b9a97d5743cac5143b6952429d5a1f3f54fab Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 27 17:53:30 2021 +0300 Fixed for debian packaging commit ab53b80e562fd48b08d1295d5485ecc59407b3df Merge: 043768808c 4188dbbf9f Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 27 16:06:40 2021 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit 043768808cefe9067e6cf26eac6bb447da53e71f Merge: cd44300742 2514c0ef38 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Thu Dec 16 16:05:24 2021 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit cd44300742c674ddbae58a03656fd822002f33f5 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Dec 14 01:52:30 2021 +0300 Fixes commit c97ce1ef602fc8c6def3b756c272a433e9a11540 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Dec 14 01:40:50 2021 +0300 Created virtual packages commit 680a11ee2dd745f7075afefa48bebcf49245cb6c Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 13 16:19:49 2021 +0300 Added more files to core component for DEBIAN generator commit 9b454a00de5651402c155fe94be71422b052759c Merge: 394e600fed 5124d95df7 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 13 15:30:55 2021 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit 394e600fed912fb5dfc43d8e53bc5c7ba510ebeb Merge: 74504d011f 562d388ad9 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Dec 10 17:50:30 2021 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit 74504d011f9bfc59992a5dcfb1e64ec3ba7bcaa1 Merge: aabd31a3a5 0c68574aa7 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Dec 10 14:25:47 2021 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit aabd31a3a5e8b462d90eb5ba12d4022057b95462 Merge: 95bbc6f1e8 92760949bf Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Wed Dec 8 18:06:01 2021 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit 95bbc6f1e8d7cee2b39fe5f659b23e194745b40a Merge: b4b5149e84 f734e7679b Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Wed Dec 8 14:53:12 2021 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit b4b5149e84b97cf530c7aa1d4ef582c9d2df829e Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Dec 7 19:19:58 2021 +0300 Last fixes commit 311529ce502157c008a770d03e22e548d8ad6ff4 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 6 19:47:35 2021 +0300 Works commit 746f91c8e829f5ec2c3823b6253974f70f8bbba5 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 6 18:42:54 2021 +0300 Ntext iteration commit c6d9b58b2aaaf84ad6200c10c8f4b680573070cd Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 6 14:29:53 2021 +0300 Fixes after merge with master commit 64c633d8fe86eb9c1168dec0d285e838e300a358 Merge: 29252a7d96 d27720777c Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 6 14:20:40 2021 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit 29252a7d96f23b73fef1a1ee9896f40d5ea04837 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Dec 5 20:50:19 2021 +0300 Improvements commit c13d7795eff202eb41e97644dead9bd9355d97f6 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Dec 5 19:45:01 2021 +0300 Debian packages are generated commit 61f36feb97c5ca6f080ee44273dd66ac477e46b2 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sat Dec 4 22:00:11 2021 +0300 Removed samples_deps, demo_scripts component commit e67a46cc3ef3347bf7259e30da275bbd8811d807 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Dec 3 18:48:43 2021 +0300 Start point for debian packages commit 0ab57298f8530e2ad656c93e2afb767f41597cb6 Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Dec 3 13:10:17 2021 +0300 Export frontend_common as dev target * Improvements * Fixed aizre scripts * Revert "Fixed MINOR version" This reverts commit aa391a94bd6e488e27dbb830403e6531dcdc7a19. * Try to parametrize linux.yml * Tests * Fixes * Fixed commands * Disabled test * Fixes * Fixed typo * Try to enable debian packages on CI * One more iteration * Fixes * Fixed tensorflow tests * Explicit debian pipeline * Fixes * Skipped ov_core_read_model_from_memory
2022-08-11 15:07:21 -05:00
# to make sure that lib/<multiarch-tuple> is created on Debian
set(CMAKE_INSTALL_PREFIX "/usr" CACHE PATH "Cmake install prefix" FORCE)
endif()
2019-08-09 11:02:42 -05:00
if(APPLE)
set(CMAKE_MACOSX_RPATH ON)
# WA for Xcode generator + object libraries issue:
# https://gitlab.kitware.com/cmake/cmake/issues/20260
# http://cmake.3232098.n2.nabble.com/XCODE-DEPEND-HELPER-make-Deletes-Targets-Before-and-While-They-re-Built-td7598277.html
set(CMAKE_XCODE_GENERATE_TOP_LEVEL_PROJECT_ONLY ON)
endif()
2019-08-09 11:02:42 -05:00
# Use solution folders
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# cmake_dependent_option() supports full Condition Syntax
set(CMAKE_POLICY_DEFAULT_CMP0127 NEW)
2021-01-11 05:48:27 -06:00
# Enable CMAKE_<LANG>_COMPILER_ID AppleClang
set(CMAKE_POLICY_DEFAULT_CMP0025 NEW)
set(CMAKE_WARN_DEPRECATED OFF CACHE BOOL "Don't warn about obsolete cmake versions in 3rdparty")
set(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION ON CACHE BOOL "Warn about absolute paths in destination")
2022-07-19 01:07:26 -05:00
set(CMAKE_SKIP_INSTALL_RPATH ON)
include(packaging/packaging)
# LTO
if(ENABLE_LTO)
set(CMAKE_POLICY_DEFAULT_CMP0069 NEW)
include(CheckIPOSupported)
check_ipo_supported(RESULT IPO_SUPPORTED
OUTPUT OUTPUT_MESSAGE
LANGUAGES C CXX)
if(NOT IPO_SUPPORTED)
set(ENABLE_LTO "OFF" CACHE STRING "Enable Link Time Optmization" FORCE)
message(WARNING "IPO / LTO is not supported: ${OUTPUT_MESSAGE}")
endif()
endif()
# General flags
macro(ov_install_static_lib target comp)
if(NOT BUILD_SHARED_LIBS)
get_target_property(target_type ${target} TYPE)
if(${target_type} STREQUAL "STATIC_LIBRARY")
set_target_properties(${target} PROPERTIES EXCLUDE_FROM_ALL FALSE)
endif()
install(TARGETS ${target} EXPORT OpenVINOTargets
2022-07-19 01:07:26 -05:00
ARCHIVE DESTINATION ${OV_CPACK_ARCHIVEDIR} COMPONENT ${comp} ${ARGN})
endif()
endmacro()
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
include(compile_flags/sdl)
include(compile_flags/os_flags)
include(compile_flags/sanitizer)
include(compile_flags/fuzzing)
include(download/dependency_solver)
include(cross_compile/cross_compiled_func)
include(faster_build)
include(whole_archive)
include(linux_name)
include(models)
include(api_validator/api_validator)
2019-08-09 11:02:42 -05:00
include(vs_version/vs_version)
include(plugins/plugins)
include(frontends/frontends)
include(add_ie_target)
include(CMakePackageConfigHelpers)
if(ENABLE_FUZZING)
enable_fuzzing()
endif()
# macro to mark target as conditionally compiled
function(ie_mark_target_as_cc TARGET_NAME)
2021-11-15 21:48:02 -06:00
set(cc_library openvino::conditional_compilation)
if(TARGET IE::conditional_compilation)
set(cc_library IE::conditional_compilation)
endif()
target_link_libraries(${TARGET_NAME} PRIVATE ${cc_library})
if(NOT (SELECTIVE_BUILD STREQUAL "ON"))
return()
endif()
if(NOT TARGET ${TARGET_NAME})
message(FATAL_ERROR "${TARGET_NAME} does not represent target")
endif()
get_target_property(sources ${TARGET_NAME} SOURCES)
set_source_files_properties(${sources} PROPERTIES OBJECT_DEPENDS ${GENERATED_HEADER})
endfunction()
function(ov_mark_target_as_cc)
ie_mark_target_as_cc(${ARGN})
endfunction()
include(python_requirements)
# Code style utils
include(cpplint/cpplint)
include(clang_format/clang_format)
include(ncc_naming_style/ncc_naming_style)
# Restore state
set(CMAKE_MODULE_PATH ${OLD_CMAKE_MODULE_PATH})