waf

FORK: waf with some random patches
git clone https://git.neptards.moe/neptards/waf.git
Log | Files | Refs | README

wscript (532B)


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