platform_x11_builders.py 553 B

123456789101112131415161718
  1. """Functions used to generate source files during build time
  2. All such functions are invoked in a subprocess on Windows to prevent build flakiness.
  3. """
  4. import os
  5. from platform_methods import subprocess_main
  6. def make_debug_x11(target, source, env):
  7. os.system('objcopy --only-keep-debug {0} {0}.debugsymbols'.format(target[0]))
  8. os.system('strip --strip-debug --strip-unneeded {0}'.format(target[0]))
  9. os.system('objcopy --add-gnu-debuglink={0}.debugsymbols {0}'.format(target[0]))
  10. if __name__ == '__main__':
  11. subprocess_main(globals())