platform_linuxbsd_builders.py 382 B

1234567891011
  1. """Functions used to generate source files during build time"""
  2. import os
  3. def make_debug_linuxbsd(target, source, env):
  4. dst = str(target[0])
  5. os.system('objcopy --only-keep-debug "{0}" "{0}.debugsymbols"'.format(dst))
  6. os.system('strip --strip-debug --strip-unneeded "{0}"'.format(dst))
  7. os.system('objcopy --add-gnu-debuglink="{0}.debugsymbols" "{0}"'.format(dst))