forked from mirror/waf
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
518 B
Python
29 lines
518 B
Python
#! /usr/bin/env python
|
|
|
|
def build(bld):
|
|
|
|
t = bld(
|
|
features = 'javac jar',
|
|
name = 'animals',
|
|
|
|
# javac
|
|
srcdir = 'src',
|
|
compat = '1.7',
|
|
|
|
# jar
|
|
basedir = '.',
|
|
destfile = '../animals.jar',
|
|
manifest = 'manifest',
|
|
use = 'NNN',
|
|
)
|
|
t.env.JAVACFLAGS = ['-Xlint:unchecked']
|
|
|
|
if bld.env.DO_JUNIT:
|
|
t.features += ' junit'
|
|
t.srcdir = 'src junit'
|
|
t.junitsrc = 'junit'
|
|
t.junitclasspath = '.'
|
|
t.use += ' JUNIT'
|
|
t.env.JUNIT_EXEC_FLAGS = ['-ea']
|
|
|