File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -e
3+
14mkdir -p build
25cd build
6+
37if [ ! -d " secp256k1" ]; then
48 git clone https://github.com/bitcoin-core/secp256k1
59fi
10+
611cd secp256k1
712git checkout 68b55209f1ba3e6c0417789598f5f75649e9c14c
813git reset --hard
14+
915rm -rf build
10- mkdir -p build && cd build
16+ mkdir -p build
17+ cd build
1118cmake .. -DSECP256K1_ENABLE_MODULE_RECOVERY=ON
1219cmake --build .
20+
21+ SECP_SO=" $( find lib -maxdepth 1 -type f -name ' libsecp256k1.so*' | sort | head -n1) "
22+ if [ -z " $SECP_SO " ]; then
23+ echo " [ERROR] libsecp256k1 shared library not found after build."
24+ exit 1
25+ fi
26+
27+ # Legacy location used by parts of the build pipeline.
1328mkdir -p ../../../../../build
14- cp lib/libsecp256k1.so.2.* .* " ../../../../../build/libsecp256k1.so"
15- cd ../../../
29+ cp " $SECP_SO " ../../../../../build/libsecp256k1.so
30+
31+ # Location expected by Flutter/CMake install step.
32+ mkdir -p ../../../../../build/linux/x64/release/secp256k1/lib
33+ cp " $SECP_SO " ../../../../../build/linux/x64/release/secp256k1/lib/libsecp256k1.so
You can’t perform that action at this time.
0 commit comments