wscript_mujs (616B)
1 # -*- python -*- 2 3 def options(ctx): 4 ctx.system_opt('mujs') 5 6 def configure(ctx): 7 def system_mujs(ctx): 8 ctx.check_cfg(package='mujs', args='--cflags --libs', 9 define_name='', add_to_env=False) 10 11 ctx.with_chk('mujs', {'system': system_mujs, 'bundle': 'mujs'}) 12 13 def build(ctx): 14 if ctx.env.WITH_MUJS != 'bundle': return 15 16 ctx.objects(idx = 10200, 17 source = 'mujs/one.c', 18 includes = 'mujs', 19 export_includes = 'mujs', 20 target = 'mujs', 21 uselib = 'EXT')