From db02eb87ce5e955f1c970ea3ce88745e03f0bb74 Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 3 Apr 2025 18:13:16 +0200 Subject: 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. --- meson.build | 3 +++ web/meson.build | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 meson.build create mode 100644 web/meson.build 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, +) -- cgit v1.2.3-70-g09d2