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 )