Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Nov 13, 2024
1 parent c8d6d93 commit e405c71
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 6 deletions.
2 changes: 1 addition & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
'link_settings': {
'libraries': [
'<(module_root_dir)/deps/zstd/lib/libzstd.a',
'<(module_root_dir)/deps/zstd/build/cmake/lib/libzstd.a',
]
},
}]
Expand Down
21 changes: 16 additions & 5 deletions etc/install-zstd.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@

set -o xtrace
rm -rf deps
mkdir -p deps/zstd

curl -L "https://github.com/facebook/zstd/releases/download/v1.5.6/zstd-1.5.6.tar.gz" | tar -zxf - -C deps/zstd --strip-components 1
clean_deps() {
rm -rf deps
}

download_zstd() {
rm -rf deps
mkdir -p deps/zstd

curl -L "https://github.com/facebook/zstd/releases/download/v1.5.6/zstd-1.5.6.tar.gz" \
| tar -zxf - -C deps/zstd --strip-components 1
}

build_zstd() {
export MACOSX_DEPLOYMENT_TARGET=10.12
cd deps/zstd/
cd deps/zstd/build/cmake

make --debug CXXFLAGS="-mmacosx-version-min=10.12"
cmake .
make
}

clean_deps
download_zstd
build_zstd
23 changes: 23 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e405c71

Please sign in to comment.