From be92e3783751b8bf1481dc81635e86b70977698a Mon Sep 17 00:00:00 2001 From: Tristan Partin Date: Sat, 19 Jun 2021 01:50:15 -0500 Subject: Add Java module The Java module will serve as a source for easing Java development within Meson. Currently it only supports generating native header files. --- mesonbuild/compilers/java.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'mesonbuild/compilers') diff --git a/mesonbuild/compilers/java.py b/mesonbuild/compilers/java.py index ab82450..38b90ac 100644 --- a/mesonbuild/compilers/java.py +++ b/mesonbuild/compilers/java.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +import os import os.path import shutil import subprocess @@ -39,10 +40,10 @@ class JavaCompiler(BasicLinkerIsCompilerMixin, Compiler): def get_werror_args(self) -> T.List[str]: return ['-Werror'] - def get_output_args(self, subdir: str) -> T.List[str]: - if subdir == '': - subdir = './' - return ['-d', subdir, '-s', subdir] + def get_output_args(self, outputname: str) -> T.List[str]: + if outputname == '': + outputname = './' + return ['-d', outputname, '-s', outputname] def get_pic_args(self) -> T.List[str]: return [] -- cgit v1.1