sysroot.config.py 2.7 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_ir_v7_reader')
  20. copy_dll('inference_engine_legacy')
  21. copy_dll('inference_engine_transformations') # runtime
  22. copy_dll('inference_engine_lp_transformations') # runtime
  23. #copy_dll('inference_engine_preproc') # runtime
  24. copy_dll('MKLDNNPlugin') # runtime
  25. copy_dll('myriadPlugin') # runtime
  26. #copy_dll('MultiDevicePlugin') # runtime, not used
  27. copy_dll('ngraph')
  28. copy_bin('plugins.xml')
  29. copy_bin('pcie-ma2x8x.elf')
  30. copy_bin('usb-ma2x8x.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(build_bin_dir / '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_ir_reader.lib', sysroot_ie_lib_dir / 'inference_engine_ir_reader.lib')
  40. copytree(build_bin_dir / 'inference_engine_legacy.lib', sysroot_ie_lib_dir / 'inference_engine_legacy.lib')
  41. else:
  42. copytree(build_bin_dir / '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_ir_readerd.lib', sysroot_ie_lib_dir / 'inference_engine_ir_readerd.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.sysrootdir / 'tbb/LICENSE', sysroot_license_dir / 'tbb-LICENSE')