1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-11 04:56:01 +01:00

Merge pull request #12773 from roberth/config-h-low-hanging-fruit

Unexpose config headers (low hanging fruit only)
This commit is contained in:
John Ericson 2025-03-28 12:43:28 -04:00 committed by GitHub
commit c36a9b8e1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 25 additions and 82 deletions

View file

@ -63,9 +63,7 @@ add_project_arguments(
# It would be nice for our headers to be idempotent instead.
'-include', 'config-util.hh',
'-include', 'config-store.hh',
# '-include', 'config-fetchers.h',
'-include', 'config-expr.hh',
'-include', 'config-main.hh',
'-include', 'config-cmd.hh',
language : 'cpp',
)
@ -93,7 +91,7 @@ sources = files(
include_dirs = [include_directories('.')]
headers = [config_h] + files(
headers = files(
'built-path.hh',
'command-installable-value.hh',
'command.hh',
@ -119,6 +117,7 @@ subdir('nix-meson-build-support/windows-version')
this_library = library(
'nixcmd',
sources,
config_h,
dependencies : deps_public + deps_private + deps_other,
include_directories : include_dirs,
link_args: linker_export_flags,