Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenCV
opencv
提交
890fcdf8
O
opencv
项目概览
OpenCV
/
opencv
上一次同步 9 个月
通知
994
Star
71100
Fork
55581
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
890fcdf8
编写于
7月 02, 2021
作者:
A
Alexander Alekhin
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #20337 from alalek:build_opencv_winpack_dldt_2021.4.0
上级
b699fe7a
90df3af6
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
336 addition
and
5 deletion
+336
-5
platforms/winpack_dldt/2021.4/20210630-dldt-disable-multidevice-autoplugin.patch
...2021.4/20210630-dldt-disable-multidevice-autoplugin.patch
+16
-0
platforms/winpack_dldt/2021.4/20210630-dldt-disable-unused-targets.patch
...ck_dldt/2021.4/20210630-dldt-disable-unused-targets.patch
+219
-0
platforms/winpack_dldt/2021.4/20210630-dldt-pdb.patch
platforms/winpack_dldt/2021.4/20210630-dldt-pdb.patch
+15
-0
platforms/winpack_dldt/2021.4/20210630-dldt-vs-version.patch
platforms/winpack_dldt/2021.4/20210630-dldt-vs-version.patch
+16
-0
platforms/winpack_dldt/2021.4/build.config.py
platforms/winpack_dldt/2021.4/build.config.py
+1
-0
platforms/winpack_dldt/2021.4/patch.config.py
platforms/winpack_dldt/2021.4/patch.config.py
+4
-0
platforms/winpack_dldt/2021.4/sysroot.config.py
platforms/winpack_dldt/2021.4/sysroot.config.py
+56
-0
platforms/winpack_dldt/build_package.py
platforms/winpack_dldt/build_package.py
+9
-5
未找到文件。
platforms/winpack_dldt/2021.4/20210630-dldt-disable-multidevice-autoplugin.patch
0 → 100644
浏览文件 @
890fcdf8
diff --git a/inference-engine/src/CMakeLists.txt b/inference-engine/src/CMakeLists.txt
index 0ba0dd78..7d34e7cb 100644
--- a/inference-engine/src/CMakeLists.txt
+++ b/inference-engine/src/CMakeLists.txt
@@ -26,9 +26,9 @@
endif()
add_subdirectory(hetero_plugin)
-add_subdirectory(auto_plugin)
+#add_subdirectory(auto_plugin)
-add_subdirectory(multi_device)
+#add_subdirectory(multi_device)
add_subdirectory(transformations)
platforms/winpack_dldt/2021.4/20210630-dldt-disable-unused-targets.patch
0 → 100644
浏览文件 @
890fcdf8
diff --git a/cmake/developer_package/add_ie_target.cmake b/cmake/developer_package/add_ie_target.cmake
index d49f16a4d..2726ca787 100644
--- a/cmake/developer_package/add_ie_target.cmake
+++ b/cmake/developer_package/add_ie_target.cmake
@@ -92,7 +92,7 @@
function(addIeTarget)
if (ARG_TYPE STREQUAL EXECUTABLE)
add_executable(${ARG_NAME} ${all_sources})
elseif(ARG_TYPE STREQUAL STATIC OR ARG_TYPE STREQUAL SHARED)
- add_library(${ARG_NAME} ${ARG_TYPE} ${all_sources})
+ add_library(${ARG_NAME} ${ARG_TYPE} EXCLUDE_FROM_ALL ${all_sources})
else()
message(SEND_ERROR "Invalid target type ${ARG_TYPE} specified for target name ${ARG_NAME}")
endif()
diff --git a/inference-engine/CMakeLists.txt b/inference-engine/CMakeLists.txt
index 1ac7fd8bf..df7091e51 100644
--- a/inference-engine/CMakeLists.txt
+++ b/inference-engine/CMakeLists.txt
@@ -39,7 +39,7 @@
if(ENABLE_TESTS)
add_subdirectory(tests)
endif()
-add_subdirectory(tools)
+#add_subdirectory(tools)
function(ie_build_samples)
# samples should be build with the same flags as from OpenVINO package,
@@ -58,7 +58,7 @@
endfunction()
# gflags and format_reader targets are kept inside of samples directory and
# they must be built even if samples build is disabled (required for tests and tools).
-ie_build_samples()
+#ie_build_samples()
if(ENABLE_PYTHON)
add_subdirectory(ie_bridges/python)
@@ -142,7 +142,7 @@
endif()
# Developer package
#
-openvino_developer_export_targets(COMPONENT openvino_common TARGETS format_reader gflags ie_samples_utils)
+#openvino_developer_export_targets(COMPONENT openvino_common TARGETS format_reader gflags ie_samples_utils)
# for Template plugin
if(NGRAPH_INTERPRETER_ENABLE)
@@ -166,7 +166,7 @@
function(ie_generate_dev_package_config)
@ONLY)
endfunction()
-ie_generate_dev_package_config()
+#ie_generate_dev_package_config()
#
# Coverage
diff --git a/inference-engine/src/inference_engine/CMakeLists.txt b/inference-engine/src/inference_engine/CMakeLists.txt
index e8ed1a5c4..1fc9fc3ff 100644
--- a/inference-engine/src/inference_engine/CMakeLists.txt
+++ b/inference-engine/src/inference_engine/CMakeLists.txt
@@ -110,7 +110,7 @@
add_cpplint_target(${TARGET_NAME}_plugin_api_cpplint FOR_SOURCES ${plugin_api_sr
# Create object library
-add_library(${TARGET_NAME}_obj OBJECT
+add_library(${TARGET_NAME}_obj OBJECT EXCLUDE_FROM_ALL
${LIBRARY_SRC}
${LIBRARY_HEADERS}
${PUBLIC_HEADERS})
@@ -181,7 +181,7 @@
ie_add_api_validator_post_build_step(TARGET ${TARGET_NAME})
# Static library used for unit tests which are always built
-add_library(${TARGET_NAME}_s STATIC
+add_library(${TARGET_NAME}_s STATIC EXCLUDE_FROM_ALL
$<TARGET_OBJECTS:${TARGET_NAME}_legacy_obj>
$<TARGET_OBJECTS:${TARGET_NAME}_obj>
${IE_STATIC_DEPENDENT_FILES})
diff --git a/inference-engine/src/legacy_api/CMakeLists.txt b/inference-engine/src/legacy_api/CMakeLists.txt
index 8eae82bd2..e0e6745b1 100644
--- a/inference-engine/src/legacy_api/CMakeLists.txt
+++ b/inference-engine/src/legacy_api/CMakeLists.txt
@@ -26,7 +26,7 @@
endif()
file(TOUCH ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp)
-add_library(${TARGET_NAME}_obj OBJECT
+add_library(${TARGET_NAME}_obj OBJECT EXCLUDE_FROM_ALL
${LIBRARY_SRC}
${PUBLIC_HEADERS})
diff --git a/inference-engine/src/mkldnn_plugin/CMakeLists.txt b/inference-engine/src/mkldnn_plugin/CMakeLists.txt
index fe57b29dd..07831e2fb 100644
--- a/inference-engine/src/mkldnn_plugin/CMakeLists.txt
+++ b/inference-engine/src/mkldnn_plugin/CMakeLists.txt
@@ -67,7 +67,7 @@
ie_add_api_validator_post_build_step(TARGET ${TARGET_NAME})
# add test object library
-add_library(${TARGET_NAME}_obj OBJECT ${SOURCES} ${HEADERS})
+add_library(${TARGET_NAME}_obj OBJECT EXCLUDE_FROM_ALL ${SOURCES} ${HEADERS})
target_link_libraries(${TARGET_NAME}_obj PUBLIC mkldnn)
target_include_directories(${TARGET_NAME}_obj PRIVATE $<TARGET_PROPERTY:inference_engine_preproc_s,INTERFACE_INCLUDE_DIRECTORIES>
diff --git a/inference-engine/src/preprocessing/CMakeLists.txt b/inference-engine/src/preprocessing/CMakeLists.txt
index f9548339d..ef962145a 100644
--- a/inference-engine/src/preprocessing/CMakeLists.txt
+++ b/inference-engine/src/preprocessing/CMakeLists.txt
@@ -101,7 +101,7 @@
endif()
# Create object library
-add_library(${TARGET_NAME}_obj OBJECT
+add_library(${TARGET_NAME}_obj OBJECT EXCLUDE_FROM_ALL
${LIBRARY_SRC}
${LIBRARY_HEADERS})
@@ -153,7 +153,7 @@
ie_add_api_validator_post_build_step(TARGET ${TARGET_NAME})
# Static library used for unit tests which are always built
-add_library(${TARGET_NAME}_s STATIC
+add_library(${TARGET_NAME}_s STATIC EXCLUDE_FROM_ALL
$<TARGET_OBJECTS:${TARGET_NAME}_obj>)
set_ie_threading_interface_for(${TARGET_NAME}_s)
diff --git a/inference-engine/src/vpu/common/CMakeLists.txt b/inference-engine/src/vpu/common/CMakeLists.txt
index 249e47c28..4ddf63049 100644
--- a/inference-engine/src/vpu/common/CMakeLists.txt
+++ b/inference-engine/src/vpu/common/CMakeLists.txt
@@ -5,7 +5,7 @@
file(GLOB_RECURSE SOURCES *.cpp *.hpp *.h)
function(add_common_target TARGET_NAME STATIC_IE)
- add_library(${TARGET_NAME} STATIC ${SOURCES})
+ add_library(${TARGET_NAME} STATIC EXCLUDE_FROM_ALL ${SOURCES})
ie_faster_build(${TARGET_NAME}
UNITY
@@ -60,7 +60,7 @@
add_common_target("vpu_common_lib" FALSE)
# Unit tests support for graph transformer
if(WIN32)
- add_common_target("vpu_common_lib_test_static" TRUE)
+ #add_common_target("vpu_common_lib_test_static" TRUE)
else()
add_library("vpu_common_lib_test_static" ALIAS "vpu_common_lib")
endif()
diff --git a/inference-engine/src/vpu/graph_transformer/CMakeLists.txt b/inference-engine/src/vpu/graph_transformer/CMakeLists.txt
index bc73ab5b1..b4c1547fc 100644
--- a/inference-engine/src/vpu/graph_transformer/CMakeLists.txt
+++ b/inference-engine/src/vpu/graph_transformer/CMakeLists.txt
@@ -5,7 +5,7 @@
file(GLOB_RECURSE SOURCES *.cpp *.hpp *.h *.inc)
function(add_graph_transformer_target TARGET_NAME STATIC_IE)
- add_library(${TARGET_NAME} STATIC ${SOURCES})
+ add_library(${TARGET_NAME} STATIC EXCLUDE_FROM_ALL ${SOURCES})
set_ie_threading_interface_for(${TARGET_NAME})
@@ -70,7 +70,7 @@
add_graph_transformer_target("vpu_graph_transformer" FALSE)
# Unit tests support for graph transformer
if(WIN32)
- add_graph_transformer_target("vpu_graph_transformer_test_static" TRUE)
+ #add_graph_transformer_target("vpu_graph_transformer_test_static" TRUE)
else()
add_library("vpu_graph_transformer_test_static" ALIAS "vpu_graph_transformer")
endif()
diff --git a/inference-engine/thirdparty/pugixml/CMakeLists.txt b/inference-engine/thirdparty/pugixml/CMakeLists.txt
index 8bcb2801a..f7e031c01 100644
--- a/inference-engine/thirdparty/pugixml/CMakeLists.txt
+++ b/inference-engine/thirdparty/pugixml/CMakeLists.txt
@@ -41,7 +41,7 @@
if(BUILD_SHARED_LIBS)
else()
add_library(pugixml STATIC ${SOURCES})
if (MSVC)
- add_library(pugixml_mt STATIC ${SOURCES})
+ #add_library(pugixml_mt STATIC ${SOURCES})
#if (WIN32)
# set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
# set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
diff --git a/ngraph/core/builder/CMakeLists.txt b/ngraph/core/builder/CMakeLists.txt
index ff5c381e7..2797ec9ab 100644
--- a/ngraph/core/builder/CMakeLists.txt
+++ b/ngraph/core/builder/CMakeLists.txt
@@ -16,7 +16,7 @@
source_group("src" FILES ${LIBRARY_SRC})
source_group("include" FILES ${PUBLIC_HEADERS})
# Create shared library
-add_library(${TARGET_NAME} STATIC ${LIBRARY_SRC} ${PUBLIC_HEADERS})
+add_library(${TARGET_NAME} STATIC EXCLUDE_FROM_ALL ${LIBRARY_SRC} ${PUBLIC_HEADERS})
if(COMMAND ie_faster_build)
ie_faster_build(${TARGET_NAME}
diff --git a/ngraph/core/reference/CMakeLists.txt b/ngraph/core/reference/CMakeLists.txt
index ef4a764ab..f6d3172e2 100644
--- a/ngraph/core/reference/CMakeLists.txt
+++ b/ngraph/core/reference/CMakeLists.txt
@@ -16,7 +16,7 @@
source_group("src" FILES ${LIBRARY_SRC})
source_group("include" FILES ${PUBLIC_HEADERS})
# Create shared library
-add_library(${TARGET_NAME} STATIC ${LIBRARY_SRC} ${PUBLIC_HEADERS})
+add_library(${TARGET_NAME} STATIC EXCLUDE_FROM_ALL ${LIBRARY_SRC} ${PUBLIC_HEADERS})
if(COMMAND ie_faster_build)
ie_faster_build(${TARGET_NAME}
diff --git a/openvino/itt/CMakeLists.txt b/openvino/itt/CMakeLists.txt
index e9f880b8c..c63f4df63 100644
--- a/openvino/itt/CMakeLists.txt
+++ b/openvino/itt/CMakeLists.txt
@@ -6,7 +6,7 @@
set(TARGET_NAME itt)
file(GLOB_RECURSE SOURCES "src/*.cpp" "src/*.hpp")
-add_library(${TARGET_NAME} STATIC ${SOURCES})
+add_library(${TARGET_NAME} STATIC EXCLUDE_FROM_ALL ${SOURCES})
add_library(openvino::itt ALIAS ${TARGET_NAME})
platforms/winpack_dldt/2021.4/20210630-dldt-pdb.patch
0 → 100644
浏览文件 @
890fcdf8
iff --git a/CMakeLists.txt b/CMakeLists.txt
index e0706a72e..9a053b1e4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,6 +6,10 @@
cmake_minimum_required(VERSION 3.13)
project(OpenVINO)
+set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Zi /FS")
+set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /DEBUG /OPT:REF /OPT:ICF")
+set(CMAKE_MODULE_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /DEBUG /OPT:REF /OPT:ICF")
+
set(OpenVINO_MAIN_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(IE_MAIN_SOURCE_DIR ${OpenVINO_MAIN_SOURCE_DIR}/inference-engine)
platforms/winpack_dldt/2021.4/20210630-dldt-vs-version.patch
0 → 100644
浏览文件 @
890fcdf8
diff --git a/cmake/developer_package/vs_version/vs_version.cmake b/cmake/developer_package/vs_version/vs_version.cmake
index 14d4c0e1e..6a44f73b9 100644
--- a/cmake/developer_package/vs_version/vs_version.cmake
+++ b/cmake/developer_package/vs_version/vs_version.cmake
@@ -8,9 +8,9 @@
set(IE_VS_VER_FILEVERSION_STR "${IE_VERSION_MAJOR}.${IE_VERSION_MINOR}.${IE_VERS
set(IE_VS_VER_COMPANY_NAME_STR "Intel Corporation")
set(IE_VS_VER_PRODUCTVERSION_STR "${CI_BUILD_NUMBER}")
-set(IE_VS_VER_PRODUCTNAME_STR "OpenVINO toolkit")
+set(IE_VS_VER_PRODUCTNAME_STR "OpenVINO toolkit (for OpenCV Windows package)")
set(IE_VS_VER_COPYRIGHT_STR "Copyright (C) 2018-2021, Intel Corporation")
-set(IE_VS_VER_COMMENTS_STR "https://docs.openvinotoolkit.org/")
+set(IE_VS_VER_COMMENTS_STR "https://github.com/opencv/opencv/wiki/Intel%27s-Deep-Learning-Inference-Engine-backend")
#
# ie_add_vs_version_file(NAME <name>
platforms/winpack_dldt/2021.4/build.config.py
0 → 100644
浏览文件 @
890fcdf8
os
.
environ
[
'CI_BUILD_NUMBER'
]
=
'2021.4.0-opencv_winpack_dldt'
platforms/winpack_dldt/2021.4/patch.config.py
0 → 100644
浏览文件 @
890fcdf8
applyPatch
(
'20210630-dldt-disable-unused-targets.patch'
)
applyPatch
(
'20210630-dldt-pdb.patch'
)
applyPatch
(
'20210630-dldt-disable-multidevice-autoplugin.patch'
)
applyPatch
(
'20210630-dldt-vs-version.patch'
)
platforms/winpack_dldt/2021.4/sysroot.config.py
0 → 100644
浏览文件 @
890fcdf8
sysroot_bin_dir
=
prepare_dir
(
self
.
sysrootdir
/
'bin'
)
copytree
(
self
.
build_dir
/
'install'
,
self
.
sysrootdir
/
'ngraph'
)
#rm_one(self.sysrootdir / 'ngraph' / 'lib' / 'ngraph.dll')
build_config
=
'Release'
if
not
self
.
config
.
build_debug
else
'Debug'
build_bin_dir
=
self
.
build_dir
/
'bin'
/
'intel64'
/
build_config
def
copy_bin
(
name
):
global
build_bin_dir
,
sysroot_bin_dir
copytree
(
build_bin_dir
/
name
,
sysroot_bin_dir
/
name
)
dll_suffix
=
'd'
if
self
.
config
.
build_debug
else
''
def
copy_dll
(
name
):
global
copy_bin
,
dll_suffix
copy_bin
(
name
+
dll_suffix
+
'.dll'
)
copy_bin
(
name
+
dll_suffix
+
'.pdb'
)
copy_bin
(
'cache.json'
)
copy_dll
(
'clDNNPlugin'
)
copy_dll
(
'HeteroPlugin'
)
copy_dll
(
'inference_engine'
)
copy_dll
(
'inference_engine_ir_reader'
)
#copy_dll('inference_engine_ir_v7_reader')
copy_dll
(
'inference_engine_legacy'
)
copy_dll
(
'inference_engine_transformations'
)
# runtime
copy_dll
(
'inference_engine_lp_transformations'
)
# runtime
#copy_dll('inference_engine_preproc') # runtime
copy_dll
(
'MKLDNNPlugin'
)
# runtime
copy_dll
(
'myriadPlugin'
)
# runtime
#copy_dll('MultiDevicePlugin') # runtime, not used
copy_dll
(
'ngraph'
)
copy_bin
(
'plugins.xml'
)
copy_bin
(
'pcie-ma2x8x.elf'
)
copy_bin
(
'usb-ma2x8x.mvcmd'
)
copytree
(
self
.
srcdir
/
'inference-engine'
/
'temp'
/
'tbb'
/
'bin'
,
sysroot_bin_dir
)
copytree
(
self
.
srcdir
/
'inference-engine'
/
'temp'
/
'tbb'
,
self
.
sysrootdir
/
'tbb'
)
sysroot_ie_dir
=
prepare_dir
(
self
.
sysrootdir
/
'deployment_tools'
/
'inference_engine'
)
sysroot_ie_lib_dir
=
prepare_dir
(
sysroot_ie_dir
/
'lib'
/
'intel64'
)
copytree
(
self
.
srcdir
/
'inference-engine'
/
'include'
,
sysroot_ie_dir
/
'include'
)
if
not
self
.
config
.
build_debug
:
copytree
(
build_bin_dir
/
'ngraph.lib'
,
sysroot_ie_lib_dir
/
'ngraph.lib'
)
copytree
(
build_bin_dir
/
'inference_engine.lib'
,
sysroot_ie_lib_dir
/
'inference_engine.lib'
)
copytree
(
build_bin_dir
/
'inference_engine_ir_reader.lib'
,
sysroot_ie_lib_dir
/
'inference_engine_ir_reader.lib'
)
copytree
(
build_bin_dir
/
'inference_engine_legacy.lib'
,
sysroot_ie_lib_dir
/
'inference_engine_legacy.lib'
)
else
:
copytree
(
build_bin_dir
/
'ngraphd.lib'
,
sysroot_ie_lib_dir
/
'ngraphd.lib'
)
copytree
(
build_bin_dir
/
'inference_engined.lib'
,
sysroot_ie_lib_dir
/
'inference_engined.lib'
)
copytree
(
build_bin_dir
/
'inference_engine_ir_readerd.lib'
,
sysroot_ie_lib_dir
/
'inference_engine_ir_readerd.lib'
)
copytree
(
build_bin_dir
/
'inference_engine_legacyd.lib'
,
sysroot_ie_lib_dir
/
'inference_engine_legacyd.lib'
)
sysroot_license_dir
=
prepare_dir
(
self
.
sysrootdir
/
'etc'
/
'licenses'
)
copytree
(
self
.
srcdir
/
'LICENSE'
,
sysroot_license_dir
/
'dldt-LICENSE'
)
copytree
(
self
.
sysrootdir
/
'tbb/LICENSE'
,
sysroot_license_dir
/
'tbb-LICENSE'
)
platforms/winpack_dldt/build_package.py
浏览文件 @
890fcdf8
...
...
@@ -214,7 +214,7 @@ class BuilderDLDT:
patch_hashsum
=
hashlib
.
md5
(
self
.
patch_file_contents
.
encode
(
'utf-8'
)).
hexdigest
()
except
:
log
.
warn
(
"Can't compute hashsum of patches: %s"
,
self
.
patch_file
)
self
.
patch_hashsum
=
patch_hashsum
self
.
patch_hashsum
=
self
.
config
.
override_patch_hashsum
if
self
.
config
.
override_patch_hashsum
else
patch_hashsum
def
prepare_sources
(
self
):
...
...
@@ -355,7 +355,6 @@ class Builder:
BUILD_PERF_TESTS
=
'OFF'
,
ENABLE_CXX11
=
'ON'
,
WITH_INF_ENGINE
=
'ON'
,
INF_ENGINE_RELEASE
=
str
(
self
.
config
.
dldt_release
),
WITH_TBB
=
'ON'
,
CPU_BASELINE
=
'AVX2'
,
CMAKE_INSTALL_PREFIX
=
str
(
self
.
install_dir
),
...
...
@@ -381,6 +380,9 @@ class Builder:
OPENCV_PYTHON_INSTALL_PATH
=
'python'
,
)
if
self
.
config
.
dldt_release
:
cmake_vars
[
'INF_ENGINE_RELEASE'
]
=
str
(
self
.
config
.
dldt_release
)
cmake_vars
[
'INF_ENGINE_LIB_DIRS:PATH'
]
=
str
(
builderDLDT
.
sysrootdir
/
'deployment_tools/inference_engine/lib/intel64'
)
assert
os
.
path
.
exists
(
cmake_vars
[
'INF_ENGINE_LIB_DIRS:PATH'
]),
cmake_vars
[
'INF_ENGINE_LIB_DIRS:PATH'
]
cmake_vars
[
'INF_ENGINE_INCLUDE_DIRS:PATH'
]
=
str
(
builderDLDT
.
sysrootdir
/
'deployment_tools/inference_engine/include'
)
...
...
@@ -464,8 +466,8 @@ class Builder:
def
main
():
dldt_src_url
=
'https://github.com/openvinotoolkit/openvino'
dldt_src_commit
=
'2021.
3
'
dldt_release
=
'2021030000'
dldt_src_commit
=
'2021.
4
'
dldt_release
=
None
build_cache_dir_default
=
os
.
environ
.
get
(
'BUILD_CACHE_DIR'
,
'.build_cache'
)
build_subst_drive
=
os
.
environ
.
get
(
'BUILD_SUBST_DRIVE'
,
None
)
...
...
@@ -492,13 +494,15 @@ def main():
parser
.
add_argument
(
'--dldt_src_branch'
,
help
=
'DLDT checkout branch'
)
parser
.
add_argument
(
'--dldt_src_commit'
,
default
=
dldt_src_commit
,
help
=
'DLDT source commit / tag (default: %s)'
%
dldt_src_commit
)
parser
.
add_argument
(
'--dldt_src_git_clone_extra'
,
action
=
'append'
,
help
=
'DLDT git clone extra args'
)
parser
.
add_argument
(
'--dldt_release'
,
default
=
dldt_release
,
help
=
'DLDT release code for INF_ENGINE_RELEASE (default: %s)'
%
dldt_release
)
parser
.
add_argument
(
'--dldt_release'
,
default
=
dldt_release
,
help
=
'DLDT release code for INF_ENGINE_RELEASE
, e.g 2021030000
(default: %s)'
%
dldt_release
)
parser
.
add_argument
(
'--dldt_reference_dir'
,
help
=
'DLDT reference git repository (optional)'
)
parser
.
add_argument
(
'--dldt_src_dir'
,
help
=
'DLDT custom source repository (skip git checkout and patching, use for TESTING only)'
)
parser
.
add_argument
(
'--dldt_config'
,
help
=
'Specify DLDT build configuration (defaults to evaluate from DLDT commit/branch)'
)
parser
.
add_argument
(
'--override_patch_hashsum'
,
default
=
''
,
help
=
'(script debug mode)'
)
args
=
parser
.
parse_args
()
log
.
basicConfig
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录