From 18ad33abe2010dbdebaa843c2daeb63aed2b3b9b Mon Sep 17 00:00:00 2001 From: Matthias Klumpp Date: Fri, 19 Sep 2025 14:47:55 +0200 Subject: [PATCH] meson: Add pkg-config file (#310) --- meson.build | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/meson.build b/meson.build index 422ffea..53f55fa 100644 --- a/meson.build +++ b/meson.build @@ -6,6 +6,7 @@ project( meson_version: '>=0.56' ) +pkgc = import('pkgconfig') inja_dep = declare_dependency( include_directories: include_directories('include', 'third_party/include') @@ -29,6 +30,15 @@ install_headers( subdir: 'inja' ) +pkgc.generate( + version: meson.project_version(), + name: 'inja', + description: 'Template engine for modern C++', + url: 'https://github.com/pantor/inja', + requires: ['nlohmann_json'], + dataonly: true, +) + run_command( find_program('scripts/update_single_include.sh'),