commit | 93886942acdd4875e0601e7b378dddb52bbcf9cc | [log] [tgz] |
---|---|---|
author | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Tue Feb 09 16:00:24 2016 -0800 |
committer | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Tue Feb 23 12:22:02 2016 -0800 |
tree | fad82874505b06b9e8fa7ae97b3b48a4243ba0ca | |
parent | a409156bbe8a05717094592c82d09ce8c3be484e [diff] |
src+build: Create gradle task to copy ndn-cxx headers to right places This commit removes dependency on symbolic link, which creates problems when compiling code on Windows platform. Change-Id: I11c86ff1d3e5c94b5b7fcefbba43284703dc385d
To compile code, the following is necessary
Example script for Ubuntu 14.04 to get all dependencies, download SDK and NDK:
CRYSTAX_NDK_VERSION=10.3.1 SDK_VERSION=24.4.1 BUILD_TOOLS_VERSION=23.0.2 COMPILE_SDK_VERSION=23 sudo apt-get install -y build-essential git openjdk-7-jdk unzip sudo apt-get install -y lib32stdc++6 lib32z1 lib32z1-dev wget https://www.crystax.net/download/crystax-ndk-$CRYSTAX_NDK_VERSION-linux-x86_64.tar.xz tar xf crystax-ndk-$CRYSTAX_NDK_VERSION-linux-x86_64.tar.xz rm crystax-ndk-$CRYSTAX_NDK_VERSION-linux-x86_64.tar.xz wget http://dl.google.com/android/android-sdk_r$SDK_VERSION-linux.tgz tar zxf android-sdk_r$SDK_VERSION-linux.tgz rm android-sdk_r$SDK_VERSION-linux.tgz export ANDROID_HOME=`pwd`/android-sdk-linux export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools echo "y" | android update sdk --filter platform-tools,build-tools-$BUILD_TOOLS_VERSION,android-$COMPILE_SDK_VERSION,extra-android-support,extra-android-m2repository,extra-google-m2repository --no-ui --all --force echo "y" | android update sdk --filter "android-19" --no-ui --all --force
git clone --recursive http://gerrit.named-data.net/NFD-android echo sdk.dir=`pwd`/android-sdk-linux > NFD-android/local.properties echo ndk.dir=`pwd`/crystax-ndk-10.3.1 >> NFD-android/local.properties cd NFD-android ./gradlew assembleRelease
The development setup can be set up with Vagrant and scripts provided in .vagrant/
folder. After vagrant command-line is installed, the following will create VM environment and fetch all necessary dependencies:
cd .vagrant vagrant up vagrant ssh
Refer to vagrant documentation for more information.