Skip to content

Commit

Permalink
Use the JDK system dependency for hsejni
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan957 authored and jenkins committed Sep 8, 2021
1 parent 1cf7170 commit 6841ae8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 2 additions & 0 deletions hsejni/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
add_languages('java', native: false)

jdk_dep = dependency('jdk', version : '>=1.8.0')

subdir('include')
subdir('java')
subdir('src')
Expand Down
12 changes: 1 addition & 11 deletions hsejni/src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@ hsejni_sources = files(
'hsejni.c',
)

java_home = run_command(
'sh',
'-c',
'dirname $(dirname $(readlink -f $(which javac)))',
check: true,
).stdout().strip()

hsejni_c_args = [
'-DCOMPNAME="hsejni"',
]
Expand All @@ -23,14 +16,11 @@ hsejni = library(
util_includes,
hsejni_includes,
component_root_includes,
include_directories(
'@0@'.format(java_home) / 'include',
'@0@'.format(java_home) / 'include' / 'linux'
),
],
dependencies: [
hse_dep,
thread_dep,
jdk_dep,
libhse_cli_dep,
],
version: meson.project_version(),
Expand Down

0 comments on commit 6841ae8

Please sign in to comment.