unit/auto/modules/conf
Andrew Clayton 2b4a7eedd0 Wasm: Wire the Wasm language module up to the build system.
This allows to configure the Wasm module, e.g

  ./configure wasm --include-path=/path/to/wasmtime-v11.0.0-x86_64-linux-c-api/include --lib-path=/path/to/wasmtime-v11.0.0-x86_64-linux-c-api/lib --rpath

--rpath as above says to set the rpath to the value of --lib-path. You
can alternatively specify a directory to use as the rpath. Or simply
omit the option to not have an rpath set.

This is mostly useful for during development where you may not have the
Wasmtime stuff installed to system directories or you want to test with
newer/different versions.

See ./configure wasm --help for a full list of options.

Reviewed-by: Alejandro Colomar <alx@nginx.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
2023-08-17 13:09:42 +01:00

47 lines
539 B
Text

# Copyright (C) Igor Sysoev
# Copyright (C) NGINX, Inc.
case "$nxt_module" in
python)
. auto/modules/python
;;
php)
. auto/modules/php
;;
go)
. auto/modules/go
;;
perl)
. auto/modules/perl
;;
ruby)
. auto/modules/ruby
;;
nodejs)
. auto/modules/nodejs
;;
java)
. auto/modules/java
;;
wasm)
. auto/modules/wasm
;;
*)
echo
echo $0: error: invalid module \"$nxt_module\".
echo
exit 1
;;
esac