Dmitry Shmidt | d5dc24e | 2014-03-12 14:22:04 -0700 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | INCLUDES = $(LOCAL_PATH) |
| 4 | INCLUDES += $(LOCAL_PATH)/../../src/utils |
| 5 | INCLUDES += $(LOCAL_PATH)/../../src/common |
| 6 | INCLUDES += $(LOCAL_PATH)/../../src |
Dmitry Shmidt | d5dc24e | 2014-03-12 14:22:04 -0700 | [diff] [blame] | 7 | INCLUDES += external/libxml2/include |
| 8 | INCLUDES += external/curl/include |
| 9 | INCLUDES += external/webkit/Source/WebKit/gtk |
Narayan Kamath | d4d66af | 2015-01-05 11:39:15 +0000 | [diff] [blame] | 10 | |
| 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),) |
Dmitry Shmidt | 7abb852 | 2014-07-16 10:22:54 -0700 | [diff] [blame] | 16 | INCLUDES += external/icu4c/common |
Dmitry Shmidt | 7f65602 | 2015-02-25 14:36:37 -0800 | [diff] [blame] | 17 | else |
| 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 |
| 21 | # Android 5.0. |
| 22 | ver = $(filter 5.0%,$(PLATFORM_VERSION)) |
| 23 | ifneq (,$(strip $(ver))) |
| 24 | INCLUDES += external/icu/icu4c/source/common |
| 25 | endif |
Dmitry Shmidt | 7abb852 | 2014-07-16 10:22:54 -0700 | [diff] [blame] | 26 | endif |
Dmitry Shmidt | d5dc24e | 2014-03-12 14:22:04 -0700 | [diff] [blame] | 27 | |
| 28 | |
Dmitry Shmidt | d5dc24e | 2014-03-12 14:22:04 -0700 | [diff] [blame] | 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\" |
Dmitry Shmidt | d5dc24e | 2014-03-12 14:22:04 -0700 | [diff] [blame] | 32 | |
| 33 | OBJS = spp_client.c |
| 34 | OBJS += oma_dm_client.c |
| 35 | OBJS += osu_client.c |
| 36 | OBJS += est.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 | |
| 58 | L_CFLAGS += -DEAP_TLS_OPENSSL |
| 59 | |
Dmitry Shmidt | 7f65602 | 2015-02-25 14:36:37 -0800 | [diff] [blame] | 60 | L_CFLAGS += -Wno-unused-parameter |
Dmitry Shmidt | d5dc24e | 2014-03-12 14:22:04 -0700 | [diff] [blame] | 61 | |
| 62 | |
| 63 | ######################## |
| 64 | include $(CLEAR_VARS) |
| 65 | LOCAL_MODULE := hs20-osu-client |
| 66 | LOCAL_MODULE_TAGS := optional |
| 67 | |
| 68 | LOCAL_SHARED_LIBRARIES := libc libcutils |
| 69 | LOCAL_SHARED_LIBRARIES += libcrypto libssl |
| 70 | #LOCAL_SHARED_LIBRARIES += libxml2 |
| 71 | LOCAL_STATIC_LIBRARIES += libxml2 |
| 72 | LOCAL_SHARED_LIBRARIES += libicuuc |
| 73 | LOCAL_SHARED_LIBRARIES += libcurl |
| 74 | |
| 75 | LOCAL_CFLAGS := $(L_CFLAGS) |
| 76 | LOCAL_SRC_FILES := $(OBJS) |
| 77 | LOCAL_C_INCLUDES := $(INCLUDES) |
| 78 | include $(BUILD_EXECUTABLE) |
| 79 | |
| 80 | ######################## |