mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
Compilers in nixpkgs have caught up and major distros should also have recent enough compilers. It would be nice to have newer features like more full featured ranges and deducing this.
41 lines
1 KiB
Meson
41 lines
1 KiB
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', {})
|
|
|
|
extra_cflags = []
|
|
if not meson.project_name().endswith('-c')
|
|
extra_cflags += [ '-std=c++23' ]
|
|
endif
|
|
|
|
import('pkgconfig').generate(
|
|
this_library,
|
|
filebase : meson.project_name(),
|
|
name : 'Nix',
|
|
description : 'Nix Package Manager',
|
|
extra_cflags : extra_cflags,
|
|
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++23' ],
|
|
dependencies : deps_public_subproject + deps_public,
|
|
variables : extra_pkg_config_variables,
|
|
),
|
|
)
|