wscript 532 B

1234567891011121314151617181920212223242526272829303132
  1. #!/usr/bin/env python
  2. # encoding: utf-8
  3. # Example using the `remote` tool.
  4. from waflib import Utils
  5. top = '.'
  6. out = 'build'
  7. variants = [
  8. 'linux_64_debug',
  9. 'linux_64_release',
  10. 'linux_32_debug',
  11. 'linux_32_release',
  12. #'darwin_64_release', # works if a host is provided
  13. ]
  14. from waflib.extras import remote
  15. def options(opt):
  16. opt.load('compiler_c')
  17. def configure(conf):
  18. if not conf.variant:
  19. return
  20. conf.load('compiler_c')
  21. def build(bld):
  22. if not bld.variant:
  23. return
  24. bld(features='c cprogram', target='app', source='main.c')