More dedup

This commit is contained in:
John Ericson 2024-06-27 12:42:43 -04:00
parent c88f83b471
commit d6f57f3260
14 changed files with 24 additions and 138 deletions

View file

@ -0,0 +1,11 @@
if host_machine.system() == 'cygwin' or host_machine.system() == 'windows'
# Windows DLLs are stricter about symbol visibility than Unix shared
# objects --- see https://gcc.gnu.org/wiki/Visibility for details.
# This is a temporary sledgehammer to export everything like on Unix,
# and not detail with this yet.
#
# TODO do not do this, and instead do fine-grained export annotations.
linker_export_flags = ['-Wl,--export-all-symbols']
else
linker_export_flags = []
endif

View file

@ -79,17 +79,7 @@ headers = [config_h] + files(
'nix_api_value.h',
)
if host_machine.system() == 'cygwin' or host_machine.system() == 'windows'
# Windows DLLs are stricter ab_subprojectout symbol visibility than Unix shared
# objects --- see https://gcc.gnu.org/wiki/Visibility for details.
# This is a temporary sledgehammer to export everything like on Unix,
# and not detail with this yet.
#
# TODO do not do this, and instead do fine-grained export annotations.
linker_export_flags = ['-Wl,--export-all-symbols']
else
linker_export_flags = []
endif
subdir('meson-utils/export-all-symbols')
this_library = library(
'nixexprc',

View file

@ -63,17 +63,7 @@ headers = files(
'tests/value/context.hh',
)
if host_machine.system() == 'cygwin' or host_machine.system() == 'windows'
# Windows DLLs are stricter about symbol visibility than Unix shared
# objects --- see https://gcc.gnu.org/wiki/Visibility for details.
# This is a temporary sledgehammer to export everything like on Unix,
# and not detail with this yet.
#
# TODO do not do this, and instead do fine-grained export annotations.
linker_export_flags = ['-Wl,--export-all-symbols']
else
linker_export_flags = []
endif
subdir('meson-utils/export-all-symbols')
this_library = library(
'nix-expr-test-support',

View file

@ -31,17 +31,7 @@ deps_public_maybe_subproject = [
]
subdir('meson-utils/subprojects')
if host_machine.system() == 'cygwin' or host_machine.system() == 'windows'
# Windows DLLs are stricter about symbol visibility than Unix shared
# objects --- see https://gcc.gnu.org/wiki/Visibility for details.
# This is a temporary sledgehammer to export everything like on Unix,
# and not detail with this yet.
#
# TODO do not do this, and instead do fine-grained export annotations.
linker_export_flags = ['-Wl,--export-all-symbols']
else
linker_export_flags = []
endif
subdir('meson-utils/export-all-symbols')
rapidcheck = dependency('rapidcheck')
deps_private += rapidcheck

View file

@ -29,17 +29,7 @@ deps_public_maybe_subproject = [
]
subdir('meson-utils/subprojects')
if host_machine.system() == 'cygwin' or host_machine.system() == 'windows'
# Windows DLLs are stricter about symbol visibility than Unix shared
# objects --- see https://gcc.gnu.org/wiki/Visibility for details.
# This is a temporary sledgehammer to export everything like on Unix,
# and not detail with this yet.
#
# TODO do not do this, and instead do fine-grained export annotations.
linker_export_flags = ['-Wl,--export-all-symbols']
else
linker_export_flags = []
endif
subdir('meson-utils/export-all-symbols')
rapidcheck = dependency('rapidcheck')
deps_private += rapidcheck

View file

@ -32,17 +32,7 @@ deps_public_maybe_subproject = [
]
subdir('meson-utils/subprojects')
if host_machine.system() == 'cygwin' or host_machine.system() == 'windows'
# Windows DLLs are stricter about symbol visibility than Unix shared
# objects --- see https://gcc.gnu.org/wiki/Visibility for details.
# This is a temporary sledgehammer to export everything like on Unix,
# and not detail with this yet.
#
# TODO do not do this, and instead do fine-grained export annotations.
linker_export_flags = ['-Wl,--export-all-symbols']
else
linker_export_flags = []
endif
subdir('meson-utils/export-all-symbols')
rapidcheck = dependency('rapidcheck')
deps_private += rapidcheck

View file

@ -71,17 +71,7 @@ headers = [config_h] + files(
'nix_api_store.h',
)
if host_machine.system() == 'cygwin' or host_machine.system() == 'windows'
# Windows DLLs are stricter ab_subprojectout symbol visibility than Unix shared
# objects --- see https://gcc.gnu.org/wiki/Visibility for details.
# This is a temporary sledgehammer to export everything like on Unix,
# and not detail with this yet.
#
# TODO do not do this, and instead do fine-grained export annotations.
linker_export_flags = ['-Wl,--export-all-symbols']
else
linker_export_flags = []
endif
subdir('meson-utils/export-all-symbols')
this_library = library(
'nixstorec',

View file

@ -65,17 +65,7 @@ headers = files(
'tests/protocol.hh',
)
if host_machine.system() == 'cygwin' or host_machine.system() == 'windows'
# Windows DLLs are stricter about symbol visibility than Unix shared
# objects --- see https://gcc.gnu.org/wiki/Visibility for details.
# This is a temporary sledgehammer to export everything like on Unix,
# and not detail with this yet.
#
# TODO do not do this, and instead do fine-grained export annotations.
linker_export_flags = ['-Wl,--export-all-symbols']
else
linker_export_flags = []
endif
subdir('meson-utils/export-all-symbols')
this_library = library(
'nix-store-test-support',

View file

@ -28,17 +28,7 @@ deps_public_maybe_subproject = [
]
subdir('meson-utils/subprojects')
if host_machine.system() == 'cygwin' or host_machine.system() == 'windows'
# Windows DLLs are stricter about symbol visibility than Unix shared
# objects --- see https://gcc.gnu.org/wiki/Visibility for details.
# This is a temporary sledgehammer to export everything like on Unix,
# and not detail with this yet.
#
# TODO do not do this, and instead do fine-grained export annotations.
linker_export_flags = ['-Wl,--export-all-symbols']
else
linker_export_flags = []
endif
subdir('meson-utils/export-all-symbols')
rapidcheck = dependency('rapidcheck')
deps_private += rapidcheck

View file

@ -401,12 +401,7 @@ foreach name, value : cpp_str_defines
]
endforeach
if host_machine.system() == 'cygwin' or host_machine.system() == 'windows'
# See note in `../nix-util/meson.build`
linker_export_flags = ['-Wl,--export-all-symbols']
else
linker_export_flags = []
endif
subdir('meson-utils/export-all-symbols')
this_library = library(
'nixstore',

View file

@ -68,17 +68,7 @@ headers = [config_h] + files(
'nix_api_util.h',
)
if host_machine.system() == 'cygwin' or host_machine.system() == 'windows'
# Windows DLLs are stricter ab_subprojectout symbol visibility than Unix shared
# objects --- see https://gcc.gnu.org/wiki/Visibility for details.
# This is a temporary sledgehammer to export everything like on Unix,
# and not detail with this yet.
#
# TODO do not do this, and instead do fine-grained export annotations.
linker_export_flags = ['-Wl,--export-all-symbols']
else
linker_export_flags = []
endif
subdir('meson-utils/export-all-symbols')
this_library = library(
'nixutilc',

View file

@ -60,17 +60,7 @@ headers = files(
'tests/string_callback.hh',
)
if host_machine.system() == 'cygwin' or host_machine.system() == 'windows'
# Windows DLLs are stricter about symbol visibility than Unix shared
# objects --- see https://gcc.gnu.org/wiki/Visibility for details.
# This is a temporary sledgehammer to export everything like on Unix,
# and not detail with this yet.
#
# TODO do not do this, and instead do fine-grained export annotations.
linker_export_flags = ['-Wl,--export-all-symbols']
else
linker_export_flags = []
endif
subdir('meson-utils/export-all-symbols')
this_library = library(
'nix-util-test-support',

View file

@ -25,17 +25,7 @@ deps_public_maybe_subproject = [
]
subdir('meson-utils/subprojects')
if host_machine.system() == 'cygwin' or host_machine.system() == 'windows'
# Windows DLLs are stricter about symbol visibility than Unix shared
# objects --- see https://gcc.gnu.org/wiki/Visibility for details.
# This is a temporary sledgehammer to export everything like on Unix,
# and not detail with this yet.
#
# TODO do not do this, and instead do fine-grained export annotations.
linker_export_flags = ['-Wl,--export-all-symbols']
else
linker_export_flags = []
endif
subdir('meson-utils/export-all-symbols')
rapidcheck = dependency('rapidcheck')
deps_private += rapidcheck

View file

@ -257,17 +257,7 @@ else
subdir('unix')
endif
if host_machine.system() == 'cygwin' or host_machine.system() == 'windows'
# Windows DLLs are stricter about symbol visibility than Unix shared
# objects --- see https://gcc.gnu.org/wiki/Visibility for details.
# This is a temporary sledgehammer to export everything like on Unix,
# and not detail with this yet.
#
# TODO do not do this, and instead do fine-grained export annotations.
linker_export_flags = ['-Wl,--export-all-symbols']
else
linker_export_flags = []
endif
subdir('meson-utils/export-all-symbols')
this_library = library(
'nixutil',