Home | History | Annotate | Download | only in client
      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
      7 INCLUDES += external/openssl/include
      8 INCLUDES += external/libxml2/include
      9 INCLUDES += external/curl/include
     10 INCLUDES += external/webkit/Source/WebKit/gtk
     11 ifneq ($(wildcard external/icu),)
     12 INCLUDES += external/icu/icu4c/source/common
     13 else
     14 INCLUDES += external/icu4c/common
     15 endif
     16 
     17 
     18 #GTKCFLAGS := $(shell pkg-config --cflags gtk+-2.0 webkit-1.0)
     19 #GTKLIBS := $(shell pkg-config --libs gtk+-2.0 webkit-1.0)
     20 #CFLAGS += $(GTKCFLAGS)
     21 #LIBS += $(GTKLIBS)
     22 
     23 L_CFLAGS += -DCONFIG_CTRL_IFACE
     24 L_CFLAGS += -DCONFIG_CTRL_IFACE_UNIX
     25 L_CFLAGS += -DCONFIG_CTRL_IFACE_CLIENT_DIR=\"/data/misc/wifi/sockets\"
     26 L_CFLAGS += -DLIBXML_SCHEMAS_ENABLED
     27 L_CFLAGS += -DLIBXML_REGEXP_ENABLED
     28 
     29 OBJS = spp_client.c
     30 OBJS += oma_dm_client.c
     31 OBJS += osu_client.c
     32 OBJS += est.c
     33 OBJS += ../../src/common/wpa_ctrl.c
     34 OBJS += ../../src/common/wpa_helpers.c
     35 OBJS += ../../src/utils/xml-utils.c
     36 #OBJS += ../../src/utils/browser-android.c
     37 OBJS += ../../src/utils/browser-wpadebug.c
     38 OBJS += ../../src/utils/wpabuf.c
     39 OBJS += ../../src/utils/eloop.c
     40 OBJS += ../../src/wps/httpread.c
     41 OBJS += ../../src/wps/http_server.c
     42 OBJS += ../../src/utils/xml_libxml2.c
     43 OBJS += ../../src/utils/http_curl.c
     44 OBJS += ../../src/utils/base64.c
     45 OBJS += ../../src/utils/os_unix.c
     46 L_CFLAGS += -DCONFIG_DEBUG_FILE
     47 OBJS += ../../src/utils/wpa_debug.c
     48 OBJS += ../../src/utils/common.c
     49 OBJS += ../../src/crypto/crypto_internal.c
     50 OBJS += ../../src/crypto/md5-internal.c
     51 OBJS += ../../src/crypto/sha1-internal.c
     52 OBJS += ../../src/crypto/sha256-internal.c
     53 
     54 L_CFLAGS += -DEAP_TLS_OPENSSL
     55 
     56 #CFLAGS += $(shell xml2-config --cflags)
     57 #LIBS += $(shell xml2-config --libs)
     58 
     59 
     60 ########################
     61 include $(CLEAR_VARS)
     62 LOCAL_MODULE := hs20-osu-client
     63 LOCAL_MODULE_TAGS := optional
     64 
     65 LOCAL_SHARED_LIBRARIES := libc libcutils
     66 LOCAL_SHARED_LIBRARIES += libcrypto libssl
     67 #LOCAL_SHARED_LIBRARIES += libxml2
     68 LOCAL_STATIC_LIBRARIES += libxml2
     69 LOCAL_SHARED_LIBRARIES += libicuuc
     70 LOCAL_SHARED_LIBRARIES += libcurl
     71 
     72 LOCAL_CFLAGS := $(L_CFLAGS)
     73 LOCAL_SRC_FILES := $(OBJS)
     74 LOCAL_C_INCLUDES := $(INCLUDES)
     75 include $(BUILD_EXECUTABLE)
     76 
     77 ########################
     78