| 1 |
# The Ninja backend used to try and pass -sourcepath repeatedly for |
| 2 |
# multiple includes which would discard prior includes. Since this |
| 3 |
# won't compile without the '.' include, this ensures that multiple |
| 4 |
# paths are passed in a [semi-]colon separated list instead... |
| 5 |
|
| 6 |
project('includedirsjava', 'java') |
| 7 |
|
| 8 |
javaprog = jar('myprog', |
| 9 |
'com/mesonbuild/Simple.java', |
| 10 |
'com/mesonbuild/TextPrinter.java', |
| 11 |
main_class : 'com.mesonbuild.Simple', |
| 12 |
include_directories : [ include_directories('com'), |
| 13 |
include_directories('com/mesonbuild') ]) |
| 14 |
test('subdirtest', javaprog) |