diff options
author | Scott Murray <scott.murray@konsulko.com> | 2022-09-19 17:46:22 -0400 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2022-09-19 17:47:00 -0400 |
commit | 5bf2b9d30ccea0f5468b22abedbe1629691eab15 (patch) | |
tree | fccf52d8bc4eff9a587af4a1d983c2e590d93668 /network | |
parent | 560d902f4d2bf4ba3bb2edba6436080ee7d5a5ac (diff) |
Add meson.build files
Add meson configuration missed in previous commit.
Bug-AGL: SPEC-4559
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Idbcd961ab91cf48e7dc3b841aee3a79d0b615dcd
Diffstat (limited to 'network')
-rw-r--r-- | network/meson.build | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/network/meson.build b/network/meson.build new file mode 100644 index 0000000..d60369d --- /dev/null +++ b/network/meson.build @@ -0,0 +1,43 @@ +qt5_dep = dependency('qt5', modules: ['Qml']) + +glib_dep = [dependency('glib-2.0'), dependency('gio-2.0'), dependency('gobject-2.0'), dependency('gio-unix-2.0')] +connman_glib_dep = dependency('connman-glib') + +network_headers = [ 'abstractnetworkmodel.h', + 'network.h', + 'networkadapter.h', + 'networkeventhandler.h', + 'wifiadapter.h', + 'wifinetworkmodel.h', + 'wiredadapter.h', + 'wirednetworkmodel.h' +] +moc_files = qt5.compile_moc(headers: network_headers, + dependencies: qt5_dep) + +src = [ 'network.cpp', + 'networkeventhandler.cpp', + 'wifiadapter.cpp', + 'wiredadapter.cpp', + 'wifinetworkmodel.cpp', + 'wirednetworkmodel.cpp', + 'abstractnetworkmodel.cpp', + 'connectionprofile.cpp', + moc_files, +] +lib = shared_library('qtappfw-network', + sources: src, + version: '1.0.0', + soversion: '0', + dependencies: [qt5_dep, glib_dep, connman_glib_dep], + install: true) + +install_headers(['network.h', 'networkadapter.h', 'wifiadapter.h', 'wiredadapter.h']) + +pkg_mod = import('pkgconfig') +pkg_mod.generate(libraries : lib, + version : '1.0', + name : 'libqtappfw-network', + filebase : 'qtappfw-network', + requires: 'Qt5Qml', + description : 'Library wrapping AGL network API in Qt objects') |