libshit

Just some random shit
git clone https://git.neptards.moe/neptards/libshit.git
Log | Files | Refs | Submodules | README | LICENSE

wscript_yaml_cpp (801B)


      1 # -*- python -*-
      2 
      3 def options(ctx):
      4     ctx.system_opt('yaml-cpp', cross=True)
      5 
      6 def configure(ctx):
      7     def system_yaml(ctx):
      8         ctx.check_cfg(package='yaml-cpp', args='--cflags --libs',
      9                       define_name='', add_to_env=False)
     10     ctx.with_chk('yaml-cpp', {'system': system_yaml, 'bundle': None}, cross=True)
     11 
     12 def build_yaml_cpp(ctx, pref):
     13     if ctx.env.WITH_YAML_CPP != 'bundle': return
     14 
     15     idx = 51700 + (len(pref)>0)
     16     ctx.stlib(idx             = idx,
     17               source          = ctx.path.ant_glob('yaml-cpp/src/*.cpp'),
     18               includes        = 'yaml-cpp/include',
     19               export_includes = 'yaml-cpp/include',
     20               target          = pref+'yaml-cpp',
     21               uselib          = 'EXT')
     22 
     23 def build(ctx):
     24     ctx.both_host_env(build_yaml_cpp)