Merge pull request #856 from cypherstack/secp256k1

add linux and windows secp256k1 build scripts
This commit is contained in:
Diego Salazar 2024-05-08 19:09:07 -06:00 committed by GitHub
commit e2d86cf3eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 38 additions and 4 deletions

View file

@ -14,9 +14,11 @@ mkdir -p build
./build_secure_storage_deps.sh & ./build_secure_storage_deps.sh &
(cd ../../crypto_plugins/flutter_liblelantus/scripts/linux && ./build_all.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_libepiccash/scripts/linux && ./build_all.sh ) &
(cd ../../crypto_plugins/flutter_libmonero/scripts/linux && ./build_monero_all.sh && ./build_sharedfile.sh ) & (cd ../../crypto_plugins/flutter_libmonero/scripts/linux && ./build_monero_all.sh && ./build_sharedfile.sh )
set_rust_to_1720 & set_rust_to_1720
(cd ../../crypto_plugins/frostdart/scripts/linux && ./build_all.sh ) & (cd ../../crypto_plugins/frostdart/scripts/linux && ./build_all.sh ) &
./build_secp256k1.sh
wait wait
echo "Done building" echo "Done building"

View 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 ../../../

View file

@ -9,9 +9,11 @@ set_rust_to_1671
mkdir -p build mkdir -p build
(cd ../../crypto_plugins/flutter_libepiccash/scripts/windows && ./build_all.sh ) & (cd ../../crypto_plugins/flutter_libepiccash/scripts/windows && ./build_all.sh ) &
(cd ../../crypto_plugins/flutter_liblelantus/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) & (cd ../../crypto_plugins/flutter_libmonero/scripts/windows && ./build_all.sh)
set_rust_to_1720 & set_rust_to_1720
(cd ../../crypto_plugins/frostdart/scripts/windows && ./build_all.sh ) & (cd ../../crypto_plugins/frostdart/scripts/windows && ./build_all.sh ) &
./build_secp256k1_wsl.sh
wait wait
echo "Done building" echo "Done building"

View 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 ..\..\..\

View 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 ../../../