Browse Source

Update commands for android build

release/v0.1
Shailesh 8 years ago
parent
commit
4e20638582
  1. 9
      crypto777/m_android
  2. 20
      iguana/m_android
  3. 4
      iguana/secp256k1/m_android

9
crypto777/m_android

@ -1,2 +1,9 @@
#!/bin/bash
if [[ $# -eq 0 ]]; then
git pull
cd iguana; ./m_android; cd ..
#cd iguana; ./m_android; cd ..
fi
echo "Compiling crypto777..."
$CC2 -c -O2 *.c jpeg/*.c jpeg/unix/*.c
rm -f ../agents/libcrypto777.a; $AR rcu ../agents/libcrypto777.a *.o

20
iguana/m_android

@ -1,8 +1,18 @@
#!/bin/bash
rm ../agents/iguana *.o
if [[ $# -eq 0 ]]; then
git pull
cd secp256k1; ./m_unix; cd ..
$CC2 -g -Wno-deprecated -c -O2 *.c databases/iguana_DB.c
$CC2 -g -Wno-deprecated -c main.c iguana777.c iguana_bundles.c
#$CC2 -g -o ../agents/iguana *.o ../agents/libcrypto777.a -lcurl -lssl -lcrypto -lpthread -lm #../includes/libsecp256k1.a -lgmp
$CC2 -g -o ../agents/iguana *.o ../agents/libcrypto777.a -lpthread -lm
fi
echo "Compiling libsecp256k1.a ..."
cd secp256k1; ./m_android; cd ..
#$CC2 -o ../agents/iguana -O2 *.c ../basilisk/*.c -I $NDK/platforms/android-19/arch-arm/usr/include ../agents/libcrypto777.a ../agents/libsecp256k1.a ../OSlibs/android/lib/libcurl.a -lssl -lcrypto -lm -lc -lz
echo "Compiling iguana ... "
#$CC2 -o ../agents/iguana -O2 *.c ../basilisk/basilisk.c ../gecko/gecko.c ../datachain/datachain.c -I ./secp256k1/include -I $NDK/platforms/android-21/arch-arm/usr/include ../agents/libcrypto777.a ../agents/libsecp256k1.a ../OSlibs/android/lib/libcurl.a -L../OSlibs/android/lib/ -lssl -lcrypto -L$NDK/platforms/android-21/arch-arm/usr/lib -lm -lc -lz -nostdlib -lgcc
$CC2 -g -Wno-deprecated -O2 -c *.c ../basilisk/basilisk.c ../gecko/gecko.c ../datachain/datachain.c
$CC2 -g -Wno-deprecated -c main.c iguana777.c iguana_bundles.c ../basilisk/basilisk.c
$CC2 -g -o ../agents/iguana -O2 *.o ../agents/libcrypto777.a -lm

4
iguana/secp256k1/m_android

@ -1 +1,3 @@
$CC2 -c -o ../secp256k1.o -I. -I./src -I./include -I./src -O3 -W -std=c89 -pedantic -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -Wno-unused-function -Wno-long-long -Wno-overlength-strings -fvisibility=hidden -DHAVE_CONFIG_H src/secp256k1.c
#$CC -c -o ../secp256k1.o -I. -I./src -I /Newpub/android-ndk-r9b/platforms/android-19/arch-arm/usr/include -I./include -I./src -O3 -W -std=c89 -pedantic -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -Wno-unused-function -Wno-long-long -Wno-overlength-strings -fvisibility=hidden -DHAVE_CONFIG_H src/secp256k1.c
$CC2 -c -o ../sec256k1.o -I. -I./src -I./include -I./src -O3 -W -std=c89 -pedantic -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -Wno-unused-function -Wno-long-long -Wno-overlength-strings -fvisibility=hidden -DHAVE_CONFIG_H src/secp256k1.c

Loading…
Cancel
Save