Skip to content

Commit

Permalink
more updates to the makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Jul 20, 2024
1 parent 849085b commit c2f50ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release-swift-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ jobs:
run: |
cargo install cross --git https://github.com/cross-rs/cross
- name: Install OpenSSL
run: |
brew install openssl
- name: Download and build SQLCipher
working-directory: bindings_ffi
run: |
Expand Down
9 changes: 6 additions & 3 deletions bindings_ffi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@ download-toolchains:
download-sqlcipher:
git clone https://github.com/sqlcipher/sqlcipher.git $(SQLCIPHER_DIR)

build-sqlcipher:
install-openssl:
brew install openssl

build-sqlcipher: install-openssl
cd $(SQLCIPHER_DIR) && \
./configure --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC" && \
./configure --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC" LDFLAGS="-L/usr/local/opt/openssl/lib" CPPFLAGS="-I/usr/local/opt/openssl/include" && \
make

all: framework
Expand Down Expand Up @@ -93,4 +96,4 @@ swift: libxmtp-version

swiftlocal: libxmtpv3.a swift framework

.PHONY: $(ARCHS_IOS) $(ARCHS_MAC) framework all aarch64-apple-ios install-jar echo-jar download-toolchains swift lipo download-sqlcipher build-sqlcipher
.PHONY: $(ARCHS_IOS) $(ARCHS_MAC) framework all aarch64-apple-ios install-jar echo-jar download-toolchains swift lipo download-sqlcipher install-openssl build-sqlcipher

0 comments on commit c2f50ba

Please sign in to comment.