summaryrefslogblamecommitdiffstats
path: root/libtar/Android.mk
blob: 7e0fafb517a9adbe3bbf72feb5c752bea5afd589 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                                                                                            





                                                       

                               
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := libtar
LOCAL_MODULE_TAGS := eng
LOCAL_MODULES_TAGS = optional
LOCAL_CFLAGS = 
LOCAL_SRC_FILES = append.c block.c decode.c encode.c extract.c handle.c output.c util.c wrapper.c basename.c strmode.c libtar_hash.c libtar_list.c dirname.c
LOCAL_C_INCLUDES += $(LOCAL_PATH) \
					external/zlib
LOCAL_SHARED_LIBRARIES += libz libc

ifneq ($(wildcard external/libselinux/Android.mk),)
	LOCAL_C_INCLUDES += external/libselinux/include
	LOCAL_SHARED_LIBRARIES += libselinux
	LOCAL_CFLAGS += -DHAVE_SELINUX
endif

include $(BUILD_SHARED_LIBRARY)