mirror of
https://github.com/pantor/inja.git
synced 2026-10-05 20:10:36 +00:00
meson: Add pkg-config file (#310)
This commit is contained in:
+10
@@ -6,6 +6,7 @@ project(
|
|||||||
meson_version: '>=0.56'
|
meson_version: '>=0.56'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
pkgc = import('pkgconfig')
|
||||||
|
|
||||||
inja_dep = declare_dependency(
|
inja_dep = declare_dependency(
|
||||||
include_directories: include_directories('include', 'third_party/include')
|
include_directories: include_directories('include', 'third_party/include')
|
||||||
@@ -29,6 +30,15 @@ install_headers(
|
|||||||
subdir: 'inja'
|
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(
|
run_command(
|
||||||
find_program('scripts/update_single_include.sh'),
|
find_program('scripts/update_single_include.sh'),
|
||||||
|
|||||||
Reference in New Issue
Block a user