sysroot.config.py 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. copy_bin('pcie-ma2x8x.elf')
  28. copy_bin('usb-ma2x8x.mvcmd')
  29. copytree(self.srcdir / 'inference-engine' / 'temp' / 'tbb' / 'bin', sysroot_bin_dir)
  30. copytree(self.srcdir / 'inference-engine' / 'temp' / 'tbb', self.sysrootdir / 'tbb')
  31. sysroot_ie_dir = prepare_dir(self.sysrootdir / 'deployment_tools' / 'inference_engine')
  32. sysroot_ie_lib_dir = prepare_dir(sysroot_ie_dir / 'lib' / 'intel64')
  33. copytree(self.srcdir / 'inference-engine' / 'include', sysroot_ie_dir / 'include')
  34. if not self.config.build_debug:
  35. copytree(self.build_dir / 'install' / 'lib' / 'ngraph.lib', sysroot_ie_lib_dir / 'ngraph.lib')
  36. copytree(build_bin_dir / 'inference_engine.lib', sysroot_ie_lib_dir / 'inference_engine.lib')
  37. copytree(build_bin_dir / 'inference_engine_ir_reader.lib', sysroot_ie_lib_dir / 'inference_engine_ir_reader.lib')
  38. copytree(build_bin_dir / 'inference_engine_legacy.lib', sysroot_ie_lib_dir / 'inference_engine_legacy.lib')
  39. else:
  40. copytree(self.build_dir / 'install' / 'lib' / 'ngraphd.lib', sysroot_ie_lib_dir / 'ngraphd.lib')
  41. copytree(build_bin_dir / 'inference_engined.lib', sysroot_ie_lib_dir / 'inference_engined.lib')
  42. copytree(build_bin_dir / 'inference_engine_ir_readerd.lib', sysroot_ie_lib_dir / 'inference_engine_ir_readerd.lib')
  43. copytree(build_bin_dir / 'inference_engine_legacyd.lib', sysroot_ie_lib_dir / 'inference_engine_legacyd.lib')
  44. sysroot_license_dir = prepare_dir(self.sysrootdir / 'etc' / 'licenses')
  45. copytree(self.srcdir / 'LICENSE', sysroot_license_dir / 'dldt-LICENSE')
  46. copytree(self.sysrootdir / 'tbb/LICENSE', sysroot_license_dir / 'tbb-LICENSE')