https://wiki.strongswan.org/projects/strongswan/wiki/AndroidVPNClientBuild
- Preparing the dev environment(Build on Ubuntu 14.04 amd64 to prevent various issues), see the [Doc] 1
- Preparing the source code:
./autogen.sh && ./configure && make dist
- Preparing the dev environment with Android sdk and ndk for further development
- Download the prepared source distribution or official distribution
- Extract it to
jni/strongswan
or link to the prepared git repo - Run
ndk-build
to build it
git clone https://github.com/vmlinz/strongswan-android
git submodule init && git submodule update
Optional:
switch the strongswan repo to a stable tag- Prepare the git source code as stated in the official gudie, run
./autogen.sh && ./configure && make dist
in the root dir of strongswan source code - run
ndk-build -j8
under app/src/main/jni to build the native code - run
./gradlew build
under android project root to build the target application