mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-28 00:26:15 +02:00
c7ec33605e
Meson-ify a few things, scripts, completions, etc. Should make our Meson build complete except for docs. Co-Authored-By: Qyriad <qyriad@qyriad.me> Co-Authored-By: eldritch horrors <pennae@lix.systems>
33 lines
962 B
Meson
33 lines
962 B
Meson
requires_private = []
|
|
foreach dep : deps_private_subproject
|
|
requires_private += dep.name()
|
|
endforeach
|
|
requires_private += deps_private
|
|
|
|
requires_public = []
|
|
foreach dep : deps_public_subproject
|
|
requires_public += dep.name()
|
|
endforeach
|
|
requires_public += deps_public
|
|
|
|
extra_pkg_config_variables = get_variable('extra_pkg_config_variables', {})
|
|
import('pkgconfig').generate(
|
|
this_library,
|
|
filebase : meson.project_name(),
|
|
name : 'Nix',
|
|
description : 'Nix Package Manager',
|
|
subdirs : ['nix'],
|
|
extra_cflags : ['-std=c++2a'],
|
|
requires : requires_public,
|
|
requires_private : requires_private,
|
|
libraries_private : libraries_private,
|
|
variables : extra_pkg_config_variables,
|
|
)
|
|
|
|
meson.override_dependency(meson.project_name(), declare_dependency(
|
|
include_directories : include_dirs,
|
|
link_with : this_library,
|
|
compile_args : ['-std=c++2a'],
|
|
dependencies : deps_public_subproject + deps_public,
|
|
variables : extra_pkg_config_variables,
|
|
))
|