waf

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

wscript (486B)


      1 #!/usr/bin/env python
      2 # encoding: utf-8
      3 
      4 def configure(ctx):
      5 	ctx.load("compiler_c compiler_cxx")
      6 
      7 def build(bld):
      8 	bld(
      9 	 features="cxx",
     10 	 source="liba/a.c",
     11 	 export_includes="liba",
     12 	 target="a",
     13 	)
     14 
     15 	bld(
     16 	 features="cxx",
     17 	 source="libb/b.cpp",
     18 	 export_includes="libb",
     19 	 target="b",
     20 	 use="a"
     21 	)
     22 
     23 	bld.program(
     24 	 features="cxx",
     25 	 source="main.c",
     26 	 target="program",
     27 	 use="b",
     28 	)
     29 
     30 def options(opt):
     31 	opt.load("compiler_c compiler_cxx")
     32 
     33 def hello(ctx):
     34 	print("Hello World!")