diff options
author | Scott Murray <scott.murray@konsulko.com> | 2022-09-21 14:36:08 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@automotivelinux.org> | 2022-09-21 14:36:08 +0000 |
commit | 187ab41bb5082d07b6a81fb9dba2564f39e9d770 (patch) | |
tree | acd46fb235e92c594bb72d43034775a68c4dfb23 /mediaplayer | |
parent | 7573b0647a78baa3346b6a1a964ece01ed49a86c (diff) | |
parent | 06810868c74ddea6e336fd8f44692a975c628eba (diff) |
Merge "Add meson.build files" into needlefish
Diffstat (limited to 'mediaplayer')
-rw-r--r-- | mediaplayer/meson.build | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/mediaplayer/meson.build b/mediaplayer/meson.build new file mode 100644 index 0000000..ff2db0a --- /dev/null +++ b/mediaplayer/meson.build @@ -0,0 +1,36 @@ +qt5_dep = dependency('qt5', modules: ['Qml']) + +mpdclient_dep = dependency('libmpdclient') + +mediaplayer_headers = [ 'MediaplayerBackend.h', + 'MediaplayerBluezBackend.h', + 'MediaplayerMpdBackend.h', + 'MpdEventHandler.h', + 'mediaplayer.h' +] +moc_files = qt5.compile_moc(headers: mediaplayer_headers, + dependencies: qt5_dep) + +src = [ 'MediaplayerBackend.cpp', + 'MediaplayerBluezBackend.cpp', + 'MediaplayerMpdBackend.cpp', + 'MpdEventHandler.cpp', + 'mediaplayer.cpp', + moc_files +] +lib = shared_library('qtappfw-mediaplayer', + sources: src, + version: '1.0.0', + soversion: '0', + dependencies: [qt5_dep, mpdclient_dep, qtappfw_bt_dep, qtappfw_vs_dep], + install: true) + +install_headers('mediaplayer.h') + +pkg_mod = import('pkgconfig') +pkg_mod.generate(libraries: lib, + version: '1.0', + name: 'libqtappfw-mediaplayer', + filebase: 'qtappfw-mediaplayer', + requires: 'Qt5Qml', + description: 'Library wrapping AGL mediaplayer API in Qt objects') |