diff options
| author | Hannes Schulze <haschu0103@outlook.de> | 2025-06-20 16:27:42 +0200 |
|---|---|---|
| committer | Hannes Schulze <haschu0103@outlook.de> | 2025-06-20 16:27:42 +0200 |
| commit | 519956797d905c0925b8dd418ceb17c7495ad30a (patch) | |
| tree | 5a26d1b6df1ddce517a47d3105761820b29a8953 /setup-lib.sh | |
| parent | 1af3d14f3f995645a0de08a54b244c19840709e9 (diff) | |
set up haskell bindings for c lib
Diffstat (limited to 'setup-lib.sh')
| -rwxr-xr-x | setup-lib.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/setup-lib.sh b/setup-lib.sh new file mode 100755 index 0000000..d827f13 --- /dev/null +++ b/setup-lib.sh @@ -0,0 +1,17 @@ +pushd lib + +rm -rf build +meson setup build +ninja -C build + +cabal clean +LD_LIBRARY_PATH="build:$LD_LIBRARY_PATH" \ +HASKELL_GI_GIR_SEARCH_PATH="build" \ +HASKELL_GI_TYPELIB_SEARCH_PATH="build" \ +cabal run buildgen build/libfoobar_static.a hs + +popd + +export LD_LIBRARY_PATH="$(pwd)/lib/build:$LD_LIBRARY_PATH" +export HASKELL_GI_GIR_SEARCH_PATH="$(pwd)/lib/build" +export HASKELL_GI_TYPELIB_SEARCH_PATH="$(pwd)/lib/build" |
