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',
|
|
|
|
'english.cc',
|
|
|
|
'error.cc',
|
|
|
|
'exit.cc',
|
|
|
|
'experimental-features.cc',
|
|
|
|
'filesystem.cc',
|
|
|
|
'git.cc',
|
|
|
|
'hash.cc',
|
|
|
|
'hilite.cc',
|
|
|
|
'json-utils.cc',
|
|
|
|
'logging.cc',
|
|
|
|
'namespaces.cc',
|
|
|
|
'position.cc',
|
|
|
|
'references.cc',
|
|
|
|
'serialise.cc',
|
|
|
|
'signals.cc',
|
|
|
|
'source-path.cc',
|
|
|
|
'suggestions.cc',
|
|
|
|
'tarfile.cc',
|
|
|
|
'thread-pool.cc',
|
|
|
|
'url.cc',
|
|
|
|
'util.cc',
|
|
|
|
'xml-writer.cc',
|
|
|
|
)
|
|
|
|
|
|
|
|
libutil_headers = files(
|
|
|
|
'abstract-setting-to-json.hh',
|
|
|
|
'ansicolor.hh',
|
|
|
|
'archive.hh',
|
|
|
|
'args.hh',
|
|
|
|
'box_ptr.hh',
|
|
|
|
'callback.hh',
|
|
|
|
'canon-path.hh',
|
|
|
|
'cgroup.hh',
|
|
|
|
'chunked-vector.hh',
|
|
|
|
'closure.hh',
|
|
|
|
'comparator.hh',
|
|
|
|
'compression.hh',
|
|
|
|
'compute-levels.hh',
|
|
|
|
'config-impl.hh',
|
|
|
|
'config.hh',
|
|
|
|
'english.hh',
|
|
|
|
'error.hh',
|
|
|
|
'exit.hh',
|
|
|
|
'experimental-features.hh',
|
2024-03-19 06:06:34 +00:00
|
|
|
'experimental-features-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
|
|
|
'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',
|
|
|
|
'ref.hh',
|
|
|
|
'references.hh',
|
|
|
|
'regex-combinators.hh',
|
|
|
|
'repair-flag.hh',
|
|
|
|
'serialise.hh',
|
|
|
|
'signals.hh',
|
|
|
|
'source-path.hh',
|
|
|
|
'split.hh',
|
|
|
|
'suggestions.hh',
|
|
|
|
'sync.hh',
|
|
|
|
'tarfile.hh',
|
|
|
|
'thread-pool.hh',
|
|
|
|
'topo-sort.hh',
|
|
|
|
'types.hh',
|
|
|
|
'url-parts.hh',
|
|
|
|
'url.hh',
|
|
|
|
'util.hh',
|
|
|
|
'variant-wrapper.hh',
|
|
|
|
'xml-writer.hh',
|
|
|
|
)
|
|
|
|
|
|
|
|
libutil = library(
|
|
|
|
'nixutil',
|
|
|
|
libutil_sources,
|
|
|
|
dependencies : [
|
|
|
|
aws_sdk,
|
|
|
|
aws_s3,
|
|
|
|
boehm,
|
|
|
|
boost,
|
|
|
|
cpuid,
|
|
|
|
seccomp,
|
|
|
|
libarchive,
|
|
|
|
brotli,
|
|
|
|
openssl,
|
|
|
|
],
|
|
|
|
implicit_include_directories : true,
|
|
|
|
install : true,
|
|
|
|
)
|
|
|
|
|
|
|
|
install_headers(libutil_headers, subdir : 'nix', preserve_path : true)
|
|
|
|
|
|
|
|
# Used by libstore and libfetchers.
|
|
|
|
liblixutil = declare_dependency(
|
|
|
|
include_directories : include_directories('.'),
|
|
|
|
link_with : libutil
|
|
|
|
)
|