Skip to content

Commit 6eaae9e

Browse files
committed
feat: add libffi static library and pkg-config
1 parent 1b61699 commit 6eaae9e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

meson.build

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,20 @@ shared_module('libffi-side',
2626
install_dir: get_option('libdir')
2727
)
2828

29+
# Static library for linking by dependent libraries
30+
libffi = static_library('ffi',
31+
files('wasm/libffi_wasm_module.c'),
32+
c_args: cargs,
33+
install: true,
34+
install_dir: get_option('libdir')
35+
)
36+
37+
# Generate and install pkg-config file for glib dependency
38+
pkg = import('pkgconfig')
39+
pkg.generate(
40+
name: 'libffi',
41+
description: 'Foreign Function Interface library',
42+
version: meson.project_version(),
43+
libraries: '-lffi'
44+
)
45+

0 commit comments

Comments
 (0)