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