2013-03-28 09:27:27 +01:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
INCLUDES = $(LOCAL_PATH)
|
|
|
|
INCLUDES += $(LOCAL_PATH)/../../src/utils
|
|
|
|
INCLUDES += $(LOCAL_PATH)/../../src/common
|
|
|
|
INCLUDES += $(LOCAL_PATH)/../../src
|
|
|
|
INCLUDES += external/libxml2/include
|
|
|
|
INCLUDES += external/curl/include
|
|
|
|
INCLUDES += external/webkit/Source/WebKit/gtk
|
2015-01-05 12:39:15 +01:00
|
|
|
|
|
|
|
# We try to keep this compiling against older platform versions.
|
|
|
|
# The new icu location (external/icu) exports its own headers, but
|
|
|
|
# the older versions in external/icu4c don't, and we need to add those
|
|
|
|
# headers to the include path by hand.
|
|
|
|
ifeq ($(wildcard external/icu),)
|
2013-03-28 09:27:27 +01:00
|
|
|
INCLUDES += external/icu4c/common
|
2015-02-19 11:48:00 +01:00
|
|
|
else
|
|
|
|
# The LOCAL_EXPORT_C_INCLUDE_DIRS from ICU did not seem to fully resolve the
|
|
|
|
# build (e.g., "mm -B" failed to build, but following that with "mm" allowed
|
|
|
|
# the build to complete). For now, add the include directory manually here for
|
|
|
|
# Android 5.0.
|
|
|
|
ver = $(filter 5.0%,$(PLATFORM_VERSION))
|
|
|
|
ifneq (,$(strip $(ver)))
|
|
|
|
INCLUDES += external/icu/icu4c/source/common
|
|
|
|
endif
|
2014-07-16 19:25:41 +02:00
|
|
|
endif
|
2013-03-28 09:27:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
L_CFLAGS += -DCONFIG_CTRL_IFACE
|
|
|
|
L_CFLAGS += -DCONFIG_CTRL_IFACE_UNIX
|
|
|
|
L_CFLAGS += -DCONFIG_CTRL_IFACE_CLIENT_DIR=\"/data/misc/wifi/sockets\"
|
|
|
|
|
|
|
|
OBJS = spp_client.c
|
|
|
|
OBJS += oma_dm_client.c
|
|
|
|
OBJS += osu_client.c
|
|
|
|
OBJS += est.c
|
|
|
|
OBJS += ../../src/common/wpa_ctrl.c
|
|
|
|
OBJS += ../../src/common/wpa_helpers.c
|
|
|
|
OBJS += ../../src/utils/xml-utils.c
|
|
|
|
#OBJS += ../../src/utils/browser-android.c
|
|
|
|
OBJS += ../../src/utils/browser-wpadebug.c
|
|
|
|
OBJS += ../../src/utils/wpabuf.c
|
|
|
|
OBJS += ../../src/utils/eloop.c
|
|
|
|
OBJS += ../../src/wps/httpread.c
|
|
|
|
OBJS += ../../src/wps/http_server.c
|
|
|
|
OBJS += ../../src/utils/xml_libxml2.c
|
|
|
|
OBJS += ../../src/utils/http_curl.c
|
|
|
|
OBJS += ../../src/utils/base64.c
|
|
|
|
OBJS += ../../src/utils/os_unix.c
|
|
|
|
L_CFLAGS += -DCONFIG_DEBUG_FILE
|
|
|
|
OBJS += ../../src/utils/wpa_debug.c
|
|
|
|
OBJS += ../../src/utils/common.c
|
|
|
|
OBJS += ../../src/crypto/crypto_internal.c
|
|
|
|
OBJS += ../../src/crypto/md5-internal.c
|
|
|
|
OBJS += ../../src/crypto/sha1-internal.c
|
|
|
|
OBJS += ../../src/crypto/sha256-internal.c
|
2015-12-04 13:06:53 +01:00
|
|
|
OBJS += ../../src/crypto/tls_openssl_ocsp.c
|
2013-03-28 09:27:27 +01:00
|
|
|
|
|
|
|
L_CFLAGS += -DEAP_TLS_OPENSSL
|
|
|
|
|
2015-02-19 11:48:51 +01:00
|
|
|
L_CFLAGS += -Wno-unused-parameter
|
|
|
|
|
2022-04-10 03:02:08 +02:00
|
|
|
ifeq ($(shell test $(PLATFORM_VERSION_LAST_STABLE) -ge 8 ; echo $$?), 0)
|
|
|
|
L_CFLAGS += -DCONFIG_ANDROID_LOG
|
|
|
|
L_CFLAGS += -DANDROID_LOG_NAME='"hs20-osu-client"'
|
|
|
|
endif
|
2013-03-28 09:27:27 +01:00
|
|
|
|
|
|
|
########################
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := hs20-osu-client
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := libc libcutils
|
|
|
|
LOCAL_SHARED_LIBRARIES += libcrypto libssl
|
2022-04-10 03:02:08 +02:00
|
|
|
ifeq ($(shell test $(PLATFORM_VERSION_LAST_STABLE) -ge 8 ; echo $$?), 0)
|
|
|
|
LOCAL_VENDOR_MODULE := true
|
|
|
|
LOCAL_SHARED_LIBRARIES += libxml2
|
|
|
|
LOCAL_SHARED_LIBRARIES += liblog
|
|
|
|
else
|
2013-03-28 09:27:27 +01:00
|
|
|
#LOCAL_SHARED_LIBRARIES += libxml2
|
|
|
|
LOCAL_STATIC_LIBRARIES += libxml2
|
|
|
|
LOCAL_SHARED_LIBRARIES += libicuuc
|
2022-04-10 03:02:08 +02:00
|
|
|
endif # End of check for platform version
|
2013-03-28 09:27:27 +01:00
|
|
|
LOCAL_SHARED_LIBRARIES += libcurl
|
|
|
|
|
|
|
|
LOCAL_CFLAGS := $(L_CFLAGS)
|
|
|
|
LOCAL_SRC_FILES := $(OBJS)
|
|
|
|
LOCAL_C_INCLUDES := $(INCLUDES)
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
|
|
|
########################
|