From 5bf2b9d30ccea0f5468b22abedbe1629691eab15 Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Mon, 19 Sep 2022 17:46:22 -0400 Subject: Add meson.build files Add meson configuration missed in previous commit. Bug-AGL: SPEC-4559 Signed-off-by: Scott Murray Change-Id: Idbcd961ab91cf48e7dc3b841aee3a79d0b615dcd --- bluetooth/meson.build | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 bluetooth/meson.build (limited to 'bluetooth/meson.build') diff --git a/bluetooth/meson.build b/bluetooth/meson.build new file mode 100644 index 0000000..008fda1 --- /dev/null +++ b/bluetooth/meson.build @@ -0,0 +1,29 @@ +qt5_dep = dependency('qt5', modules: ['Core', 'Qml']) + +glib_dep = [dependency('glib-2.0'), dependency('gio-2.0'), dependency('gobject-2.0'), dependency('gio-unix-2.0')] +bluez_glib_dep = dependency('bluez-glib') + +moc_files = qt5.compile_moc(headers : ['bluetooth.h', 'bluetoothmodel.h'], + dependencies: qt5_dep) + +src = ['bluetooth.cpp', 'bluetoothmodel.cpp', 'bluetootheventhandler.cpp', moc_files] +lib = shared_library('qtappfw-bt', + sources: src, + version: '1.0.0', + soversion: '0', + dependencies: [qt5_dep, glib_dep, bluez_glib_dep], + install: true) + +install_headers('bluetooth.h') + +pkg_mod = import('pkgconfig') +pkg_mod.generate(libraries : lib, + version : '1.0', + name : 'libqtappfw-bt', + filebase : 'qtappfw-bt', + requires: 'Qt5Qml', + description : 'AGL Qt demo app framework helper library for using BlueZ.') + +qtappfw_bt_dep = declare_dependency(link_with: lib, + include_directories: '.', + sources: ['bluetooth.h']) -- cgit 1.2.3-korg