forked from cypherstack/stack_wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request cypherstack#1009 from cypherstack/windows
Update secp256k1 build scripts IAW upstream and pin dependency
- Loading branch information
Showing
3 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
mkdir -p build | ||
cd build | ||
git clone https://github.com/bitcoin-core/secp256k1 | ||
if [ ! -d "secp256k1" ]; then | ||
git clone https://github.com/bitcoin-core/secp256k1 | ||
fi | ||
cd secp256k1 | ||
git checkout 68b55209f1ba3e6c0417789598f5f75649e9c14c | ||
git reset --hard | ||
mkdir -p build && cd build | ||
cmake .. | ||
cmake --build . | ||
mkdir -p ../../../../../build | ||
cp src/libsecp256k1.so.2.2.1 "../../../../../build/libsecp256k1.so" | ||
cp lib/libsecp256k1.so.2.2.2 "../../../../../build/libsecp256k1.so" | ||
cd ../../../ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
if not exist "build" mkdir "build" | ||
cd build | ||
rem git clone https://github.com/bitcoin-core/secp256k1 | ||
git clone https://github.com/bitcoin-core/secp256k1 | ||
cd secp256k1 | ||
rem cmake -G "Visual Studio 17 2022" -A x64 -S . -B build | ||
git checkout 68b55209f1ba3e6c0417789598f5f75649e9c14c | ||
git reset --hard | ||
cmake -G "Visual Studio 17 2022" -A x64 -S . -B build | ||
cd build | ||
rem cmake --build . | ||
cmake --build . | ||
if not exist "..\..\..\..\build\" mkdir "..\..\..\..\build\" | ||
xcopy src\Debug\libsecp256k1-2.dll "..\..\..\..\build\secp256k1.dll" /Y | ||
xcopy bin\Debug\libsecp256k1-2.dll "..\..\..\..\build\secp256k1.dll" /Y | ||
cd ..\..\..\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
mkdir -p build | ||
cd build | ||
git clone https://github.com/bitcoin-core/secp256k1 | ||
if [ ! -d "secp256k1" ]; then | ||
git clone https://github.com/bitcoin-core/secp256k1 | ||
fi | ||
cd secp256k1 | ||
git checkout 68b55209f1ba3e6c0417789598f5f75649e9c14c | ||
git reset --hard | ||
mkdir -p build && cd build | ||
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/x86_64-w64-mingw32.toolchain.cmake | ||
cmake --build . | ||
mkdir -p ../../../../../build | ||
cp src/libsecp256k1-2.dll "../../../../../build/secp256k1.dll" | ||
cp bin/libsecp256k1-2.dll "../../../../../build/secp256k1.dll" | ||
cd ../../../ |