wscript 709 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #! /usr/bin/env python
  2. # encoding: utf-8
  3. VERSION='0.0.1'
  4. APPNAME='app2'
  5. top = '.'
  6. out = 'build'
  7. from waflib.extras import remote # optional
  8. from waflib.extras import distnet
  9. variants = [
  10. 'linux_64_debug',
  11. 'linux_64_release',
  12. 'linux_32_debug',
  13. 'linux_32_release',
  14. ]
  15. def options(opt):
  16. opt.load('distnet')
  17. opt.load('compiler_c')
  18. def configure(conf):
  19. conf.load('distnet')
  20. conf.load('compiler_c')
  21. def build(bld):
  22. bld.load('distnet')
  23. bld.program(source='main.c', target='app2', includes='.', use='pouet')
  24. def package(ctx):
  25. for v in variants:
  26. tar = 'build/%s.tarfile' % v
  27. inputs = ['build/%s/app2.so' % v]
  28. ctx.make_tarfile(tar, inputs)
  29. ctx.make_tarfile('build/noarch.tarfile', ['head.h'])