Files
Zurab Kvachadze 8fd3258d35 quickjs.h: Add JS_MODULE_EXTERN macro and use it in examples/
The new macro is a counterpart to JS_EXTERN, but for binary C modules.
This commit introduces one more preprocessor define that must be set
when building C modules.

This commit changes examples/fib.c and examples/point.c to use the new
macro, while also removing redundant JS_SHARED_LIBRARY. Additionally,
the includes use the angled brackets now since quickjs.h is supposed to
be external to the binary modules.

meson.build is fixed to properly add the include directory; the manual
header copying has also been removed as it is redundant.

Signed-off-by: Zurab Kvachadze <[email protected]>
2026-02-09 14:28:55 +01:00

18 lines
253 B
Meson

shared_module(
'fib',
'fib.c',
name_prefix: '',
gnu_symbol_visibility: 'hidden',
dependencies: qjs_module_dep,
)
shared_module(
'point',
'point.c',
name_prefix: '',
gnu_symbol_visibility: 'hidden',
dependencies: qjs_module_dep,
)