mirror of
https://github.com/NixOS/nix
synced 2025-06-26 03:21:16 +02:00
Deduplicating
This commit is contained in:
parent
17a8c2bfce
commit
a81e319528
36 changed files with 128 additions and 476 deletions
1
src/libexpr-c/meson-utils
Symbolic link
1
src/libexpr-c/meson-utils
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../meson-utils
|
|
@ -14,20 +14,7 @@ project('nix-expr-c', 'cpp',
|
|||
|
||||
cxx = meson.get_compiler('cpp')
|
||||
|
||||
# See note in ../nix-util/meson.build
|
||||
deps_private = [ ]
|
||||
|
||||
# See note in ../nix-util/meson.build
|
||||
deps_private_subproject = [ ]
|
||||
|
||||
# See note in ../nix-util/meson.build
|
||||
deps_public = [ ]
|
||||
|
||||
# See note in ../nix-util/meson.build
|
||||
deps_public_subproject = [ ]
|
||||
|
||||
# See note in ../nix-util/meson.build
|
||||
deps_other = [ ]
|
||||
subdir('meson-utils')
|
||||
|
||||
configdata = configuration_data()
|
||||
|
||||
|
@ -128,32 +115,6 @@ this_library = library(
|
|||
|
||||
install_headers(headers, subdir : 'nix', preserve_path : true)
|
||||
|
||||
requires_private = []
|
||||
foreach dep : deps_private_subproject
|
||||
requires_private += dep.name()
|
||||
endforeach
|
||||
requires_private += deps_private
|
||||
libraries_private = []
|
||||
|
||||
requires_public = []
|
||||
foreach dep : deps_public_subproject
|
||||
requires_public += dep.name()
|
||||
endforeach
|
||||
requires_public += deps_public
|
||||
|
||||
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,
|
||||
)
|
||||
|
||||
meson.override_dependency(meson.project_name(), declare_dependency(
|
||||
include_directories : include_dirs,
|
||||
link_with : this_library,
|
||||
compile_args : ['-std=c++2a'],
|
||||
dependencies : [],
|
||||
))
|
||||
subdir('meson-utils/export')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue