diff options
author | Robert Bragg <robert@impossible.com> | 2018-02-08 00:33:17 +0000 |
---|---|---|
committer | Niclas Moeslund Overby <noverby@prozum.dk> | 2018-05-16 14:53:30 +0200 |
commit | ec7b834b6e76aac8cc64b37a9cad643d556139c5 (patch) | |
tree | f0b5add300af79826fade953950ce02fbf32acdd /mesonbuild/backend/ninjabackend.py | |
parent | 61dd46811b324a070c9a5007ac9b92a58fce9bb4 (diff) | |
download | meson-ec7b834b6e76aac8cc64b37a9cad643d556139c5.zip meson-ec7b834b6e76aac8cc64b37a9cad643d556139c5.tar.gz meson-ec7b834b6e76aac8cc64b37a9cad643d556139c5.tar.bz2 |
ninja: add build dir to javac -sourcepath
To allow the javac -implicit:class behaviour to know where to find
generated .java files then the build directory for the target is also
added to the -sourcefile path.
Diffstat (limited to 'mesonbuild/backend/ninjabackend.py')
-rw-r--r-- | mesonbuild/backend/ninjabackend.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index 8ac7658..c7e194e 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -1031,6 +1031,7 @@ int dummy; args += compiler.get_output_args(self.get_target_private_dir(target)) curdir = target.get_subdir() sourcepath = os.path.join(self.build_to_src, curdir) + os.pathsep + sourcepath += os.path.normpath(curdir) + os.pathsep for i in target.include_dirs: for idir in i.get_incdirs(): sourcepath += os.path.join(self.build_to_src, i.curdir, idir) + os.pathsep |