diff options
author | Tristan Partin <tristan@partin.io> | 2021-06-19 01:50:15 -0500 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-08-22 07:57:29 -0700 |
commit | be92e3783751b8bf1481dc81635e86b70977698a (patch) | |
tree | e86b3752ebe1ee6c2e4b7dbef56269f0707b7d82 /mesonbuild/compilers/java.py | |
parent | cd9db63bfbabdc241cc12805ffd84309d90346ab (diff) | |
download | meson-be92e3783751b8bf1481dc81635e86b70977698a.zip meson-be92e3783751b8bf1481dc81635e86b70977698a.tar.gz meson-be92e3783751b8bf1481dc81635e86b70977698a.tar.bz2 |
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.
Diffstat (limited to 'mesonbuild/compilers/java.py')
-rw-r--r-- | mesonbuild/compilers/java.py | 9 |
1 files changed, 5 insertions, 4 deletions
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 [] |