1#
2# Zlib, OpenSSL and libwebsockets will be downloaded automatically unless you place
3# their source .tar.gz files in the jni directory...
4#
5
6# The location of the NDK
7#
8NDK_ROOT := /opt/Android/Sdk/ndk-bundle
9
10# Update these to the latest versions before building
11#
12ZLIB_VERSION := 1.2.8
13OPENSSL_VERSION := 1.0.2h
14
15# This will be executed as 'git clone $(LIBWEBSOCKETS_GIT_URL)'
16#
17LIBWEBSOCKETS_GIT_URL := --branch master https://github.com/warmcat/libwebsockets.git
18
19#
20# Note: If you build for API level 21 or higher in APP_PLATFORM,
21#       the resulting application will only run on API 21+ devices.
22#       Even if minSdkVersion has been set to a lower level!
23#       This is the result of API changes for the native signal() function.
24#       The recommended solution is to build two packages, one for API 17+ and the other for API 21+ devices.
25#       http://stackoverflow.com/questions/28740315/android-ndk-getting-java-lang-unsatisfiedlinkerror-dlopen-failed-cannot-loca
26#
27# Note: If you change the API level the JNI code must be rebuild completely.
28#       (Run 'make clean' from the app/src/main/jni directory.)
29#
30APP_PLATFORM := android-23
31
32# Builds for armeabi armeabi-v7a x86 mips arm64-v8a x86_64 mips64
33#
34#APP_ABI := all
35
36# The same as above.
37#
38#APP_ABI := armeabi armeabi-v7a x86 mips arm64-v8a x86_64 mips64
39
40# Good enough for most current devices + x86 AVD
41#
42APP_ABI := armeabi-v7a x86
43
44# Enable (GNU) c++11 extentions
45APP_CPPFLAGS += -std=gnu++11
46
47# Use the GNU standard template library
48APP_STL := gnustl_shared
49
50