From dcebf9c7f954a55350b68d0ead1935612c4e2e05 Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Thu, 15 Oct 2026 13:04:01 +0300 Subject: Rename the library to wsap_vtcore ncurses installs and defines struct term. In a file that includes both headers, an ncurses TERMINAL * and this library's terminal are silently the same type. The name wsap_vtcore avoids the clash. The public header is now . Every global symbol uses the wsap_vtcore_ prefix, every macro uses WSAP_VTCORE_, and the shared library is libwsap_vtcore.so.0. The default terminal name is now "wsap_vtcore". The ISA override variable is WSAP_VTCORE_ISA. No other behavior changes. The amalgamation writes wsap_vtcore.c and wsap_vtcore.h. Co-Authored-By: Claude Haiku 5.5 --- meson.build | 56 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index e25bf13..61eb606 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,4 @@ -project('term', 'c', +project('wsap_vtcore', 'c', version: '0.1.0', license: 'MIT', license_files: 'LICENSE', @@ -22,54 +22,54 @@ if get_option('arch_flag') != '' endif # A host sees include/ only. The sources also find the public headers -# without the term/ prefix. -term_inc = include_directories('include') -term_private_inc = include_directories('src', 'include/term') +# without the wsap_vtcore/ prefix. +wsap_vtcore_inc = include_directories('include') +wsap_vtcore_private_inc = include_directories('src', 'include/wsap_vtcore') subdir('src') -term_dep = declare_dependency( - include_directories: term_inc, - link_with: term_lib.get_static_lib(), +wsap_vtcore_dep = declare_dependency( + include_directories: wsap_vtcore_inc, + link_with: wsap_vtcore_lib.get_static_lib(), dependencies: [m_dep, thread_dep], ) -meson.override_dependency('term', term_dep) +meson.override_dependency('wsap_vtcore', wsap_vtcore_dep) -# The private headers too. Only the term tests and benchmarks use it. -term_internal_dep = declare_dependency( - include_directories: [term_inc, term_private_inc], - link_with: term_lib.get_static_lib(), +# The private headers too. Only the wsap_vtcore tests and benchmarks use it. +wsap_vtcore_internal_dep = declare_dependency( + include_directories: [wsap_vtcore_inc, wsap_vtcore_private_inc], + link_with: wsap_vtcore_lib.get_static_lib(), dependencies: [m_dep, thread_dep], ) -# The short forms of term.h that the term tests use. A host project can use +# The short forms of wsap_vtcore.h that the tests use. A host project can use # them in its own tests. -term_test_dep = declare_dependency( +wsap_vtcore_test_dep = declare_dependency( include_directories: include_directories('tests/helpers'), - dependencies: term_dep, + dependencies: wsap_vtcore_dep, ) -meson.override_dependency('term-test', term_test_dep) +meson.override_dependency('wsap_vtcore-test', wsap_vtcore_test_dep) install_headers( - 'include/term/term.h', - 'include/term/term_input.h', - 'include/term/term_types.h', - subdir: 'term', + 'include/wsap_vtcore/wsap_vtcore.h', + 'include/wsap_vtcore/wsap_vtcore_input.h', + 'include/wsap_vtcore/wsap_vtcore_types.h', + subdir: 'wsap_vtcore', ) install_headers( - 'include/term/unicode/grapheme.h', - 'include/term/unicode/unicode.h', - 'include/term/unicode/unicode_data.inc', - 'include/term/unicode/utf8.h', - 'include/term/unicode/width.h', - subdir: 'term/unicode', + 'include/wsap_vtcore/unicode/grapheme.h', + 'include/wsap_vtcore/unicode/unicode.h', + 'include/wsap_vtcore/unicode/unicode_data.inc', + 'include/wsap_vtcore/unicode/utf8.h', + 'include/wsap_vtcore/unicode/width.h', + subdir: 'wsap_vtcore/unicode', ) pkg = import('pkgconfig') pkg.generate( - term_lib.get_shared_lib(), - name: 'term', + wsap_vtcore_lib.get_shared_lib(), + name: 'wsap_vtcore', description: 'Headless terminal emulator core library', version: meson.project_version(), subdirs: ['.'], -- cgit v1.2.3