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/strongswanor link to the prepared git repo - Run
ndk-buildto build it
git clone https://github.com/vmlinz/strongswan-androidgit submodule init && git submodule updateOptional:switch the strongswan repo to a stable tag- Prepare the git source code as stated in the official gudie, run
./autogen.sh && ./configure && make distin the root dir of strongswan source code - run
ndk-build -j8under app/src/main/jni to build the native code - run
./gradlew buildunder android project root to build the target application