mirror of
https://github.com/radareorg/quickjs.git
synced 2026-11-07 06:25:57 -10:00
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]>
18 lines
253 B
Meson
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,
|
|
)
|