sysroot.config.py 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. sysroot_bin_dir = prepare_dir(self.sysrootdir / 'bin')
  2. copytree(self.build_dir / 'install', self.sysrootdir / 'ngraph')
  3. #rm_one(self.sysrootdir / 'ngraph' / 'lib' / 'ngraph.dll')
  4. build_config = 'Release' if not self.config.build_debug else 'Debug'
  5. build_bin_dir = self.build_dir / 'bin' / 'intel64' / build_config
  6. def copy_bin(name):
  7. global build_bin_dir, sysroot_bin_dir
  8. copytree(build_bin_dir / name, sysroot_bin_dir / name)
  9. dll_suffix = 'd' if self.config.build_debug else ''
  10. def copy_dll(name):
  11. global copy_bin, dll_suffix
  12. copy_bin(name + dll_suffix + '.dll')
  13. copy_bin(name + dll_suffix + '.pdb')
  14. copy_bin('cldnn_global_custom_kernels')
  15. copy_bin('cache.json')
  16. copy_dll('clDNNPlugin')
  17. copy_dll('HeteroPlugin')
  18. copy_dll('inference_engine')
  19. copy_dll('inference_engine_nn_builder')
  20. copy_dll('MKLDNNPlugin')
  21. copy_dll('myriadPlugin')
  22. copy_dll('ngraph')
  23. copy_bin('plugins.xml')
  24. copytree(self.build_dir / 'bin' / 'intel64' / 'pcie-ma248x.elf', sysroot_bin_dir / 'pcie-ma248x.elf')
  25. copytree(self.build_dir / 'bin' / 'intel64' / 'usb-ma2x8x.mvcmd', sysroot_bin_dir / 'usb-ma2x8x.mvcmd')
  26. copytree(self.build_dir / 'bin' / 'intel64' / 'usb-ma2450.mvcmd', sysroot_bin_dir / 'usb-ma2450.mvcmd')
  27. copytree(self.srcdir / 'inference-engine' / 'temp' / 'tbb' / 'bin', sysroot_bin_dir)
  28. copytree(self.srcdir / 'inference-engine' / 'temp' / 'tbb', self.sysrootdir / 'tbb')
  29. sysroot_ie_dir = prepare_dir(self.sysrootdir / 'deployment_tools' / 'inference_engine')
  30. sysroot_ie_lib_dir = prepare_dir(sysroot_ie_dir / 'lib' / 'intel64')
  31. copytree(self.srcdir / 'inference-engine' / 'include', sysroot_ie_dir / 'include')
  32. if not self.config.build_debug:
  33. copytree(self.build_dir / 'install' / 'lib' / 'ngraph.lib', sysroot_ie_lib_dir / 'ngraph.lib')
  34. copytree(build_bin_dir / 'inference_engine.lib', sysroot_ie_lib_dir / 'inference_engine.lib')
  35. copytree(build_bin_dir / 'inference_engine_nn_builder.lib', sysroot_ie_lib_dir / 'inference_engine_nn_builder.lib')
  36. else:
  37. copytree(self.build_dir / 'install' / 'lib' / 'ngraphd.lib', sysroot_ie_lib_dir / 'ngraphd.lib')
  38. copytree(build_bin_dir / 'inference_engined.lib', sysroot_ie_lib_dir / 'inference_engined.lib')
  39. copytree(build_bin_dir / 'inference_engine_nn_builderd.lib', sysroot_ie_lib_dir / 'inference_engine_nn_builderd.lib')
  40. sysroot_license_dir = prepare_dir(self.sysrootdir / 'etc' / 'licenses')
  41. copytree(self.srcdir / 'LICENSE', sysroot_license_dir / 'dldt-LICENSE')
  42. copytree(self.srcdir / 'ngraph/LICENSE', sysroot_license_dir / 'ngraph-LICENSE')
  43. copytree(self.sysrootdir / 'tbb/LICENSE', sysroot_license_dir / 'tbb-LICENSE')