718c41634f
1.项目后端整体迁移至PaddleOCR-NCNN算法,已通过基本的兼容性测试 2.工程改为使用CMake组织,后续为了更好地兼容第三方库,不再提供QMake工程 3.重整权利声明文件,重整代码工程,确保最小化侵权风险 Log: 切换后端至PaddleOCR-NCNN,切换工程为CMake Change-Id: I4d5d2c5d37505a4a24b389b1a4c5d12f17bfa38c
57 lines
2.9 KiB
Python
57 lines
2.9 KiB
Python
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('cldnn_global_custom_kernels')
|
|
copy_bin('cache.json')
|
|
copy_dll('clDNNPlugin')
|
|
copy_dll('HeteroPlugin')
|
|
copy_dll('inference_engine')
|
|
copy_dll('inference_engine_legacy')
|
|
copy_dll('inference_engine_nn_builder')
|
|
copy_dll('inference_engine_transformations') # runtime
|
|
copy_dll('inference_engine_lp_transformations') # runtime
|
|
copy_dll('MKLDNNPlugin') # runtime
|
|
copy_dll('myriadPlugin') # runtime
|
|
copy_dll('ngraph')
|
|
copy_bin('plugins.xml')
|
|
copytree(self.build_dir / 'bin' / 'intel64' / 'pcie-ma248x.elf', sysroot_bin_dir / 'pcie-ma248x.elf')
|
|
copytree(self.build_dir / 'bin' / 'intel64' / 'usb-ma2x8x.mvcmd', sysroot_bin_dir / 'usb-ma2x8x.mvcmd')
|
|
copytree(self.build_dir / 'bin' / 'intel64' / 'usb-ma2450.mvcmd', sysroot_bin_dir / 'usb-ma2450.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(self.build_dir / 'install' / 'lib' / '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_nn_builder.lib', sysroot_ie_lib_dir / 'inference_engine_nn_builder.lib')
|
|
copytree(build_bin_dir / 'inference_engine_legacy.lib', sysroot_ie_lib_dir / 'inference_engine_legacy.lib')
|
|
else:
|
|
copytree(self.build_dir / 'install' / 'lib' / '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_nn_builderd.lib', sysroot_ie_lib_dir / 'inference_engine_nn_builderd.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.srcdir / 'ngraph/LICENSE', sysroot_license_dir / 'ngraph-LICENSE')
|
|
copytree(self.sysrootdir / 'tbb/LICENSE', sysroot_license_dir / 'tbb-LICENSE')
|