waf

FORK: waf with some random patches
git clone https://git.neptards.moe/neptards/waf.git
Log | Files | Refs | README

wscript (598B)


      1 #! /usr/bin/env python
      2 # encoding: utf-8
      3 
      4 def options(opt):
      5 	# We are using C and C++
      6 	opt.load('compiler_c compiler_cxx')
      7 
      8 def configure(conf):
      9 	# We are using C and C++
     10 	conf.load('compiler_c compiler_cxx')
     11 	# Force some standards to see that IDE will follow them
     12 	conf.env.CXXFLAGS=['-std=c++17']
     13 	conf.env.CFLAGS=['-std=c17']
     14 
     15 def build(bld):
     16 	bld.shlib(source='exLibC/src/exLibC.cpp', includes='exLibC/src/include', target='exampleLibC', export_includes='exLibC/src/include/')
     17 	bld.program(source=bld.path.ant_glob('exProgLinkedC/src/*.cpp'), target='exampleProgLinkedC', use='exampleLibC')
     18 
     19