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