mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-22 17:46:18 +00:00
add macos build tweaks
This commit is contained in:
@@ -11,4 +11,9 @@ package direct-sqlcipher
|
||||
extra-lib-dirs: /opt/homebrew/opt/openssl@3.0/lib
|
||||
flags: +openssl
|
||||
|
||||
package jpeg-turbo
|
||||
extra-include-dirs: /opt/homebrew/opt/libjpeg-turbo/include
|
||||
extra-lib-dirs: /opt/homebrew/opt/libjpeg-turbo/lib
|
||||
flags: +static
|
||||
|
||||
test-show-details: direct
|
||||
|
||||
@@ -24,7 +24,7 @@ for elem in "${exports[@]}"; do count=$(grep -R "$elem$" libsimplex.dll.def | wc
|
||||
for elem in "${exports[@]}"; do count=$(grep -R "\"$elem\"" flake.nix | wc -l); if [ $count -ne 2 ]; then echo Wrong exports in flake.nix. Add \"$elem\" in two places of the file; exit 1; fi ; done
|
||||
|
||||
rm -rf $BUILD_DIR
|
||||
cabal build lib:simplex-chat lib:simplex-chat --ghc-options="-optl-Wl,-rpath,@loader_path -optl-Wl,-L$GHC_LIBS_DIR/$ARCH-osx-ghc-$GHC_VERSION -optl-lHSrts_thr-ghc$GHC_VERSION -optl-lffi" --constraint 'simplexmq +client_library'
|
||||
cabal build lib:simplex-chat lib:simplex-chat --ghc-options="-optl-Wl,-rpath,@loader_path -optl-Wl,-L$GHC_LIBS_DIR/$ARCH-osx-ghc-$GHC_VERSION -optl-lHSrts_thr-ghc$GHC_VERSION -optl-lffi" --constraint 'simplexmq +client_library' --constraint 'jpeg-turbo +static'
|
||||
|
||||
cd $BUILD_DIR/build
|
||||
mkdir deps 2> /dev/null || true
|
||||
|
||||
Reference in New Issue
Block a user