Merge branch 'mpdlib' of https://github.com/DDRBoxman/MPD
This commit is contained in:
commit
79df6a646b
|
@ -1,13 +0,0 @@
|
|||
android_abi = get_option('android_abi')
|
||||
|
||||
mpd_so = custom_target(
|
||||
'libmpd.so',
|
||||
output: 'libmpd.so',
|
||||
input: mpd,
|
||||
command: [
|
||||
'cp',
|
||||
'@INPUT@',
|
||||
join_paths(meson.current_source_dir(), '../app/src/main/jnilibs/', android_abi),
|
||||
],
|
||||
build_by_default: true
|
||||
)
|
|
@ -68,3 +68,5 @@ run_meson(toolchain, mpd_path, '.', configure_args)
|
|||
|
||||
ninja = shutil.which("ninja")
|
||||
subprocess.check_call([ninja], env=toolchain.env)
|
||||
|
||||
subprocess.check_call([ninja, 'install'], env=toolchain.env)
|
||||
|
|
29
meson.build
29
meson.build
|
@ -597,9 +597,13 @@ if is_android
|
|||
declare_dependency(sources: [bridge_header]),
|
||||
java_dep,
|
||||
]
|
||||
|
||||
android_abi = get_option('android_abi')
|
||||
install_dir = meson.current_source_dir() / 'android/app/src/main/jnilibs' / android_abi
|
||||
else
|
||||
target_type = 'executable'
|
||||
target_name = 'mpd'
|
||||
install_dir = ''
|
||||
endif
|
||||
|
||||
mpd = build_target(
|
||||
|
@ -637,28 +641,27 @@ mpd = build_target(
|
|||
],
|
||||
link_args: link_args,
|
||||
build_by_default: not get_option('fuzzer'),
|
||||
install: not is_android
|
||||
install : true,
|
||||
install_dir: install_dir
|
||||
)
|
||||
|
||||
if is_android
|
||||
subdir('android/apk')
|
||||
endif
|
||||
|
||||
configure_file(output: 'config.h', configuration: conf)
|
||||
|
||||
if systemd_dep.found()
|
||||
subdir('systemd')
|
||||
endif
|
||||
|
||||
install_data(
|
||||
'mpd.svg',
|
||||
install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', 'scalable', 'apps'),
|
||||
)
|
||||
if not is_android
|
||||
install_data(
|
||||
'mpd.svg',
|
||||
install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', 'scalable', 'apps'),
|
||||
)
|
||||
|
||||
install_data(
|
||||
'AUTHORS', 'COPYING', 'NEWS', 'README.md',
|
||||
install_dir: join_paths(get_option('datadir'), 'doc', meson.project_name()),
|
||||
)
|
||||
install_data(
|
||||
'AUTHORS', 'COPYING', 'NEWS', 'README.md',
|
||||
install_dir: join_paths(get_option('datadir'), 'doc', meson.project_name()),
|
||||
)
|
||||
endif
|
||||
|
||||
subdir('doc')
|
||||
|
||||
|
|
Loading…
Reference in New Issue