diff options
author | Robert Bragg <robert@impossible.com> | 2018-02-08 00:11:26 +0000 |
---|---|---|
committer | Niclas Moeslund Overby <noverby@prozum.dk> | 2018-05-16 14:53:30 +0200 |
commit | 61dd46811b324a070c9a5007ac9b92a58fce9bb4 (patch) | |
tree | 8be65dcaf8f6859b01f9f20f951c407b5734f98f /docs | |
parent | 65b730bd59790338a6bfad6f976ff74b12d6bc13 (diff) | |
download | meson-61dd46811b324a070c9a5007ac9b92a58fce9bb4.zip meson-61dd46811b324a070c9a5007ac9b92a58fce9bb4.tar.gz meson-61dd46811b324a070c9a5007ac9b92a58fce9bb4.tar.bz2 |
ninja: avoid needing include_directory('.') with jar()
Although only one file is passed to javac at a time, if your code has
any inter-file dependencies javac still needs to know how to find other
source files for its -implicit:class feature to work whereby it will
automatically also compile files that the given file depends on.
-implicit:class is the default, practical, behaviour of javac since
otherwise it would be necessary to declare the class dependencies
for parallel java builds to be feasible.
Passing "include_directory: include_directory('.')" to jar() causes
-souredir <path/to/top/of/java/src> to be passed to javac which then
enables your source code to have inter-file class dependencies -
assuming none of your source code is generated.
This ensures that '.' is included by default.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions