mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-16 17:27:39 +00:00
Merge pull request #856 from cypherstack/secp256k1
add linux and windows secp256k1 build scripts
This commit is contained in:
commit
e2d86cf3eb
5 changed files with 38 additions and 4 deletions
|
@ -14,9 +14,11 @@ mkdir -p build
|
|||
./build_secure_storage_deps.sh &
|
||||
(cd ../../crypto_plugins/flutter_liblelantus/scripts/linux && ./build_all.sh ) &
|
||||
(cd ../../crypto_plugins/flutter_libepiccash/scripts/linux && ./build_all.sh ) &
|
||||
(cd ../../crypto_plugins/flutter_libmonero/scripts/linux && ./build_monero_all.sh && ./build_sharedfile.sh ) &
|
||||
set_rust_to_1720 &
|
||||
(cd ../../crypto_plugins/flutter_libmonero/scripts/linux && ./build_monero_all.sh && ./build_sharedfile.sh )
|
||||
set_rust_to_1720
|
||||
(cd ../../crypto_plugins/frostdart/scripts/linux && ./build_all.sh ) &
|
||||
|
||||
./build_secp256k1.sh
|
||||
|
||||
wait
|
||||
echo "Done building"
|
||||
|
|
10
scripts/linux/build_secp256k1.sh
Executable file
10
scripts/linux/build_secp256k1.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
mkdir -p build
|
||||
cd build
|
||||
git clone https://github.com/bitcoin-core/secp256k1
|
||||
cd secp256k1
|
||||
mkdir -p build && cd build
|
||||
cmake ..
|
||||
cmake --build .
|
||||
mkdir -p ../../../../../build
|
||||
cp src/libsecp256k1.so.2.2.1 "../../../../../build/libsecp256k1.so"
|
||||
cd ../../../
|
|
@ -9,9 +9,11 @@ set_rust_to_1671
|
|||
mkdir -p build
|
||||
(cd ../../crypto_plugins/flutter_libepiccash/scripts/windows && ./build_all.sh ) &
|
||||
(cd ../../crypto_plugins/flutter_liblelantus/scripts/windows && ./build_all.sh ) &
|
||||
(cd ../../crypto_plugins/flutter_libmonero/scripts/windows && ./build_all.sh) &
|
||||
set_rust_to_1720 &
|
||||
(cd ../../crypto_plugins/flutter_libmonero/scripts/windows && ./build_all.sh)
|
||||
set_rust_to_1720
|
||||
(cd ../../crypto_plugins/frostdart/scripts/windows && ./build_all.sh ) &
|
||||
|
||||
./build_secp256k1_wsl.sh
|
||||
|
||||
wait
|
||||
echo "Done building"
|
||||
|
|
10
scripts/windows/build_secp256k1.bat
Normal file
10
scripts/windows/build_secp256k1.bat
Normal file
|
@ -0,0 +1,10 @@
|
|||
if not exist "build" mkdir "build"
|
||||
cd build
|
||||
rem git clone https://github.com/bitcoin-core/secp256k1
|
||||
cd secp256k1
|
||||
rem cmake -G "Visual Studio 17 2022" -A x64 -S . -B build
|
||||
cd build
|
||||
rem cmake --build .
|
||||
if not exist "..\..\..\..\build\" mkdir "..\..\..\..\build\"
|
||||
xcopy src\Debug\libsecp256k1-2.dll "..\..\..\..\build\secp256k1.dll" /Y
|
||||
cd ..\..\..\
|
10
scripts/windows/build_secp256k1_wsl.sh
Normal file
10
scripts/windows/build_secp256k1_wsl.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
mkdir -p build
|
||||
cd build
|
||||
git clone https://github.com/bitcoin-core/secp256k1
|
||||
cd secp256k1
|
||||
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"
|
||||
cd ../../../
|
Loading…
Reference in a new issue