libshit

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

wscript (766B)


      1 # -*- mode: python -*-
      2 
      3 from waflib import Context
      4 libshit_cross = getattr(Context.g_module, 'LIBSHIT_CROSS', False)
      5 
      6 def options(ctx):
      7     ctx.system_opt('doctest', cross=libshit_cross)
      8 
      9 def configure(ctx):
     10     def system_doctest(ctx):
     11         ctx.check_cxx(header_name='doctest.h', uselib_store='DOCTEST',
     12                       define_name='')
     13     def doctest_post(ctx):
     14         if ctx.env.WITH_TESTS: # will be false with host variant
     15             defs = ['LIBSHIT_WITH_TESTS=1']
     16         else:
     17             defs = ['LIBSHIT_WITH_TESTS=0']
     18         ctx.env.append_value('DEFINES_DOCTEST', defs)
     19     ctx.with_chk(
     20         'doctest', {'system': system_doctest, 'bundle': 'doctest/doctest'},
     21         cross=libshit_cross, post_chk=doctest_post)
     22 
     23 def build(ctx):
     24     pass