You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
build: Get bootclasspath from pkg-config
Now that we require art-standalone to be found using pkg-config, we can use it to get its libdir path.
This commit is contained in:
10
meson.build
10
meson.build
@@ -16,15 +16,7 @@ libdl_bio_dep = [
|
|||||||
libc_bio_dep = [
|
libc_bio_dep = [
|
||||||
cc.find_library('c_bio')
|
cc.find_library('c_bio')
|
||||||
]
|
]
|
||||||
if fs.is_file('/usr' / get_option('libdir') / 'java/core-all_classes.jar')
|
bootclasspath_dir = libart_dep.get_variable(pkgconfig: 'libdir') / 'java'
|
||||||
bootclasspath_dir = '/usr' / get_option('libdir') / 'java'
|
|
||||||
elif fs.is_file('/usr/local' / get_option('libdir') / 'java/core-all_classes.jar')
|
|
||||||
bootclasspath_dir = '/usr/local' / get_option('libdir') / 'java'
|
|
||||||
elif fs.is_file(get_option('prefix') / get_option('libdir') / 'java/core-all_classes.jar')
|
|
||||||
bootclasspath_dir = get_option('prefix') / get_option('libdir') / 'java'
|
|
||||||
else
|
|
||||||
error('bootclasspath "core-all_classes.jar" not found')
|
|
||||||
endif
|
|
||||||
|
|
||||||
bootclasspath = bootclasspath_dir / 'core-all_classes.jar' + ':' + bootclasspath_dir / 'core-junit_classes.jar' + ':' + bootclasspath_dir / 'junit-runner_classes.jar'
|
bootclasspath = bootclasspath_dir / 'core-all_classes.jar' + ':' + bootclasspath_dir / 'core-junit_classes.jar' + ':' + bootclasspath_dir / 'junit-runner_classes.jar'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user