mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-04-28 22:34:09 +00:00
build: add templates
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
c597905e2f
commit
7172b98c77
10
meson.build
10
meson.build
@ -22,6 +22,7 @@ conf = configuration_data()
|
|||||||
conf.set_quoted('PROJECT_URL', 'https://linuxcontainers.org/lxc/introduction/')
|
conf.set_quoted('PROJECT_URL', 'https://linuxcontainers.org/lxc/introduction/')
|
||||||
conf.set('PROJECT_VERSION', meson.project_version(),
|
conf.set('PROJECT_VERSION', meson.project_version(),
|
||||||
description : 'Numerical project version (used where a simple number is expected)')
|
description : 'Numerical project version (used where a simple number is expected)')
|
||||||
|
conf.set('PACKAGE_VERSION', meson.project_version())
|
||||||
conf.set('_GNU_SOURCE', true)
|
conf.set('_GNU_SOURCE', true)
|
||||||
conf.set('__STDC_FORMAT_MACROS', true)
|
conf.set('__STDC_FORMAT_MACROS', true)
|
||||||
|
|
||||||
@ -401,15 +402,18 @@ liblxc_dep = declare_dependency(
|
|||||||
dummy_config_data = configuration_data()
|
dummy_config_data = configuration_data()
|
||||||
dummy_config_data.set_quoted('DUMMY_VARIABLE', '1')
|
dummy_config_data.set_quoted('DUMMY_VARIABLE', '1')
|
||||||
|
|
||||||
|
hook_programs = []
|
||||||
|
subdir('hooks')
|
||||||
|
|
||||||
|
template_scripts = []
|
||||||
|
subdir('templates')
|
||||||
|
|
||||||
cmd_programs = []
|
cmd_programs = []
|
||||||
subdir('src/lxc/cmd')
|
subdir('src/lxc/cmd')
|
||||||
|
|
||||||
public_programs = []
|
public_programs = []
|
||||||
subdir('src/lxc/tools')
|
subdir('src/lxc/tools')
|
||||||
|
|
||||||
hook_programs = []
|
|
||||||
subdir('hooks')
|
|
||||||
|
|
||||||
found_syscalls = []
|
found_syscalls = []
|
||||||
missing_syscalls = []
|
missing_syscalls = []
|
||||||
|
|
||||||
|
0
templates/lxc-busybox.in
Normal file → Executable file
0
templates/lxc-busybox.in
Normal file → Executable file
0
templates/lxc-download.in
Normal file → Executable file
0
templates/lxc-download.in
Normal file → Executable file
0
templates/lxc-local.in
Normal file → Executable file
0
templates/lxc-local.in
Normal file → Executable file
0
templates/lxc-oci.in
Normal file → Executable file
0
templates/lxc-oci.in
Normal file → Executable file
31
templates/meson.build
Normal file
31
templates/meson.build
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
|
template_scripts = configure_file(
|
||||||
|
configuration : dummy_config_data,
|
||||||
|
input : 'lxc-busybox.in',
|
||||||
|
output : 'lxc-busybox')
|
||||||
|
install_data(join_paths(project_build_root, 'templates/lxc-busybox'), install_dir : lxctemplatedir)
|
||||||
|
|
||||||
|
template_config_data = configuration_data()
|
||||||
|
template_config_data.set_quoted('LXCHOOKDIR', lxchookdir)
|
||||||
|
template_config_data.set_quoted('LXCTEMPLATECONFIG', lxctemplateconfig)
|
||||||
|
template_config_data.set_quoted('LOCALSTATEDIR', localstatedir)
|
||||||
|
template_config_data.set_quoted('PACKAGE_VERSION', meson.project_version())
|
||||||
|
|
||||||
|
template_scripts = configure_file(
|
||||||
|
configuration : template_config_data,
|
||||||
|
input : 'lxc-download.in',
|
||||||
|
output : 'lxc-download')
|
||||||
|
install_data(join_paths(project_build_root, 'templates/lxc-download'), install_dir : lxchookdir)
|
||||||
|
|
||||||
|
template_scripts = configure_file(
|
||||||
|
configuration : template_config_data,
|
||||||
|
input : 'lxc-local.in',
|
||||||
|
output : 'lxc-local')
|
||||||
|
install_data(join_paths(project_build_root, 'templates/lxc-local'), install_dir : lxchookdir)
|
||||||
|
|
||||||
|
template_scripts = configure_file(
|
||||||
|
configuration : template_config_data,
|
||||||
|
input : 'lxc-oci.in',
|
||||||
|
output : 'lxc-oci')
|
||||||
|
install_data(join_paths(project_build_root, 'templates/lxc-oci'), install_dir : lxchookdir)
|
Loading…
Reference in New Issue
Block a user