2017-12-29 17:12:55 +01:00
|
|
|
android_package = 'org.musicpd'
|
|
|
|
android_package_path = join_paths(android_package.split('.'))
|
|
|
|
|
|
|
|
android_ndk = get_option('android_ndk')
|
|
|
|
android_sdk = get_option('android_sdk')
|
|
|
|
android_abi = get_option('android_abi')
|
|
|
|
|
2021-02-15 21:11:34 +01:00
|
|
|
android_sdk_build_tools_version = '29.0.3'
|
|
|
|
android_sdk_platform = 'android-29'
|
2017-12-29 17:12:55 +01:00
|
|
|
|
|
|
|
android_build_tools_dir = join_paths(android_sdk, 'build-tools', android_sdk_build_tools_version)
|
|
|
|
android_sdk_platform_dir = join_paths(android_sdk, 'platforms', android_sdk_platform)
|
|
|
|
|
2023-12-18 05:38:10 +01:00
|
|
|
|
|
|
|
android_gradlew = join_paths(meson.current_source_dir(), 'gradlew')
|
2017-12-29 17:12:55 +01:00
|
|
|
|
|
|
|
javac = find_program('javac')
|
|
|
|
|
|
|
|
common_cppflags += '-I' + join_paths(meson.current_build_dir(), 'include')
|
|
|
|
|
2023-12-18 05:38:10 +01:00
|
|
|
bridge_header = custom_target(
|
|
|
|
'org_musicpd_Bridge.h',
|
|
|
|
output: 'org_musicpd_Bridge.h',
|
2017-12-29 17:12:55 +01:00
|
|
|
input: [
|
2023-12-18 05:38:10 +01:00
|
|
|
'app/src/main/java/org/musicpd/Bridge.java',
|
2017-12-29 17:12:55 +01:00
|
|
|
],
|
|
|
|
command: [
|
|
|
|
join_paths(meson.current_source_dir(), 'run-javac.sh'),
|
|
|
|
javac,
|
|
|
|
join_paths(android_sdk_platform_dir, 'android.jar'),
|
2023-12-22 16:31:56 +01:00
|
|
|
'@OUTDIR@',
|
2017-12-29 17:12:55 +01:00
|
|
|
'@INPUT@',
|
|
|
|
],
|
|
|
|
)
|