blob: f936e96fff0e580c3287bef73fab03cebd98e998 [file] [log] [blame]
bigbiff bigbiff9c754052013-01-09 09:09:08 -05001LOCAL_PATH := $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE := libtar
6LOCAL_MODULE_TAGS := eng
7LOCAL_MODULES_TAGS = optional
8LOCAL_CFLAGS =
9LOCAL_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
10LOCAL_C_INCLUDES += $(LOCAL_PATH) \
11 external/zlib
12LOCAL_SHARED_LIBRARIES += libz libc
13
Dees Troy4bf3b0d2013-09-11 19:12:49 +000014ifeq ($(TWHAVE_SELINUX), true)
Vojtech Bocek25fd68d2013-08-27 03:10:10 +020015 LOCAL_C_INCLUDES += external/libselinux/include
16 LOCAL_SHARED_LIBRARIES += libselinux
17 LOCAL_CFLAGS += -DHAVE_SELINUX
18endif
19
bigbiff bigbiff9c754052013-01-09 09:09:08 -050020include $(BUILD_SHARED_LIBRARY)
21