waf

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

wscript (433B)


      1 #! /usr/bin/env python
      2 
      3 def options(ctx):
      4     ctx.load('compiler_c')
      5 
      6 def configure(ctx):
      7     ctx.load('compiler_c')
      8     ctx.load('objcopy')
      9 
     10 def build(ctx):
     11     ctx(features = 'c cprogram objcopy',
     12         source   = 'main.c',
     13         target   = 'app',
     14 #       objcopy_bfdname='srec',
     15 #       objcopy_target  = 'alternative-name',
     16 #       objcopy_install_path = '${PREFIX}/some_dir',
     17 #       objcopy_flags = '--strip-all'
     18         )