aboutsummaryrefslogtreecommitdiff
path: root/Android.mk
diff options
context:
space:
mode:
authorGilad Arnold <garnold@google.com>2015-07-17 12:05:01 -0700
committerGilad Arnold <garnold@google.com>2015-07-20 10:45:17 -0700
commit1d195eb92934324a2d111d7cef1a6a156716d42c (patch)
treec81e1d4e232df089c660235af0ff13c996e175ab /Android.mk
parent968bf19396ad404e89420f5d67900fce13f4186c (diff)
downloadc-ares-1d195eb92934324a2d111d7cef1a6a156716d42c.tar.gz
Build libcares.so on Android.
Adds ares_config.h (derived from ares_config.h.in) and Android.mk. Also, some small fixes to make the code build without errors: ares_build.h: CARES_SIZEOF_LONG defaults to sizeof(long) if no other case applies; while this seems to defeat the purpose of defining a macro, it works. ares_nowarn.c: If HAVE_LIMITS_H is defined, include limits.h and use INT_MAX and UINT_MAX as needed. Bug: 22545809 Change-Id: I628ce2659f6503a415d06db3e223d9ef00956ddb
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk23
1 files changed, 23 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..8f8c361
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,23 @@
+# Copyright (C) 2015 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+LOCAL_PATH := $(call my-dir)
+
+include $(LOCAL_PATH)/Makefile.inc
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := libcares
+LOCAL_CFLAGS += -DHAVE_CONFIG_H
+LOCAL_SRC_FILES := $(CSOURCES)
+include $(BUILD_SHARED_LIBRARY)