build: optionally build and install with meson
This commit adds several meson.build, which successfully build and
install Lix executables, libraries, and headers. Meson does not yet
build docs, Perl bindings, or run tests, which will be added in
following commits. As such, this commit does not remove the existing
build system, or make it the default, and also as such, this commit has
several FIXMEs and TODOs as notes for what should be done before the
existing autoconf + make buildsystem can be removed and Meson made the
default. This commit does not modify any source files.
A Meson-enabled build is also added as a Hydra job, and to
`nix flake check`.
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
2024-03-21 19:41:23 +00:00
|
|
|
libutil_sources = files(
|
|
|
|
'archive.cc',
|
|
|
|
'args.cc',
|
|
|
|
'canon-path.cc',
|
|
|
|
'cgroup.cc',
|
|
|
|
'compression.cc',
|
|
|
|
'compute-levels.cc',
|
|
|
|
'config.cc',
|
2024-05-28 11:36:02 +00:00
|
|
|
'current-process.cc',
|
build: optionally build and install with meson
This commit adds several meson.build, which successfully build and
install Lix executables, libraries, and headers. Meson does not yet
build docs, Perl bindings, or run tests, which will be added in
following commits. As such, this commit does not remove the existing
build system, or make it the default, and also as such, this commit has
several FIXMEs and TODOs as notes for what should be done before the
existing autoconf + make buildsystem can be removed and Meson made the
default. This commit does not modify any source files.
A Meson-enabled build is also added as a Hydra job, and to
`nix flake check`.
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
2024-03-21 19:41:23 +00:00
|
|
|
'english.cc',
|
2024-05-28 08:50:54 +00:00
|
|
|
'environment-variables.cc',
|
build: optionally build and install with meson
This commit adds several meson.build, which successfully build and
install Lix executables, libraries, and headers. Meson does not yet
build docs, Perl bindings, or run tests, which will be added in
following commits. As such, this commit does not remove the existing
build system, or make it the default, and also as such, this commit has
several FIXMEs and TODOs as notes for what should be done before the
existing autoconf + make buildsystem can be removed and Meson made the
default. This commit does not modify any source files.
A Meson-enabled build is also added as a Hydra job, and to
`nix flake check`.
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
2024-03-21 19:41:23 +00:00
|
|
|
'error.cc',
|
2024-03-22 23:41:42 +00:00
|
|
|
'escape-char.cc',
|
2024-03-28 23:26:42 +00:00
|
|
|
'escape-string.cc',
|
build: optionally build and install with meson
This commit adds several meson.build, which successfully build and
install Lix executables, libraries, and headers. Meson does not yet
build docs, Perl bindings, or run tests, which will be added in
following commits. As such, this commit does not remove the existing
build system, or make it the default, and also as such, this commit has
several FIXMEs and TODOs as notes for what should be done before the
existing autoconf + make buildsystem can be removed and Meson made the
default. This commit does not modify any source files.
A Meson-enabled build is also added as a Hydra job, and to
`nix flake check`.
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
2024-03-21 19:41:23 +00:00
|
|
|
'exit.cc',
|
|
|
|
'experimental-features.cc',
|
2024-05-28 10:25:49 +00:00
|
|
|
'file-descriptor.cc',
|
2024-05-28 09:52:13 +00:00
|
|
|
'file-system.cc',
|
build: optionally build and install with meson
This commit adds several meson.build, which successfully build and
install Lix executables, libraries, and headers. Meson does not yet
build docs, Perl bindings, or run tests, which will be added in
following commits. As such, this commit does not remove the existing
build system, or make it the default, and also as such, this commit has
several FIXMEs and TODOs as notes for what should be done before the
existing autoconf + make buildsystem can be removed and Meson made the
default. This commit does not modify any source files.
A Meson-enabled build is also added as a Hydra job, and to
`nix flake check`.
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
2024-03-21 19:41:23 +00:00
|
|
|
'git.cc',
|
|
|
|
'hash.cc',
|
|
|
|
'hilite.cc',
|
|
|
|
'json-utils.cc',
|
|
|
|
'logging.cc',
|
|
|
|
'namespaces.cc',
|
|
|
|
'position.cc',
|
2024-03-28 23:26:42 +00:00
|
|
|
'print-elided.cc',
|
2024-05-28 11:14:13 +00:00
|
|
|
'processes.cc',
|
build: optionally build and install with meson
This commit adds several meson.build, which successfully build and
install Lix executables, libraries, and headers. Meson does not yet
build docs, Perl bindings, or run tests, which will be added in
following commits. As such, this commit does not remove the existing
build system, or make it the default, and also as such, this commit has
several FIXMEs and TODOs as notes for what should be done before the
existing autoconf + make buildsystem can be removed and Meson made the
default. This commit does not modify any source files.
A Meson-enabled build is also added as a Hydra job, and to
`nix flake check`.
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
2024-03-21 19:41:23 +00:00
|
|
|
'references.cc',
|
2024-03-30 00:29:44 +00:00
|
|
|
'regex.cc',
|
build: optionally build and install with meson
This commit adds several meson.build, which successfully build and
install Lix executables, libraries, and headers. Meson does not yet
build docs, Perl bindings, or run tests, which will be added in
following commits. As such, this commit does not remove the existing
build system, or make it the default, and also as such, this commit has
several FIXMEs and TODOs as notes for what should be done before the
existing autoconf + make buildsystem can be removed and Meson made the
default. This commit does not modify any source files.
A Meson-enabled build is also added as a Hydra job, and to
`nix flake check`.
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
2024-03-21 19:41:23 +00:00
|
|
|
'serialise.cc',
|
2024-03-15 00:44:43 +00:00
|
|
|
'shlex.cc',
|
build: optionally build and install with meson
This commit adds several meson.build, which successfully build and
install Lix executables, libraries, and headers. Meson does not yet
build docs, Perl bindings, or run tests, which will be added in
following commits. As such, this commit does not remove the existing
build system, or make it the default, and also as such, this commit has
several FIXMEs and TODOs as notes for what should be done before the
existing autoconf + make buildsystem can be removed and Meson made the
default. This commit does not modify any source files.
A Meson-enabled build is also added as a Hydra job, and to
`nix flake check`.
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
2024-03-21 19:41:23 +00:00
|
|
|
'signals.cc',
|
|
|
|
'source-path.cc',
|
|
|
|
'suggestions.cc',
|
|
|
|
'tarfile.cc',
|
2024-05-28 09:19:08 +00:00
|
|
|
'terminal.cc',
|
build: optionally build and install with meson
This commit adds several meson.build, which successfully build and
install Lix executables, libraries, and headers. Meson does not yet
build docs, Perl bindings, or run tests, which will be added in
following commits. As such, this commit does not remove the existing
build system, or make it the default, and also as such, this commit has
several FIXMEs and TODOs as notes for what should be done before the
existing autoconf + make buildsystem can be removed and Meson made the
default. This commit does not modify any source files.
A Meson-enabled build is also added as a Hydra job, and to
`nix flake check`.
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
2024-03-21 19:41:23 +00:00
|
|
|
'thread-pool.cc',
|
|
|
|
'url.cc',
|
2024-05-01 00:11:14 +00:00
|
|
|
'url-name.cc',
|
build: optionally build and install with meson
This commit adds several meson.build, which successfully build and
install Lix executables, libraries, and headers. Meson does not yet
build docs, Perl bindings, or run tests, which will be added in
following commits. As such, this commit does not remove the existing
build system, or make it the default, and also as such, this commit has
several FIXMEs and TODOs as notes for what should be done before the
existing autoconf + make buildsystem can be removed and Meson made the
default. This commit does not modify any source files.
A Meson-enabled build is also added as a Hydra job, and to
`nix flake check`.
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
2024-03-21 19:41:23 +00:00
|
|
|
'util.cc',
|
|
|
|
'xml-writer.cc',
|
|
|
|
)
|
|
|
|
|
|
|
|
libutil_headers = files(
|
|
|
|
'abstract-setting-to-json.hh',
|
|
|
|
'ansicolor.hh',
|
|
|
|
'archive.hh',
|
2024-03-29 01:37:14 +00:00
|
|
|
'args/root.hh',
|
build: optionally build and install with meson
This commit adds several meson.build, which successfully build and
install Lix executables, libraries, and headers. Meson does not yet
build docs, Perl bindings, or run tests, which will be added in
following commits. As such, this commit does not remove the existing
build system, or make it the default, and also as such, this commit has
several FIXMEs and TODOs as notes for what should be done before the
existing autoconf + make buildsystem can be removed and Meson made the
default. This commit does not modify any source files.
A Meson-enabled build is also added as a Hydra job, and to
`nix flake check`.
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
2024-03-21 19:41:23 +00:00
|
|
|
'args.hh',
|
|
|
|
'box_ptr.hh',
|
|
|
|
'canon-path.hh',
|
|
|
|
'cgroup.hh',
|
|
|
|
'chunked-vector.hh',
|
|
|
|
'closure.hh',
|
|
|
|
'comparator.hh',
|
|
|
|
'compression.hh',
|
|
|
|
'compute-levels.hh',
|
|
|
|
'config-impl.hh',
|
|
|
|
'config.hh',
|
2024-05-28 11:36:02 +00:00
|
|
|
'current-process.hh',
|
build: optionally build and install with meson
This commit adds several meson.build, which successfully build and
install Lix executables, libraries, and headers. Meson does not yet
build docs, Perl bindings, or run tests, which will be added in
following commits. As such, this commit does not remove the existing
build system, or make it the default, and also as such, this commit has
several FIXMEs and TODOs as notes for what should be done before the
existing autoconf + make buildsystem can be removed and Meson made the
default. This commit does not modify any source files.
A Meson-enabled build is also added as a Hydra job, and to
`nix flake check`.
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
2024-03-21 19:41:23 +00:00
|
|
|
'english.hh',
|
2024-05-28 08:50:54 +00:00
|
|
|
'environment-variables.hh',
|
build: optionally build and install with meson
This commit adds several meson.build, which successfully build and
install Lix executables, libraries, and headers. Meson does not yet
build docs, Perl bindings, or run tests, which will be added in
following commits. As such, this commit does not remove the existing
build system, or make it the default, and also as such, this commit has
several FIXMEs and TODOs as notes for what should be done before the
existing autoconf + make buildsystem can be removed and Meson made the
default. This commit does not modify any source files.
A Meson-enabled build is also added as a Hydra job, and to
`nix flake check`.
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
2024-03-21 19:41:23 +00:00
|
|
|
'error.hh',
|
2024-03-22 23:41:42 +00:00
|
|
|
'escape-char.hh',
|
2024-03-28 23:26:42 +00:00
|
|
|
'escape-string.hh',
|
build: optionally build and install with meson
This commit adds several meson.build, which successfully build and
install Lix executables, libraries, and headers. Meson does not yet
build docs, Perl bindings, or run tests, which will be added in
following commits. As such, this commit does not remove the existing
build system, or make it the default, and also as such, this commit has
several FIXMEs and TODOs as notes for what should be done before the
existing autoconf + make buildsystem can be removed and Meson made the
default. This commit does not modify any source files.
A Meson-enabled build is also added as a Hydra job, and to
`nix flake check`.
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
2024-03-21 19:41:23 +00:00
|
|
|
'exit.hh',
|
|
|
|
'experimental-features.hh',
|
2024-03-19 06:06:34 +00:00
|
|
|
'experimental-features-json.hh',
|
2024-05-28 10:25:49 +00:00
|
|
|
'file-descriptor.hh',
|
2024-05-28 09:52:13 +00:00
|
|
|
'file-system.hh',
|
build: optionally build and install with meson
This commit adds several meson.build, which successfully build and
install Lix executables, libraries, and headers. Meson does not yet
build docs, Perl bindings, or run tests, which will be added in
following commits. As such, this commit does not remove the existing
build system, or make it the default, and also as such, this commit has
several FIXMEs and TODOs as notes for what should be done before the
existing autoconf + make buildsystem can be removed and Meson made the
default. This commit does not modify any source files.
A Meson-enabled build is also added as a Hydra job, and to
`nix flake check`.
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
2024-03-21 19:41:23 +00:00
|
|
|
'finally.hh',
|
|
|
|
'fmt.hh',
|
|
|
|
'git.hh',
|
|
|
|
'hash.hh',
|
|
|
|
'hilite.hh',
|
|
|
|
'input-accessor.hh',
|
|
|
|
'json-impls.hh',
|
|
|
|
'json-utils.hh',
|
|
|
|
'logging.hh',
|
2024-03-19 06:06:34 +00:00
|
|
|
'logging-json.hh',
|
build: optionally build and install with meson
This commit adds several meson.build, which successfully build and
install Lix executables, libraries, and headers. Meson does not yet
build docs, Perl bindings, or run tests, which will be added in
following commits. As such, this commit does not remove the existing
build system, or make it the default, and also as such, this commit has
several FIXMEs and TODOs as notes for what should be done before the
existing autoconf + make buildsystem can be removed and Meson made the
default. This commit does not modify any source files.
A Meson-enabled build is also added as a Hydra job, and to
`nix flake check`.
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
2024-03-21 19:41:23 +00:00
|
|
|
'lru-cache.hh',
|
|
|
|
'monitor-fd.hh',
|
|
|
|
'namespaces.hh',
|
|
|
|
'pool.hh',
|
|
|
|
'position.hh',
|
2024-03-28 23:26:42 +00:00
|
|
|
'print-elided.hh',
|
2024-05-28 11:14:13 +00:00
|
|
|
'processes.hh',
|
build: optionally build and install with meson
This commit adds several meson.build, which successfully build and
install Lix executables, libraries, and headers. Meson does not yet
build docs, Perl bindings, or run tests, which will be added in
following commits. As such, this commit does not remove the existing
build system, or make it the default, and also as such, this commit has
several FIXMEs and TODOs as notes for what should be done before the
existing autoconf + make buildsystem can be removed and Meson made the
default. This commit does not modify any source files.
A Meson-enabled build is also added as a Hydra job, and to
`nix flake check`.
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
2024-03-21 19:41:23 +00:00
|
|
|
'ref.hh',
|
|
|
|
'references.hh',
|
|
|
|
'regex-combinators.hh',
|
2024-03-30 00:29:44 +00:00
|
|
|
'regex.hh',
|
build: optionally build and install with meson
This commit adds several meson.build, which successfully build and
install Lix executables, libraries, and headers. Meson does not yet
build docs, Perl bindings, or run tests, which will be added in
following commits. As such, this commit does not remove the existing
build system, or make it the default, and also as such, this commit has
several FIXMEs and TODOs as notes for what should be done before the
existing autoconf + make buildsystem can be removed and Meson made the
default. This commit does not modify any source files.
A Meson-enabled build is also added as a Hydra job, and to
`nix flake check`.
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
2024-03-21 19:41:23 +00:00
|
|
|
'repair-flag.hh',
|
|
|
|
'serialise.hh',
|
2024-03-15 00:44:43 +00:00
|
|
|
'shlex.hh',
|
build: optionally build and install with meson
This commit adds several meson.build, which successfully build and
install Lix executables, libraries, and headers. Meson does not yet
build docs, Perl bindings, or run tests, which will be added in
following commits. As such, this commit does not remove the existing
build system, or make it the default, and also as such, this commit has
several FIXMEs and TODOs as notes for what should be done before the
existing autoconf + make buildsystem can be removed and Meson made the
default. This commit does not modify any source files.
A Meson-enabled build is also added as a Hydra job, and to
`nix flake check`.
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
2024-03-21 19:41:23 +00:00
|
|
|
'signals.hh',
|
|
|
|
'source-path.hh',
|
|
|
|
'split.hh',
|
|
|
|
'suggestions.hh',
|
|
|
|
'sync.hh',
|
|
|
|
'tarfile.hh',
|
2024-05-28 09:19:08 +00:00
|
|
|
'terminal.hh',
|
build: optionally build and install with meson
This commit adds several meson.build, which successfully build and
install Lix executables, libraries, and headers. Meson does not yet
build docs, Perl bindings, or run tests, which will be added in
following commits. As such, this commit does not remove the existing
build system, or make it the default, and also as such, this commit has
several FIXMEs and TODOs as notes for what should be done before the
existing autoconf + make buildsystem can be removed and Meson made the
default. This commit does not modify any source files.
A Meson-enabled build is also added as a Hydra job, and to
`nix flake check`.
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
2024-03-21 19:41:23 +00:00
|
|
|
'thread-pool.hh',
|
|
|
|
'topo-sort.hh',
|
|
|
|
'types.hh',
|
|
|
|
'url-parts.hh',
|
2024-05-01 00:11:14 +00:00
|
|
|
'url-name.hh',
|
build: optionally build and install with meson
This commit adds several meson.build, which successfully build and
install Lix executables, libraries, and headers. Meson does not yet
build docs, Perl bindings, or run tests, which will be added in
following commits. As such, this commit does not remove the existing
build system, or make it the default, and also as such, this commit has
several FIXMEs and TODOs as notes for what should be done before the
existing autoconf + make buildsystem can be removed and Meson made the
default. This commit does not modify any source files.
A Meson-enabled build is also added as a Hydra job, and to
`nix flake check`.
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
2024-03-21 19:41:23 +00:00
|
|
|
'url.hh',
|
|
|
|
'util.hh',
|
|
|
|
'variant-wrapper.hh',
|
|
|
|
'xml-writer.hh',
|
|
|
|
)
|
|
|
|
|
|
|
|
libutil = library(
|
2024-05-17 00:04:05 +00:00
|
|
|
'lixutil',
|
build: optionally build and install with meson
This commit adds several meson.build, which successfully build and
install Lix executables, libraries, and headers. Meson does not yet
build docs, Perl bindings, or run tests, which will be added in
following commits. As such, this commit does not remove the existing
build system, or make it the default, and also as such, this commit has
several FIXMEs and TODOs as notes for what should be done before the
existing autoconf + make buildsystem can be removed and Meson made the
default. This commit does not modify any source files.
A Meson-enabled build is also added as a Hydra job, and to
`nix flake check`.
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
2024-03-21 19:41:23 +00:00
|
|
|
libutil_sources,
|
|
|
|
dependencies : [
|
|
|
|
aws_sdk,
|
|
|
|
aws_s3,
|
|
|
|
boehm,
|
|
|
|
boost,
|
|
|
|
cpuid,
|
|
|
|
seccomp,
|
|
|
|
libarchive,
|
|
|
|
brotli,
|
|
|
|
openssl,
|
2024-03-27 03:09:43 +00:00
|
|
|
nlohmann_json,
|
build: optionally build and install with meson
This commit adds several meson.build, which successfully build and
install Lix executables, libraries, and headers. Meson does not yet
build docs, Perl bindings, or run tests, which will be added in
following commits. As such, this commit does not remove the existing
build system, or make it the default, and also as such, this commit has
several FIXMEs and TODOs as notes for what should be done before the
existing autoconf + make buildsystem can be removed and Meson made the
default. This commit does not modify any source files.
A Meson-enabled build is also added as a Hydra job, and to
`nix flake check`.
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
2024-03-21 19:41:23 +00:00
|
|
|
],
|
|
|
|
implicit_include_directories : true,
|
|
|
|
install : true,
|
|
|
|
)
|
|
|
|
|
2024-05-17 00:04:05 +00:00
|
|
|
install_headers(libutil_headers, subdir : 'lix/libutil', preserve_path : true)
|
|
|
|
|
|
|
|
# FIXME: not using the pkg-config module because it creates way too many deps
|
|
|
|
# while meson migration is in progress, and we want to not include boost here
|
|
|
|
configure_file(
|
|
|
|
input : 'lix-util.pc.in',
|
|
|
|
output : 'lix-util.pc',
|
|
|
|
install_dir : libdir / 'pkgconfig',
|
|
|
|
configuration : {
|
|
|
|
'prefix' : prefix,
|
|
|
|
'libdir' : libdir,
|
|
|
|
'includedir' : includedir,
|
|
|
|
'PACKAGE_VERSION' : meson.project_version(),
|
|
|
|
},
|
|
|
|
)
|
build: optionally build and install with meson
This commit adds several meson.build, which successfully build and
install Lix executables, libraries, and headers. Meson does not yet
build docs, Perl bindings, or run tests, which will be added in
following commits. As such, this commit does not remove the existing
build system, or make it the default, and also as such, this commit has
several FIXMEs and TODOs as notes for what should be done before the
existing autoconf + make buildsystem can be removed and Meson made the
default. This commit does not modify any source files.
A Meson-enabled build is also added as a Hydra job, and to
`nix flake check`.
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
2024-03-21 19:41:23 +00:00
|
|
|
|
|
|
|
# Used by libstore and libfetchers.
|
|
|
|
liblixutil = declare_dependency(
|
|
|
|
include_directories : include_directories('.'),
|
|
|
|
link_with : libutil
|
|
|
|
)
|