sysroot.config.py 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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_legacy')
  20. copy_dll('inference_engine_nn_builder')
  21. copy_dll('inference_engine_transformations') # runtime
  22. copy_dll('inference_engine_lp_transformations') # runtime
  23. copy_dll('MKLDNNPlugin') # runtime
  24. copy_dll('myriadPlugin') # runtime
  25. #copy_dll('MultiDevicePlugin') # runtime, not used
  26. copy_dll('ngraph')
  27. copy_bin('plugins.xml')
  28. copytree(self.build_dir / 'bin' / 'intel64' / 'pcie-ma248x.elf', sysroot_bin_dir / 'pcie-ma248x.elf')
  29. copytree(self.build_dir / 'bin' / 'intel64' / 'usb-ma2x8x.mvcmd', sysroot_bin_dir / 'usb-ma2x8x.mvcmd')
  30. copytree(self.build_dir / 'bin' / 'intel64' / 'usb-ma2450.mvcmd', sysroot_bin_dir / 'usb-ma2450.mvcmd')
  31. copytree(self.srcdir / 'inference-engine' / 'temp' / 'tbb' / 'bin', sysroot_bin_dir)
  32. copytree(self.srcdir / 'inference-engine' / 'temp' / 'tbb', self.sysrootdir / 'tbb')
  33. sysroot_ie_dir = prepare_dir(self.sysrootdir / 'deployment_tools' / 'inference_engine')
  34. sysroot_ie_lib_dir = prepare_dir(sysroot_ie_dir / 'lib' / 'intel64')
  35. copytree(self.srcdir / 'inference-engine' / 'include', sysroot_ie_dir / 'include')
  36. if not self.config.build_debug:
  37. copytree(self.build_dir / 'install' / 'lib' / 'ngraph.lib', sysroot_ie_lib_dir / 'ngraph.lib')
  38. copytree(build_bin_dir / 'inference_engine.lib', sysroot_ie_lib_dir / 'inference_engine.lib')
  39. copytree(build_bin_dir / 'inference_engine_nn_builder.lib', sysroot_ie_lib_dir / 'inference_engine_nn_builder.lib')
  40. copytree(build_bin_dir / 'inference_engine_legacy.lib', sysroot_ie_lib_dir / 'inference_engine_legacy.lib')
  41. else:
  42. copytree(self.build_dir / 'install' / 'lib' / 'ngraphd.lib', sysroot_ie_lib_dir / 'ngraphd.lib')
  43. copytree(build_bin_dir / 'inference_engined.lib', sysroot_ie_lib_dir / 'inference_engined.lib')
  44. copytree(build_bin_dir / 'inference_engine_nn_builderd.lib', sysroot_ie_lib_dir / 'inference_engine_nn_builderd.lib')
  45. copytree(build_bin_dir / 'inference_engine_legacyd.lib', sysroot_ie_lib_dir / 'inference_engine_legacyd.lib')
  46. sysroot_license_dir = prepare_dir(self.sysrootdir / 'etc' / 'licenses')
  47. copytree(self.srcdir / 'LICENSE', sysroot_license_dir / 'dldt-LICENSE')
  48. copytree(self.srcdir / 'ngraph/LICENSE', sysroot_license_dir / 'ngraph-LICENSE')
  49. copytree(self.sysrootdir / 'tbb/LICENSE', sysroot_license_dir / 'tbb-LICENSE')