Android.mk 2.2 KB

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