diff options
author | Sasha Smundak <asmundak@google.com> | 2019-01-14 14:01:29 -0800 |
---|---|---|
committer | Sasha Smundak <asmundak@google.com> | 2019-01-14 14:01:29 -0800 |
commit | 34424f0c176dfc670ba360c76462b429ad1343f7 (patch) | |
tree | 5a49bf1f2dc7017bded0a31658c22563ae37ea8b | |
parent | c6783c32331b3fe78ffd5077e7f180995d0e268e (diff) | |
download | nanohttpd-34424f0c176dfc670ba360c76462b429ad1343f7.tar.gz |
Convert Android.mk file to Android.bpandroid-q-preview-6android-q-preview-5android-q-preview-4android-q-preview-2.5android-q-preview-1android-o-mr1-iot-release-1.0.12android-o-mr1-iot-release-1.0.10oreo-mr1-iot-release
See build/soong/README.md for more information.
Change-Id: I20aa9412441230741ce81885149e3cd9617e14da
Fixes: 122332275
Test: treehugger
-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 |