* Squashed commit of the following: commit 036a32290ed795326d51dd41d83b891248b0ac05 Merge:db41a71ea9ee0b67e605Author: 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 commitee0b67e605Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Jul 18 03:31:46 2022 +0800 test commite357eb1428Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Thu Jul 7 02:58:22 2022 +0800 Test commit4635acc497Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Jul 17 22:10:52 2022 +0800 Azure commitb1fff55143Merge:806ecaefa5d67d4ce736Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Jul 17 21:28:49 2022 +0800 Merge branch 'debian-packages' into debian-packages-azure commitd67d4ce736Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Jul 17 21:28:30 2022 +0800 Removed commented code commit806ecaefa5Merge:e328c9fc074413f0c4a8Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Jul 17 21:24:40 2022 +0800 Merge branch 'debian-packages' into debian-packages-azure commit4413f0c4a8Author: 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 commite328c9fc07Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Jul 17 21:23:51 2022 +0800 Updated .ci commitcb59bc9563Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Jul 17 15:33:21 2022 +0800 Updates commitd733e7aeb5Merge:096bdcc9e4e31018844dAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Jul 17 15:31:26 2022 +0800 Merge branch 'debian-packages' into debian-packages-azure commite31018844dAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Jul 17 15:31:08 2022 +0800 Some updates commitb079a9e3a5Merge:b0f15a85136514c213c3Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Jul 17 15:06:59 2022 +0800 Merge remote-tracking branch 'upstream/master' into debian-packages commit096bdcc9e4Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Jul 17 02:59:56 2022 +0800 CI pipeline with debian commit5b1c29a1a3Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Jul 17 02:12:15 2022 +0800 Test comit commitb0f15a8513Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sat Jul 16 18:56:58 2022 +0800 Fixde tests on Windows commit16dc4d8bc0Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sat Jul 16 15:46:15 2022 +0800 Try to fix GNA commit9801e52322Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sat Jul 16 14:40:21 2022 +0800 Update TBB install rules commit279f8a8a72Merge:9bf178fce009f2b5062bAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sat Jul 16 14:30:15 2022 +0800 Merge remote-tracking branch 'upstream/master' into debian-packages commit9bf178fce0Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Jul 15 21:09:00 2022 +0800 Fix for debian commit7afa431f05Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Jul 15 20:16:09 2022 +0800 Revert cmake scripts location commit9ead76efceAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Jul 15 19:31:08 2022 +0800 Try to fix TBB finding commit6f0da74e2aMerge:be9e25c6f7e8310f7e0bAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Jul 15 19:14:50 2022 +0800 Merge remote-tracking branch 'upstream/master' into debian-packages commitbe9e25c6f7Merge:c20396354835a31a329dAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Thu Jul 14 22:44:45 2022 +0800 Merge remote-tracking branch 'upstream/master' into debian-packages commitc203963548Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Apr 5 22:29:34 2022 +0300 Small fixes after self-revew commite2f1595c21Merge:3bae350d1cc2703c81f6Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Apr 5 22:21:41 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit3bae350d1cAuthor: 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 commit8a5bb7fe04Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Apr 5 20:41:45 2022 +0300 Revert TMP WAs commitbe78da4a88Merge:d0da7056d086495ceb0fAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Apr 5 13:44:49 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commitd0da7056d0Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Apr 3 12:11:33 2022 +0300 Improvements commit69bafd3519Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Apr 3 12:02:25 2022 +0300 Enabled nlohmann_json from system commitbdbc7804afAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Apr 3 11:46:19 2022 +0300 Use nlohmann_jsonConfig from system commit0f2e2bbdcbAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Apr 3 11:13:40 2022 +0300 Tried to use dependencies on system commit88415fc133Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sat Apr 2 19:28:48 2022 +0300 Try to improve gflags: part 2 commitb8fafcb670Merge:56dad4d12a29fb8c79b1Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sat Apr 2 19:23:19 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit56dad4d12aAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sat Apr 2 19:23:15 2022 +0300 Try to improve gflags commit81aa7ccc38Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sat Apr 2 18:08:03 2022 +0300 Skip TBB component commit9446326040Merge:610729c7164fcc18c00eAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sat Apr 2 11:13:14 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit610729c716Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Apr 1 19:36:10 2022 +0300 fixed TBB commit1930daa580Merge:fc37de43822388f3b976Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Apr 1 19:04:19 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commitfc37de4382Merge:c2ea71e45dd3060d4bccAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Thu Mar 31 21:08:44 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commitc2ea71e45dMerge:aeebfeba929fa5150d71Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Wed Mar 30 13:42:44 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commitaeebfeba92Merge:e65d2e809730ec7366bbAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Mar 28 20:06:38 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commite65d2e8097Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sat Mar 26 13:55:52 2022 +0300 Reverted OV_CPACK_COMPILER_IS_CLANG commit8cf4d15d4dMerge:2639adb686aded1a2c70Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sat Mar 26 13:53:40 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit2639adb686Merge:cebdf3f92aa2705b1fedAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Mar 25 15:18:48 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commitcebdf3f92aMerge:7ded4663d0e3098ece7eAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Mar 18 18:08:10 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit7ded4663d0Merge:ab92bd6c136b22d0d109Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Feb 18 19:51:47 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commitab92bd6c13Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Feb 18 19:48:07 2022 +0300 added versions via - commit1f4f71a498Merge:f3825b8d9d07f0966e62Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Feb 18 19:29:31 2022 +0300 Merge branch 'tf-brick-3' into debian-packages commitf3825b8d9dAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Feb 18 19:05:20 2022 +0300 Used standard dir for OV_CPACK_TOOLSDIR commit466c5c055cMerge:6d57fc75a3d2177cf177Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Feb 18 18:47:36 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit07f0966e62Author: 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 commit306b7611d9. commit6d57fc75a3Merge:697b0190e361f657795cAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Feb 18 14:30:26 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit697b0190e3Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Wed Feb 16 20:00:45 2022 +0300 Fixed package name commit8bd9368f6eAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Wed Feb 16 19:37:55 2022 +0300 Tuned locations commit61f09a2f3eAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Wed Feb 16 19:24:42 2022 +0300 Fixed cmake stage commit4519f0fc06Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Wed Feb 16 19:07:41 2022 +0300 Split packaging into common and debian part commita6b3259e38Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Wed Feb 16 18:27:22 2022 +0300 Renaming commit694581c317Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Wed Feb 16 18:20:44 2022 +0300 Parametrize installation paths commitd693205c40Merge:5047fc8667abeb910ce2Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Wed Feb 16 17:34:11 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit5047fc8667Merge:ee8cdf3b12317b956d2eAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Feb 15 18:49:52 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commitee8cdf3b12Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Feb 15 18:49:23 2022 +0300 Removed custom MYRIAD kernels commit5c1db8f9f8Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Feb 15 18:26:58 2022 +0300 Disabled versioning for now commitf305376469Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Feb 15 17:12:24 2022 +0300 System TBB commitfcc455e18eAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Feb 15 16:35:40 2022 +0300 Improvements commita2dc0275a3Merge:de9cb7c102e168c9b1c3Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Feb 15 14:14:54 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commitde9cb7c102Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Feb 15 14:14:36 2022 +0300 Self-review commitdf794a493aMerge:85e01e8b4c68c390f679Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Feb 15 13:35:32 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit85e01e8b4cMerge:f637f8fbc4a875f6ed9cAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Feb 15 12:55:25 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commitf637f8fbc4Merge:db2e5d348e3a5d821219Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Feb 14 19:29:34 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commitdb2e5d348eMerge:78073f53caac2e639ff8Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Feb 14 18:25:05 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit78073f53caAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Thu Jan 13 16:37:54 2022 +0300 Automatic triplet generation; added SOVERSION commit2267703a55Merge:91b67538cab7e8ef910dAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Thu Jan 13 16:01:38 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit91b67538caAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Thu Jan 13 01:09:30 2022 +0300 Added both version and soversion commitc19ecf16a8Merge:fc449e76dcab09135195Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Jan 11 18:29:46 2022 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commitfc449e76dcAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 27 20:17:22 2021 +0300 removed if target commit52638ac629Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 27 20:13:01 2021 +0300 location for DM commitdd8f0ffaf4Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 27 19:55:04 2021 +0300 Fixed complation of private plugins commit140472f436Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 27 18:40:44 2021 +0300 Enable FHS even for non-debian packages commitf461859cfeMerge:e603fcf8aff565e0f854Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 27 18:34:31 2021 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commite603fcf8afAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 27 18:34:20 2021 +0300 Install location for plugins and python commit1ae71e993dMerge:5c2b9a97d5ab10057371Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 27 17:53:48 2021 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit5c2b9a97d5Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 27 17:53:30 2021 +0300 Fixed for debian packaging commitab53b80e56Merge:043768808c4188dbbf9fAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 27 16:06:40 2021 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit043768808cMerge:cd443007422514c0ef38Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Thu Dec 16 16:05:24 2021 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commitcd44300742Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Dec 14 01:52:30 2021 +0300 Fixes commitc97ce1ef60Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Dec 14 01:40:50 2021 +0300 Created virtual packages commit680a11ee2dAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 13 16:19:49 2021 +0300 Added more files to core component for DEBIAN generator commit9b454a00deMerge:394e600fed5124d95df7Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 13 15:30:55 2021 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit394e600fedMerge:74504d011f562d388ad9Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Dec 10 17:50:30 2021 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit74504d011fMerge:aabd31a3a50c68574aa7Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Dec 10 14:25:47 2021 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commitaabd31a3a5Merge:95bbc6f1e892760949bfAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Wed Dec 8 18:06:01 2021 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit95bbc6f1e8Merge:b4b5149e84f734e7679bAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Wed Dec 8 14:53:12 2021 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commitb4b5149e84Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Tue Dec 7 19:19:58 2021 +0300 Last fixes commit311529ce50Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 6 19:47:35 2021 +0300 Works commit746f91c8e8Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 6 18:42:54 2021 +0300 Ntext iteration commitc6d9b58b2aAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 6 14:29:53 2021 +0300 Fixes after merge with master commit64c633d8feMerge:29252a7d96d27720777cAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Mon Dec 6 14:20:40 2021 +0300 Merge remote-tracking branch 'upstream/master' into debian-packages commit29252a7d96Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Dec 5 20:50:19 2021 +0300 Improvements commitc13d7795efAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sun Dec 5 19:45:01 2021 +0300 Debian packages are generated commit61f36feb97Author: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Sat Dec 4 22:00:11 2021 +0300 Removed samples_deps, demo_scripts component commite67a46cc3eAuthor: Ilya Lavrenov <ilya.lavrenov@intel.com> Date: Fri Dec 3 18:48:43 2021 +0300 Start point for debian packages commit0ab57298f8Author: 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
274 lines
9.9 KiB
CMake
274 lines
9.9 KiB
CMake
# Copyright (C) 2018-2022 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
#
|
|
# ov_debian_cpack_set_dirs()
|
|
#
|
|
# Set directories for cpack
|
|
#
|
|
macro(ov_debian_cpack_set_dirs)
|
|
# override default locations for Debian
|
|
set(OV_CPACK_TOOLSDIR ${CMAKE_INSTALL_BINDIR}) # only C++ tools are here
|
|
set(OV_CPACK_INCLUDEDIR ${CMAKE_INSTALL_INCLUDEDIR})
|
|
set(OV_CPACK_LIBRARYDIR ${CMAKE_INSTALL_LIBDIR})
|
|
set(OV_CPACK_RUNTIMEDIR ${CMAKE_INSTALL_LIBDIR})
|
|
set(OV_CPACK_ARCHIVEDIR ${CMAKE_INSTALL_LIBDIR})
|
|
set(OV_CPACK_PLUGINSDIR ${CMAKE_INSTALL_LIBDIR}/openvino-${OpenVINO_VERSION})
|
|
set(OV_CPACK_IE_CMAKEDIR ${CMAKE_INSTALL_LIBDIR}/cmake/inferenceengine${OpenVINO_VERSION})
|
|
set(OV_CPACK_NGRAPH_CMAKEDIR ${CMAKE_INSTALL_LIBDIR}/cmake/ngraph${OpenVINO_VERSION})
|
|
set(OV_CPACK_OPENVINO_CMAKEDIR ${CMAKE_INSTALL_LIBDIR}/cmake/openvino${OpenVINO_VERSION})
|
|
set(OV_CPACK_DOCDIR ${CMAKE_INSTALL_DATADIR}/doc/openvino-${OpenVINO_VERSION})
|
|
|
|
# non-native stuff
|
|
set(OV_CPACK_PYTHONDIR ${OV_CPACK_PLUGINSDIR})
|
|
set(OV_CPACK_SHAREDIR ${CMAKE_INSTALL_DATADIR}/openvino-${OpenVINO_VERSION}) # internal
|
|
set(OV_CPACK_SAMPLESDIR ${OV_CPACK_SHAREDIR}/samples)
|
|
set(OV_CPACK_DEVREQDIR ${OV_CPACK_SHAREDIR})
|
|
unset(OV_CPACK_SHAREDIR)
|
|
|
|
# skipped during debian packaging
|
|
set(OV_CPACK_WHEELSDIR "tools")
|
|
|
|
# for BW compatibility
|
|
set(IE_CPACK_LIBRARY_PATH ${OV_CPACK_LIBRARYDIR})
|
|
set(IE_CPACK_RUNTIME_PATH ${OV_CPACK_RUNTIMEDIR})
|
|
set(IE_CPACK_ARCHIVE_PATH ${OV_CPACK_ARCHIVEDIR})
|
|
endmacro()
|
|
|
|
ov_debian_cpack_set_dirs()
|
|
|
|
#
|
|
# Override CPack components name for Debian generator
|
|
# This is needed to change the granularity, i.e. merge several components
|
|
# into a single one
|
|
#
|
|
|
|
macro(ov_override_component_names)
|
|
# merge C++ and C runtimes
|
|
set(OV_CPACK_COMP_CORE_C "${OV_CPACK_COMP_CORE}")
|
|
set(OV_CPACK_COMP_CORE_C_DEV "${OV_CPACK_COMP_CORE_DEV}")
|
|
# merge all pythons into a single component
|
|
set(OV_CPACK_COMP_PYTHON_OPENVINO "pyopenvino")
|
|
set(OV_CPACK_COMP_PYTHON_IE_API "${OV_CPACK_COMP_PYTHON_OPENVINO}")
|
|
set(OV_CPACK_COMP_PYTHON_NGRAPH "${OV_CPACK_COMP_PYTHON_OPENVINO}")
|
|
# merge all C / C++ samples as a single samples component
|
|
set(OV_CPACK_COMP_CPP_SAMPLES "samples")
|
|
set(OV_CPACK_COMP_C_SAMPLES "${OV_CPACK_COMP_CPP_SAMPLES}")
|
|
# set(OV_CPACK_COMP_PYTHON_SAMPLES "${OV_CPACK_COMP_CPP_SAMPLES}")
|
|
# move requirements.txt to core-dev
|
|
set(OV_CPACK_COMP_DEV_REQ_FILES "${OV_CPACK_COMP_CORE_DEV}")
|
|
# move core_tools to core-dev
|
|
set(OV_CPACK_COMP_CORE_TOOLS "${OV_CPACK_COMP_CORE_DEV}")
|
|
endmacro()
|
|
|
|
ov_override_component_names()
|
|
|
|
#
|
|
# Common Debian specific settings
|
|
#
|
|
|
|
macro(ov_debian_specific_settings)
|
|
# multiple packages are generated
|
|
set(CPACK_DEB_COMPONENT_INSTALL ON)
|
|
# automatically find dependencies for binaries
|
|
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
|
|
# enable dependencies between components
|
|
set(CPACK_DEBIAN_ENABLE_COMPONENT_DEPENDS ON)
|
|
# control file permissions
|
|
set(CPACK_DEBIAN_PACKAGE_CONTROL_STRICT_PERMISSION OFF)
|
|
# homepage
|
|
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://docs.openvino.ai/")
|
|
# enable for debug cpack run
|
|
if(NOT DEFINED CPACK_DEBIAN_PACKAGE_DEBUG)
|
|
set(CPACK_DEBIAN_PACKAGE_DEBUG OFF)
|
|
endif()
|
|
|
|
# WA: dpkg-shlibdeps requires folder with libraries
|
|
# proper way is to use -l (path to libs) and -L (path to shlibs) for other already installed components
|
|
# but it requires CMake source code changes
|
|
# with current WA automatic deps detection via dpkg-shlibdeps for "our libraries"
|
|
# is ignored; but dependencies between our components are here because of
|
|
# CPACK_COMPONENT_<UCOMP>_DEPENDS variables
|
|
# More proper WA is try to enable INSTALL_RPATH
|
|
|
|
if(DEFINED CMAKE_LIBRARY_OUTPUT_DIRECTORY)
|
|
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS_PRIVATE_DIRS "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
|
|
else()
|
|
message(FATAL_ERROR "CMAKE_LIBRARY_OUTPUT_DIRECTORY is empty")
|
|
endif()
|
|
|
|
# automatic dependencies discovering between openvino and user packages
|
|
set(CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS ON)
|
|
# OpenVINO does not have backward and forward compatibility
|
|
set(CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS_POLICY "=")
|
|
# naming convention for debian package files
|
|
set(CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT")
|
|
# need to update this version once we rebuild the same package with additional fixes
|
|
# set(CPACK_DEBIAN_PACKAGE_RELEASE "1")
|
|
# enable this if someday we change the version scheme
|
|
# set(CPACK_DEBIAN_PACKAGE_EPOCH "2")
|
|
endmacro()
|
|
|
|
ov_debian_specific_settings()
|
|
|
|
# needed to override cmake auto generated files
|
|
set(def_postinst "${OpenVINO_BINARY_DIR}/_CPack_Packages/postinst")
|
|
set(def_postrm "${OpenVINO_BINARY_DIR}/_CPack_Packages/postrm")
|
|
set(def_triggers "${OpenVINO_BINARY_DIR}/_CPack_Packages/triggers")
|
|
|
|
set(triggers_content "activate-noawait ldconfig\n\n")
|
|
set(post_content "#!/bin/sh\n\nset -e;\nset -e\n\n")
|
|
|
|
file(REMOVE ${def_postinst} ${def_postrm} ${def_triggers})
|
|
file(WRITE "${def_postinst}" "${post_content}")
|
|
file(WRITE "${def_postrm}" "${post_content}")
|
|
file(WRITE "${def_triggers}" "${triggers_content}")
|
|
|
|
#
|
|
# Functions helpful for packaging your modules with Debian cpack
|
|
#
|
|
|
|
#
|
|
# ov_debian_add_changelog_and_copyright(<comp name>)
|
|
#
|
|
function(ov_debian_add_changelog_and_copyright comp)
|
|
string(TOUPPER "${comp}" ucomp)
|
|
if(NOT DEFINED CPACK_DEBIAN_${ucomp}_PACKAGE_NAME)
|
|
message(FATAL_ERROR "CPACK_DEBIAN_${ucomp}_PACKAGE_NAME is not defined")
|
|
else()
|
|
set(package_name "${CPACK_DEBIAN_${ucomp}_PACKAGE_NAME}")
|
|
endif()
|
|
set(package_name "${CPACK_DEBIAN_${ucomp}_PACKAGE_NAME}")
|
|
|
|
# copyright
|
|
|
|
install(FILES "${OpenVINO_SOURCE_DIR}/cmake/developer_package/packaging/copyright"
|
|
DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/${package_name}/
|
|
COMPONENT ${comp})
|
|
|
|
# create changelog.gz
|
|
|
|
find_host_program(gzip_PROGRAM NAMES gzip DOC "Path to gzip tool")
|
|
if(NOT gzip_PROGRAM)
|
|
message(FATAL_ERROR "Failed to find gzip tool")
|
|
endif()
|
|
|
|
set(changelog_src "${OpenVINO_SOURCE_DIR}/cmake/developer_package/packaging/changelog")
|
|
set(package_bin_dir "${OpenVINO_BINARY_DIR}/_CPack_Packages/${package_name}")
|
|
set(changelog_output "${package_bin_dir}/changelog")
|
|
|
|
file(REMOVE "${changelog_output}")
|
|
file(REMOVE "${changelog_output}.gz")
|
|
|
|
file(MAKE_DIRECTORY "${package_bin_dir}")
|
|
configure_file("${changelog_src}" "${changelog_output}" COPYONLY)
|
|
|
|
execute_process(COMMAND gzip -n -9 "${changelog_output}"
|
|
WORKING_DIRECTORY "${package_bin_dir}"
|
|
OUTPUT_VARIABLE output_message
|
|
ERROR_VARIABLE error_message
|
|
RESULT_VARIABLE exit_code
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
|
|
# install changelog.gz
|
|
|
|
install(FILES "${changelog_output}.gz"
|
|
DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/${package_name}/
|
|
COMPONENT ${comp})
|
|
endfunction()
|
|
|
|
#
|
|
# ov_debian_add_lintian_suppression(<comp name> <suppression1, suppression2, ...>)
|
|
#
|
|
function(ov_debian_add_lintian_suppression comp)
|
|
set(lines ${ARGN})
|
|
|
|
string(TOUPPER "${comp}" ucomp)
|
|
if(NOT DEFINED CPACK_DEBIAN_${ucomp}_PACKAGE_NAME)
|
|
message(FATAL_ERROR "CPACK_DEBIAN_${ucomp}_PACKAGE_NAME is not defined")
|
|
else()
|
|
set(package_name "${CPACK_DEBIAN_${ucomp}_PACKAGE_NAME}")
|
|
endif()
|
|
|
|
foreach(line IN LISTS lines)
|
|
set(line "${package_name} binary: ${line}")
|
|
if(content)
|
|
set(content "${content}\n${line}")
|
|
else()
|
|
set(content "${line}")
|
|
endif()
|
|
endforeach()
|
|
|
|
set(lintian_override_file "${OpenVINO_BINARY_DIR}/_CPack_Packages/lintian/${package_name}")
|
|
file(REMOVE ${lintian_override_file})
|
|
file(WRITE ${lintian_override_file} ${content})
|
|
|
|
install(FILES ${lintian_override_file}
|
|
DESTINATION ${CMAKE_INSTALL_DATADIR}/lintian/overrides/
|
|
COMPONENT ${comp})
|
|
endfunction()
|
|
|
|
#
|
|
# ov_debian_generate_conflicts(<comp name>)
|
|
#
|
|
function(ov_debian_generate_conflicts comp)
|
|
set(cpack_name_versions ${ARGN})
|
|
string(TOUPPER "${comp}" ucomp)
|
|
|
|
# sanity check
|
|
if(NOT DEFINED CPACK_DEBIAN_${ucomp}_PACKAGE_NAME)
|
|
message(FATAL_ERROR "CPACK_DEBIAN_${ucomp}_PACKAGE_NAME is not defined")
|
|
else()
|
|
if(NOT DEFINED cpack_name_ver)
|
|
message(FATAL_ERROR "Internal variable 'cpack_name_ver' is not defined")
|
|
endif()
|
|
|
|
string(REPLACE "${cpack_name_ver}" "" package_name_base "${CPACK_DEBIAN_${ucomp}_PACKAGE_NAME}")
|
|
endif()
|
|
|
|
foreach(cpack_name_version IN LISTS cpack_name_versions)
|
|
if(package_names)
|
|
set(package_names "${package_names}, ${package_name_base}${cpack_name_version}")
|
|
else()
|
|
set(package_names "${package_name_base}${cpack_name_version}")
|
|
endif()
|
|
endforeach()
|
|
|
|
set(CPACK_DEBIAN_${ucomp}_PACKAGE_CONFLICTS "${package_names}" PARENT_SCOPE)
|
|
endfunction()
|
|
|
|
#
|
|
# ov_debian_add_latest_component(<comp>)
|
|
#
|
|
# Adds latest component for `comp`, but without a version
|
|
# Description and other stuff (arch) is taken from the main component
|
|
#
|
|
macro(ov_debian_add_latest_component comp)
|
|
string(TOUPPER "${comp}" ucomp)
|
|
set(comp_name "${comp}_latest")
|
|
set(upper_case "${ucomp}_LATEST")
|
|
|
|
set(CPACK_COMPONENT_${upper_case}_DESCRIPTION "${CPACK_COMPONENT_${ucomp}_DESCRIPTION}")
|
|
set(CPACK_COMPONENT_${upper_case}_ARCHITECTURE "${CPACK_COMPONENT_${ucomp}_ARCHITECTURE}")
|
|
set(CPACK_COMPONENT_${upper_case}_DEPENDS "${ucomp}")
|
|
|
|
# take package name
|
|
if(DEFINED CPACK_DEBIAN_${ucomp}_PACKAGE_NAME)
|
|
string(REPLACE "-${cpack_name_ver}" ""
|
|
CPACK_DEBIAN_${upper_case}_PACKAGE_NAME
|
|
"${CPACK_DEBIAN_${ucomp}_PACKAGE_NAME}")
|
|
else()
|
|
message(FATAL_ERROR "CPACK_DEBIAN_${ucomp}_PACKAGE_NAME is not defined")
|
|
endif()
|
|
|
|
ov_debian_add_lintian_suppression(${comp_name}
|
|
# it's umbrella package
|
|
"empty-binary-package")
|
|
|
|
# add latest to a list of debian packages
|
|
list(APPEND CPACK_COMPONENTS_ALL ${comp_name})
|
|
endmacro()
|