diff options
author | Sasha Smundak <asmundak@google.com> | 2019-01-14 18:36:12 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-01-14 18:36:12 -0800 |
commit | 0acbaee329a166ccee23875b00e8dfa0800b3888 (patch) | |
tree | 5a49bf1f2dc7017bded0a31658c22563ae37ea8b | |
parent | c6783c32331b3fe78ffd5077e7f180995d0e268e (diff) | |
parent | 06459d67bb6dc8c14feef601b5e732642b16830d (diff) | |
download | nanohttpd-0acbaee329a166ccee23875b00e8dfa0800b3888.tar.gz |
Convert Android.mk file to Android.bp am: 34424f0c17
am: 06459d67bb
Change-Id: Ic6bcde17bd9d92d9661ab32d6e91287e2cce8acd
-rw-r--r-- | Android.bp | 20 | ||||
-rw-r--r-- | Android.mk | 26 |
2 files changed, 20 insertions, 26 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..5ffcbc9 --- /dev/null +++ b/Android.bp @@ -0,0 +1,20 @@ +// This module target includes just the single core file: NanoHTTPD.java, which +// is enough for HTTP 1.1 support and nothing else. +// ============================================================================ +java_library { + name: "libnanohttpd", + srcs: ["core/src/main/**/*.java"], + sdk_version: "current", +} + +// This module target includes SimpleWebServer that supports additional functionality +// such as serving files from a specified location, resume of downloads, etc. +// ============================================================================ +java_library { + name: "nanohttpd-webserver", + srcs: [ + "core/src/main/**/*.java", + "webserver/src/main/**/*.java", + ], + sdk_version: "current", +} diff --git a/Android.mk b/Android.mk deleted file mode 100644 index f5bf86b..0000000 --- a/Android.mk +++ /dev/null @@ -1,26 +0,0 @@ -LOCAL_PATH := $(call my-dir) - -# 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) -LOCAL_MODULE := libnanohttpd -LOCAL_MODULE_TAGS := optional -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 |