12345678910111213141516171819202122232425262728293031 |
- def options(opt):
- opt.load('compiler_c')
- def configure(conf):
- conf.load('compiler_c')
- def build(bld):
-
-
- node = bld.path.find_resource('precious.c')
- def fun(task):
- import random
- val = random.randint(0, 222111000)
- task.outputs[0].write('#include <stdio.h>\nint main(){ printf("%%d", %d); return 0;}' % val)
- bld(
-
- rule = fun,
- target = node,
- always = True)
- bld.program(
- source = 'precious.c',
- target = 'app')
|