Added nanohttpd-webserver targer to the module
The target includes SimpleWebServer
Change-Id: I9a7bfae770d38b2dfd810a66343cd6d4e675b438
diff --git a/Android.mk b/Android.mk
index 09fade4..f5bf86b 100644
--- a/Android.mk
+++ b/Android.mk
@@ -2,7 +2,7 @@
# This module target includes just the single core file: NanoHTTPD.java, which
# is enough for HTTP 1.1 support and nothing else.
-
+# ============================================================================
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(call all-java-files-under, core/src/main)
@@ -11,3 +11,16 @@
LOCAL_SDK_VERSION := current
include $(BUILD_STATIC_JAVA_LIBRARY)
+
+# This module target includes SimpleWebServer that supports additional functionality
+# such as serving files from a specified location, resume of downloads, etc.
+# ============================================================================
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(call all-java-files-under, core/src/main) \
+ $(call all-java-files-under, webserver/src/main)
+LOCAL_MODULE := nanohttpd-webserver
+LOCAL_MODULE_TAGS := optional
+LOCAL_SDK_VERSION := current
+
+include $(BUILD_STATIC_JAVA_LIBRARY)
\ No newline at end of file