Debian Codegraph @

test cases/java/8 codegen custom target/meson.build

raw
1 # If we generate code under the build directory then the backend needs to add
2 # the build directory to the -sourcepath passed to javac otherwise the compiler
3 # won't be able to handle the -implicit:class behaviour of automatically
4 # compiling dependency classes.
5
6 project('codegenjava', 'java')
7
8 subdir('com/mesonbuild')
9
10 javaprog = jar('myprog',
11 config_file[0],
12 'com/mesonbuild/Simple.java',
13 'com/mesonbuild/TextPrinter.java',
14 main_class : 'com.mesonbuild.Simple')
15 test('subdirtest', javaprog)