forked from ArduPilot/waf
/
wscript
53 lines (39 loc) · 1.28 KB
/
wscript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/env python3
# encoding: utf-8
# Thomas Nagy, 2006-2010 (ita)
"""
java example
The gcj compiler has a very different command-line - see playground/gcj
"""
VERSION = '0.0.4'
APPNAME = 'java_test'
top = '.'
out = 'build'
def options(opt):
opt.load('junit', tooldir='.')
def configure(conf):
conf.load('java')
try:
ret = conf.load('junit', tooldir='.')
conf.env.DO_JUNIT = True
except:
pass
conf.check_java_class('java.io.FileOutputStream')
conf.check_java_class('FakeClass')
conf.env.CLASSPATH_NNN = ['aaaa.jar', 'bbbb.jar']
def build(bld):
bld(features = 'javac jar javadoc',
srcdir = 'src/', # folder containing the sources to compile
outdir = 'src', # folder where to output the classes (in the build directory)
compat = '1.6', # java compatibility version number
sourcepath = ['src', 'sup'],
classpath = ['.', '..'],
#jaropts = ['-C', 'default/src/', '.'], # can be used to give files
basedir = 'src', # folder containing the classes and other files to package (must match outdir)
destfile = 'foo.jar', # do not put the destfile in the folder of the java classes!
use = 'NNN',
# javadoc
javadoc_package = ['com.meow' , 'com.meow.truc.bar', 'com.meow.truc.foo'],
javadoc_output = 'javadoc',
)
bld.recurse('animals cats')