sysroot.config.py 2.9 KB

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