mirror of
https://github.com/NixOS/nix.git
synced 2025-11-16 15:32:43 +01:00
try to calculate character width
This commit is contained in:
parent
6a23803066
commit
92e30955b9
7 changed files with 1636 additions and 29 deletions
|
|
@ -108,6 +108,8 @@ deps_private += cpuid
|
|||
nlohmann_json = dependency('nlohmann_json', version : '>= 3.9')
|
||||
deps_public += nlohmann_json
|
||||
|
||||
cxx = meson.get_compiler('cpp')
|
||||
|
||||
config_h = configure_file(
|
||||
configuration : configdata,
|
||||
output : 'config-util.hh',
|
||||
|
|
@ -168,6 +170,10 @@ sources = files(
|
|||
)
|
||||
|
||||
include_dirs = [include_directories('.')]
|
||||
if not cxx.has_header('widechar_width.h', required : false)
|
||||
# use vendored widechar_width.h
|
||||
include_dirs += include_directories('./widecharwidth')
|
||||
endif
|
||||
|
||||
headers = [config_h] + files(
|
||||
'abstract-setting-to-json.hh',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue