summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2025-04-03 18:13:16 +0200
committerxengineering <me@xengineering.eu>2025-04-03 21:17:23 +0200
commitdb02eb87ce5e955f1c970ea3ce88745e03f0bb74 (patch)
tree2079dd5388962f61831b8dfcd3e1003688a45ce9
parentcfb844a53e6e008aaf3b7d1be3639559609d5540 (diff)
downloadiot-contact-db02eb87ce5e955f1c970ea3ce88745e03f0bb74.tar
iot-contact-db02eb87ce5e955f1c970ea3ce88745e03f0bb74.tar.zst
iot-contact-db02eb87ce5e955f1c970ea3ce88745e03f0bb74.zip
web: Add meson build system
CMake has some disadvantages when building subprojects like with `ExternalProject`. Furthermore the language is sometimes hard to read, hard to write and not so much appreciated. This is a little test if meson might perform better. If successful this project might switch to meson for all parts except the Zephyr builds.
-rw-r--r--meson.build3
-rw-r--r--web/meson.build16
2 files changed, 19 insertions, 0 deletions
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..537d067
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,3 @@
+project('iot-contact')
+
+subdir('web')
diff --git a/web/meson.build b/web/meson.build
new file mode 100644
index 0000000..3fcffed
--- /dev/null
+++ b/web/meson.build
@@ -0,0 +1,16 @@
+custom_target('website',
+ output: ['public'],
+ command: [
+ 'hugo',
+ '--source',
+ meson.current_source_dir(),
+ '--destination',
+ meson.current_build_dir() / 'public',
+ ],
+ depend_files: [
+ 'hugo.toml',
+ 'layouts/baseof.html',
+ 'layouts/home.html',
+ ],
+ build_by_default: true,
+)