blob: 84ebd2db284bc5a12308e5e7b9081a33b3a792d7 [file] [log] [blame]
Daniel Erat3b641bc2015-08-11 14:05:33 -06001#
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
Chih-Hung Hsiehffed7d72017-10-10 15:40:53 -070021LOCAL_CFLAGS := \
22 -Wall -Werror \
23 -Wno-sign-compare \
24 -Wno-tautological-constant-out-of-range-compare \
25 -Wno-unused-parameter \
26 -Wno-unused-variable \
27
Daniel Erat3b641bc2015-08-11 14:05:33 -060028LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/src/include
29
30LOCAL_C_INCLUDES := \
31 $(LOCAL_PATH)/src/include \
32 $(LOCAL_PATH)/src/microhttpd \
Darren Krahn98eba182015-08-13 17:01:56 -070033 external/boringssl/include \
34
35LOCAL_SHARED_LIBRARIES := libssl libcrypto
Daniel Erat3b641bc2015-08-11 14:05:33 -060036
37LOCAL_SRC_FILES := \
38 src/microhttpd/base64.c \
39 src/microhttpd/basicauth.c \
40 src/microhttpd/connection.c \
Darren Krahn98eba182015-08-13 17:01:56 -070041 src/microhttpd/connection_https.c \
Daniel Erat3b641bc2015-08-11 14:05:33 -060042 src/microhttpd/daemon.c \
43 src/microhttpd/digestauth.c \
44 src/microhttpd/internal.c \
45 src/microhttpd/md5.c \
46 src/microhttpd/memorypool.c \
47 src/microhttpd/postprocessor.c \
48 src/microhttpd/reason_phrase.c \
49 src/microhttpd/response.c \
50 src/microhttpd/tsearch.c \
51
52include $(BUILD_SHARED_LIBRARY)