diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2014-02-11 18:42:45 +0100 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit> | 2014-02-12 16:14:24 +0100 |
commit | ccb0cf7fa861e2c26081d60346698eb82e555a54 (patch) | |
tree | c8e054e02074b0a0d30410e7e980eb98cd0f5d3c /libtar | |
parent | Remove unused functions (diff) | |
download | android_bootable_recovery-ccb0cf7fa861e2c26081d60346698eb82e555a54.tar android_bootable_recovery-ccb0cf7fa861e2c26081d60346698eb82e555a54.tar.gz android_bootable_recovery-ccb0cf7fa861e2c26081d60346698eb82e555a54.tar.bz2 android_bootable_recovery-ccb0cf7fa861e2c26081d60346698eb82e555a54.tar.lz android_bootable_recovery-ccb0cf7fa861e2c26081d60346698eb82e555a54.tar.xz android_bootable_recovery-ccb0cf7fa861e2c26081d60346698eb82e555a54.tar.zst android_bootable_recovery-ccb0cf7fa861e2c26081d60346698eb82e555a54.zip |
Diffstat (limited to 'libtar')
-rw-r--r-- | libtar/Android.mk | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libtar/Android.mk b/libtar/Android.mk index f936e96ff..1972573bb 100644 --- a/libtar/Android.mk +++ b/libtar/Android.mk @@ -1,5 +1,6 @@ LOCAL_PATH := $(call my-dir) +# Build shared library include $(CLEAR_VARS) LOCAL_MODULE := libtar @@ -19,3 +20,22 @@ endif include $(BUILD_SHARED_LIBRARY) +# Build static library +include $(CLEAR_VARS) + +LOCAL_MODULE := libtar_static +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_STATIC_LIBRARIES += libz libc + +ifeq ($(TWHAVE_SELINUX), true) + LOCAL_C_INCLUDES += external/libselinux/include + LOCAL_STATIC_LIBRARIES += libselinux + LOCAL_CFLAGS += -DHAVE_SELINUX +endif + +include $(BUILD_STATIC_LIBRARY) |