waf

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

wscript (518B)


      1 #! /usr/bin/env python
      2 
      3 def build(bld):
      4 
      5 	t = bld(
      6 		features  = 'javac jar',
      7 		name      = 'animals',
      8 
      9 		# javac
     10 		srcdir    = 'src',
     11 		compat    = '1.7',
     12 
     13 		# jar
     14 		basedir   = '.',
     15 		destfile  = '../animals.jar',
     16 		manifest  = 'manifest',
     17 		use       = 'NNN',
     18 	)
     19 	t.env.JAVACFLAGS = ['-Xlint:unchecked']
     20 
     21 	if bld.env.DO_JUNIT:
     22 		t.features       += ' junit'
     23 		t.srcdir          = 'src junit'
     24 		t.junitsrc        = 'junit'
     25 		t.junitclasspath  = '.'
     26 		t.use            += ' JUNIT'
     27 		t.env.JUNIT_EXEC_FLAGS = ['-ea']
     28