summaryrefslogtreecommitdiff
path: root/main/ovpn3/Android.mk
blob: 4564ca52052ed04987d6e056d1b30dcbbc1df11e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
LOCAL_PATH:= $(call my-dir)/

include $(CLEAR_VARS)

LOCAL_LDLIBS := -lz 
LOCAL_C_INCLUDES := openssl/include lzo/include openssl/crypto openssl openvpn/src/compat openvpn3/client openvpn3 boost_1_55_0 polarssl/include  snappy asio/asio/include
LOCAL_CPP_FEATURES += exceptions rtti

#LOCAL_SHARED_LIBRARIES :=  libssl libcrypto 
#LOCAL_SHARED_LIBRARIES := polarssl-dynamic
LOCAL_STATIC_LIBRARIES :=  libssl_static libcrypto_static  liblzo-static
#LOCAL_STATIC_LIBRARIES :=  liblzo-static

#LOCAL_CFLAGS= -DHAVE_CONFIG_H -DTARGET_ABI=\"${TARGET_ABI}\" -DUSE_POLARSSL -DHAVE_LZO -DASIO_STANDALONE
LOCAL_CFLAGS= -DHAVE_CONFIG_H -DTARGET_ABI=\"${TARGET_ABI}\" -DUSE_OPENSSL -DHAVE_LZO -DASIO_STANDALONE

LOCAL_CXXFLAGS += -std=c++1y

#ifneq ($(TARGET_ARCH),mips)
#LOCAL_STATIC_LIBRARIES += breakpad_client
#LOCAL_CFLAGS += -DGOOGLE_BREAKPAD=1
#endif

LOCAL_MODULE = ovpn3

LOCAL_SRC_FILES:= \
	../openvpn3/javacli/ovpncli_wrap.cxx \
	../openvpn3/client/ovpncli.cpp \


#ifneq ($(TARGET_ARCH),mips)
#LOCAL_SRC_FILES+=src/openvpn/breakpad.cpp
#endif



include $(BUILD_SHARED_LIBRARY)
#include $(BUILD_EXECUTABLE)