1 LOCAL_PATH
:= $(call my-dir
)
3 INCLUDES
= $(LOCAL_PATH
)
4 INCLUDES
+= $(LOCAL_PATH
)/..
/..
/src
/utils
5 INCLUDES
+= $(LOCAL_PATH
)/..
/..
/src
/common
6 INCLUDES
+= $(LOCAL_PATH
)/..
/..
/src
7 INCLUDES
+= external
/libxml2
/include
8 INCLUDES
+= external
/curl
/include
9 INCLUDES
+= external
/webkit
/Source
/WebKit
/gtk
11 # We try to keep this compiling against older platform versions.
12 # The new icu location (external/icu) exports its own headers, but
13 # the older versions in external/icu4c don't, and we need to add those
14 # headers to the include path by hand.
15 ifeq ($(wildcard external
/icu
),)
16 INCLUDES
+= external
/icu4c
/common
18 # The LOCAL_EXPORT_C_INCLUDE_DIRS from ICU did not seem to fully resolve the
19 # build (e.g., "mm -B" failed to build, but following that with "mm" allowed
20 # the build to complete). For now, add the include directory manually here for
22 ver
= $(filter 5.0%,$(PLATFORM_VERSION
))
23 ifneq (,$(strip $(ver
)))
24 INCLUDES
+= external
/icu
/icu4c
/source
/common
29 L_CFLAGS
+= -DCONFIG_CTRL_IFACE
30 L_CFLAGS
+= -DCONFIG_CTRL_IFACE_UNIX
31 L_CFLAGS
+= -DCONFIG_CTRL_IFACE_CLIENT_DIR
=\"/data
/misc
/wifi
/sockets
\"
34 OBJS
+= oma_dm_client.c
37 OBJS
+= ..
/..
/src
/common
/wpa_ctrl.c
38 OBJS
+= ..
/..
/src
/common
/wpa_helpers.c
39 OBJS
+= ..
/..
/src
/utils
/xml-utils.c
40 #OBJS += ../../src/utils/browser-android.c
41 OBJS
+= ..
/..
/src
/utils
/browser-wpadebug.c
42 OBJS
+= ..
/..
/src
/utils
/wpabuf.c
43 OBJS
+= ..
/..
/src
/utils
/eloop.c
44 OBJS
+= ..
/..
/src
/wps
/httpread.c
45 OBJS
+= ..
/..
/src
/wps
/http_server.c
46 OBJS
+= ..
/..
/src
/utils
/xml_libxml2.c
47 OBJS
+= ..
/..
/src
/utils
/http_curl.c
48 OBJS
+= ..
/..
/src
/utils
/base64.c
49 OBJS
+= ..
/..
/src
/utils
/os_unix.c
50 L_CFLAGS
+= -DCONFIG_DEBUG_FILE
51 OBJS
+= ..
/..
/src
/utils
/wpa_debug.c
52 OBJS
+= ..
/..
/src
/utils
/common.c
53 OBJS
+= ..
/..
/src
/crypto
/crypto_internal.c
54 OBJS
+= ..
/..
/src
/crypto
/md5-internal.c
55 OBJS
+= ..
/..
/src
/crypto
/sha1-internal.c
56 OBJS
+= ..
/..
/src
/crypto
/sha256-internal.c
57 OBJS
+= ..
/..
/src
/crypto
/tls_openssl_ocsp.c
59 L_CFLAGS
+= -DEAP_TLS_OPENSSL
61 L_CFLAGS
+= -Wno-unused-parameter
64 ########################
66 LOCAL_MODULE
:= hs20-osu-client
67 LOCAL_MODULE_TAGS
:= optional
69 LOCAL_SHARED_LIBRARIES
:= libc libcutils
70 LOCAL_SHARED_LIBRARIES
+= libcrypto libssl
71 #LOCAL_SHARED_LIBRARIES += libxml2
72 LOCAL_STATIC_LIBRARIES
+= libxml2
73 LOCAL_SHARED_LIBRARIES
+= libicuuc
74 LOCAL_SHARED_LIBRARIES
+= libcurl
76 LOCAL_CFLAGS
:= $(L_CFLAGS
)
77 LOCAL_SRC_FILES
:= $(OBJS
)
78 LOCAL_C_INCLUDES
:= $(INCLUDES
)
79 include $(BUILD_EXECUTABLE
)
81 ########################