1#
2# Copyright (C) 2015 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16LOCAL_PATH := $(my-dir)
17
18include $(CLEAR_VARS)
19
20LOCAL_MODULE := libmicrohttpd
21LOCAL_CFLAGS := -Wno-sign-compare -Wno-unused-parameter
22LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/src/include
23
24LOCAL_C_INCLUDES := \
25    $(LOCAL_PATH)/src/include \
26    $(LOCAL_PATH)/src/microhttpd \
27    external/boringssl/include \
28
29LOCAL_SHARED_LIBRARIES := libssl libcrypto
30
31LOCAL_SRC_FILES := \
32    src/microhttpd/base64.c \
33    src/microhttpd/basicauth.c \
34    src/microhttpd/connection.c \
35    src/microhttpd/connection_https.c \
36    src/microhttpd/daemon.c \
37    src/microhttpd/digestauth.c \
38    src/microhttpd/internal.c \
39    src/microhttpd/md5.c \
40    src/microhttpd/memorypool.c \
41    src/microhttpd/postprocessor.c \
42    src/microhttpd/reason_phrase.c \
43    src/microhttpd/response.c \
44    src/microhttpd/tsearch.c \
45
46include $(BUILD_SHARED_LIBRARY)
47