meson.build: add

This commit is contained in:
Luc Bijl 2025-08-01 21:51:35 +02:00
parent d3133e3ed8
commit e98a8feece
3 changed files with 23 additions and 0 deletions

2
data/meson.build Normal file
View file

@ -0,0 +1,2 @@
# Add path of file to data
data += join_paths(meson.current_source_dir(), 'initramfs-init')

3
features/meson.build Normal file
View file

@ -0,0 +1,3 @@
# Add paths of files to features
features += join_paths(meson.current_source_dir(), 'zlevis.files')
features += join_paths(meson.current_source_dir(), 'zlevis.modules')

18
meson.build Normal file
View file

@ -0,0 +1,18 @@
# Project definition
project('zlevis-mkinitfs', license: 'GPL3')
# Define mkinitfs features and data dir
features_dir = '/etc/mkinitfs/features.d/'
data_dir = '/usr/share/mkinitfs/'
# Define features and data list
features = []
data = []
# Define subdir with features and subdir with data
subdir('features')
subdir('data')
# Install features in features dir and data in data dir
install_data(features, install_dir: features_dir)
install_data(data, install_dir: data_dir)