Browse Source

iOS platform files and compile scripts

dev
Satinder Grewal 9 years ago
parent
commit
2e73af3527
  1. 5
      crypto777/m_ios
  2. 4
      iguana/m_ios
  3. 39
      ios/iOS_Readme.md
  4. BIN
      ios/lib/libcrypto.a
  5. BIN
      ios/lib/libcurl.a
  6. BIN
      ios/lib/libssl.a
  7. 2
      m_ios

5
crypto777/m_ios

@ -0,0 +1,5 @@
CC="$(xcrun --sdk iphoneos --find clang) -isysroot $(xcrun --sdk iphoneos --show-sdk-path) -arch armv7 -arch arm64 -arch armv7s -ONLY_ACTIVE_ARCH=YES"
AR="$(xcrun --sdk iphones --find ar)"
$CC -c -O2 *.c jpeg/*.c jpeg/unix/*.c
rm -f ../agents/libcrypto777.a; $AR -rcs ../agents/libcrypto777.a *.o

4
iguana/m_ios

@ -0,0 +1,4 @@
CC="$(xcrun --sdk iphoneos --find clang) -isysroot $(xcrun --sdk iphoneos --show-sdk-path) -arch armv7 -arch arm64 -arch armv7s -ONLY_ACTIVE_ARCH=YES"
git pull
$CC -o ../agents/iguana -O2 *.c ../agents/libcrypto777.a ../ios/lib/libcurl.a ../ios/lib/libssl.a ../ios/lib/libcrypto.a -lpthread -lm

39
ios/iOS_Readme.md

@ -0,0 +1,39 @@
## Quick iOS Development Environment setup instructions
- Install xcode from Apple App Store.
- Execute command `xcode-select --install` from Terminal. Install Command line tools
- Install Git for command line. Get installer from here: http://git-scm.com/download/mac
## Compile iguana for iOS
- Get SuperNET repository clonned on your machine with command
`git clone https://github.com/jl777/SuperNET`
- Change your directory to the clonned SuperNET and execute the following commands:
`./m_onetime m_ios`
`./m_ios`
- You'll find `libcrypto777.a` and `iguana` for iOS in agents directory inside SuperNET repo clonned dir.
- To check if the files are for iOS platform, you can execute the folowing command which will show a result something like this:
`cd agents`
`lipo -info iguana`
Expected result:
`Architectures in the fat file: agents/iguana are: armv7 armv7s arm64`
## Info on iOS libraries ##
The iOS libraries libcrypto.a, libssl.a, and libcurl.a are picked from the following github repositories:
https://github.com/sinofool/build-libcurl-ios
https://github.com/sinofool/build-libcurl-ios
NOTE: This build of iguana iOS has not been tested with any iOS device due to the limitations of iOS App has to execute system commands in iOS devices. A task is created in developer channel to help testing this iguana iOS compile. Please head over to this link for more detail: https://phabricator.supernet.org/T398
More detailed instructions you may visit the developer wiki at https://phabricator.supernet.org/w/iguana/development/ios/

BIN
ios/lib/libcrypto.a

Binary file not shown.

BIN
ios/lib/libcurl.a

Binary file not shown.

BIN
ios/lib/libssl.a

Binary file not shown.

2
m_ios

@ -0,0 +1,2 @@
git pull
cd iguana; ./m_ios; cd ..
Loading…
Cancel
Save