Android SDK
This is the CCNx Distillery software distribution for Android. It is in charge of pulling together all the necessary modules to build a full CCNx software suite for Android.
Dependencies
Install tools to build libcurl
If Ubuntu:
sudo apt-get automake libconf libtool clang
If Max Os X
brew install automake libconf libtool
Quick Start
Clone this distro
git clone -b androidsdk/master https://gerrit.fd.io/r/cicn android-sdk
cd android-sdk
Export Android Sdk path
export SDK_PATH=/Users/angelomantellini/Library/Android/sdk
Export Android Ndk path
export SDK_PATH=/Users/angelomantellini/Library/Android/sdk/ndk-bundle
If the previous variables are not set, Sdk, Ndk and CMake for android will be downloaded
Compile everything (dependencies and CCNx modules)
export ANDROID_ARCH="arm"
make all
make android_viper
export ANDROID_ARCH="x86_64"
make all
export ANDROID_ARCH="arm64"
make all
export ANDROID_ARCH="x86"
make all
The CCNx software will be installed in androidSdk/usr_{arch}
To compile Metis for android app
make android_metis
To install the application, run
adb install -r MetisForwarderAndroid/app/build/outputs/apk/release/.apk
To compile IGet for android app
make android_iget
To install the application, run
adb install -r IGetAndroid/app/build/outputs/apk/debug/iget-debug.apk
To compile HttpServer for android app
make android_httpserver
To install the application, run
adb install -r HttpServer/app/build/outputs/apk/release/httpserver-release.apk
To compile Viper for android app
export ANDROID_ARCH="arm"
make android_viper
To install the application, run
adb install -r build_armv7-a/viper/viper-armv7/build/outputs/apk/viper-armv7-release-signed.apk
Platforms
- Android
Getting Started
To get simple help run make
. This will give you a list of possible targets to
execute. You will basically want to download all the sources and compile.
Here's a short summary:
make update
- git pull the different modules to the head of mastermake all
- Download sdk, ndk, qt environment and dependencies, configure, compile and install all software in DISTILLERY_INSTALL_DIRmake init_depend
- Download sdk, ndk and dependencies, compile and install all dependencies in DISTILLERY_INSTALLmake init_qt
- Download qt environnment, compile and install all dependencies in DISTILLERY_ROOT/qtmake install-all
- Configure, compile and install all software in DISTILLERY_INSTALL_DIRcurl-clean
- Clean curl files and libsboost-clean
- Clean boost files and libsopenssl-clean
- Clean opennssl files and libscrystax-clean
- Clean crystax files and libsevent-clean
- Clean libevent files and libscrystaxndk-clean
- Clean crystax ndk filesxml2-clean
- Clean libxml2 files and libsdependencies-clean
- Clean all dependencies files and libssdk-clean
- Clean sdk filesndk-clean
- Clean ndk filescmake-clean
- Clean cmake filesandroidsdk-clean
- Clean sdk, ndk and cmake filescframework-clean
- Clean cframework (libparc and longbow) files and libsccnxlibs-clean
- Clean ccnxlibs files and libssb-forwarder-clean
- Clean sb-forwarder (metis) files and libslibicnet-clean
- Clean libicnet files and libslibdash-clean
- Clean libdash files and libsqt-clean
- Clean qt environment files and libsall-clean
- Clean all files and libsandroid_metis
- Build metis apk for androidandroid_metis_debug
- Build metis apk for android in debug modeandroid_iget
- Build iGet apk for androidandroid_iget_debug
- Build iGet apk for android in debug mode- `android_httpserver' - Build Viper apk for android
android_httpserver_debug
- Build Viper apk for android in debug modeandroid_viper
- Build Viper apk for androidandroid_iget_debug
- Build Viper apk for android in debug mode
Configuration
Distillery can be configured in multiple ways. Please check the config directory (specifically config/config.mk
) for more information.