1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-14 06:22:42 +01:00

Revert "Unexpose config headers (low hanging fruit only) (backport #12773)"

This commit is contained in:
John Ericson 2025-03-31 11:57:46 -04:00 committed by GitHub
parent 3e59cc0552
commit ce209f1cd7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 82 additions and 25 deletions

View file

@ -23,6 +23,7 @@ deps_public_maybe_subproject = [
]
subdir('nix-meson-build-support/subprojects')
# TODO rename, because it will conflict with downstream projects
configdata.set_quoted('PACKAGE_VERSION', meson.project_version())
config_h = configure_file(
@ -37,6 +38,8 @@ add_project_arguments(
# From C++ libraries, only for internals
'-include', 'config-util.hh',
# From C libraries, for our public, installed headers too
'-include', 'config-util.h',
language : 'cpp',
)
@ -48,7 +51,7 @@ sources = files(
include_dirs = [include_directories('.')]
headers = files(
headers = [config_h] + files(
'nix_api_util.h',
)
@ -61,7 +64,6 @@ subdir('nix-meson-build-support/windows-version')
this_library = library(
'nixutilc',
sources,
config_h,
dependencies : deps_public + deps_private + deps_other,
include_directories : include_dirs,
link_args: linker_export_flags,

View file

@ -7,8 +7,6 @@
#include <cxxabi.h>
#include <typeinfo>
#include "config-util.h"
nix_c_context * nix_c_context_create()
{
return new nix_c_context();