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 |
Dmitry Shmidt | d7ff03d | 2015-12-04 14:49:35 -0800 | [diff] [blame] | 57 | OBJS += ../../src/crypto/tls_openssl_ocsp.c |
Dmitry Shmidt | d5dc24e | 2014-03-12 14:22:04 -0700 | [diff] [blame] | 58 | |
| 59 | L_CFLAGS += -DEAP_TLS_OPENSSL |
| 60 | |
Dmitry Shmidt | 7f65602 | 2015-02-25 14:36:37 -0800 | [diff] [blame] | 61 | L_CFLAGS += -Wno-unused-parameter |
Dmitry Shmidt | d5dc24e | 2014-03-12 14:22:04 -0700 | [diff] [blame] | 62 | |
| 63 | |
| 64 | ######################## |
| 65 | include $(CLEAR_VARS) |
| 66 | LOCAL_MODULE := hs20-osu-client |
Bob Badour | ef67f87 | 2021-02-12 15:20:04 -0800 | [diff] [blame] | 67 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD |
| 68 | LOCAL_LICENSE_CONDITIONS := notice |
Bob Badour | 618e16c | 2022-02-14 12:41:29 -0800 | [diff] [blame] | 69 | LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../LICENSE |
Dmitry Shmidt | d5dc24e | 2014-03-12 14:22:04 -0700 | [diff] [blame] | 70 | LOCAL_MODULE_TAGS := optional |
| 71 | |
| 72 | LOCAL_SHARED_LIBRARIES := libc libcutils |
| 73 | LOCAL_SHARED_LIBRARIES += libcrypto libssl |
| 74 | #LOCAL_SHARED_LIBRARIES += libxml2 |
| 75 | LOCAL_STATIC_LIBRARIES += libxml2 |
| 76 | LOCAL_SHARED_LIBRARIES += libicuuc |
| 77 | LOCAL_SHARED_LIBRARIES += libcurl |
| 78 | |
| 79 | LOCAL_CFLAGS := $(L_CFLAGS) |
| 80 | LOCAL_SRC_FILES := $(OBJS) |
| 81 | LOCAL_C_INCLUDES := $(INCLUDES) |
| 82 | include $(BUILD_EXECUTABLE) |
| 83 | |
| 84 | ######################## |