10 Builds C header and source files for
11 implementing Java native methods.
12 The target can be either a directory
13 in which the header files will be written,
14 or a header file name which
15 will contain all of the definitions.
16 The source can be either the names of <filename>.class</filename> files,
17 or the objects returned from the
21 If the construction variable
23 is set, either in the environment
26 builder method itself,
27 then the value of the variable
28 will be stripped from the
29 beginning of any <filename>.class</filename> file names.
34 # builds java_native.h
35 classes = env.Java(target = 'classdir', source = 'src')
36 env.JavaH(target = 'java_native.h', source = classes)
38 # builds include/package_foo.h and include/package_bar.h
39 env.JavaH(target = 'include',
40 source = ['package/foo.class', 'package/bar.class'])
42 # builds export/foo.h and export/bar.h
43 env.JavaH(target = 'export',
44 source = ['classes/foo.class', 'classes/bar.class'],
45 JAVACLASSDIR = 'classes')
52 The Java generator for C header and stub files.
56 <cvar name="JAVAHCOM">
58 The command line used to generate C header and stub files
60 Any options specified in the &cv-JAVAHFLAGS; construction variable
61 are included on this command line.
65 <cvar name="JAVAHCOMSTR">
67 The string displayed when C header and stub files
68 are generated from Java classes.
69 If this is not set, then &cv-JAVAHCOM; (the command line) is displayed.
72 env = Environment(JAVAHCOMSTR = "Generating header/stub file(s) $TARGETS from $SOURCES")
77 <cvar name="JAVAHFLAGS">
79 General options passed to the C header and stub file generator