aboutsummaryrefslogtreecommitdiffstats
path: root/app/meson.build
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2023-11-30 13:06:40 +0200
committerMarius Vlad <marius.vlad@collabora.com>2023-12-04 23:47:03 +0200
commit7fd8b36ce15d7617229a86a05e4e431631e684d5 (patch)
treef8360e055f221f74e41e376d0aee4b4790f149e8 /app/meson.build
parent7627784a867bd21e76d2889a3c99bbcfc12d3c3f (diff)
tbtnavi: Migrate to meson
This patch removes agl-shell-desktop support and migrates the entire tree to meson build system. Bug-AGL: SPEC-5003 Change-Id: Ia7728003e8069776c29641d91d1440cc65f297c5 Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Diffstat (limited to 'app/meson.build')
-rw-r--r--app/meson.build40
1 files changed, 40 insertions, 0 deletions
diff --git a/app/meson.build b/app/meson.build
new file mode 100644
index 0000000..864edb7
--- /dev/null
+++ b/app/meson.build
@@ -0,0 +1,40 @@
+cpp = meson.get_compiler('cpp')
+qt5_dep = dependency('qt5', modules: ['Qml', 'Quick', 'Gui', 'Location'])
+
+dep_qtappfw = [
+ dependency('qtappfw-navigation'),
+ dependency('qtappfw-vehicle-signals'),
+]
+
+tbtnavi_dep = [
+ qt5_dep,
+ dep_qtappfw,
+]
+
+tbtnavi_headers = [
+ 'qcheapruler.hpp',
+ 'navigation_client.h',
+ 'file_operation.h'
+]
+
+moc_files = qt5.compile_moc(headers: tbtnavi_headers,
+ dependencies: qt5_dep)
+
+tbtnavi_resources = [
+ 'images/images.qrc',
+ 'qml/qml.qrc'
+]
+
+resource_files = qt5.compile_resources(sources: tbtnavi_resources)
+
+tbtnavi_src = [
+ 'main.cpp',
+ 'navigation_client.cpp',
+ 'qcheapruler.cpp',
+ 'file_operation.cpp'
+]
+
+executable('tbtnavi', tbtnavi_src, resource_files, moc_files,
+ include_directories: include_directories('../include'),
+ dependencies : tbtnavi_dep,
+ install: true)