bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
Ethan Yonker | ccb0cf7 | 2014-02-11 11:42:45 -0600 | [diff] [blame] | 3 | # Build shared library |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 4 | include $(CLEAR_VARS) |
| 5 | |
| 6 | LOCAL_MODULE := libtar |
| 7 | LOCAL_MODULE_TAGS := eng |
| 8 | LOCAL_MODULES_TAGS = optional |
| 9 | LOCAL_CFLAGS = |
| 10 | 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 |
| 11 | LOCAL_C_INCLUDES += $(LOCAL_PATH) \ |
| 12 | external/zlib |
| 13 | LOCAL_SHARED_LIBRARIES += libz libc |
| 14 | |
Dees Troy | 4bf3b0d | 2013-09-11 19:12:49 +0000 | [diff] [blame] | 15 | ifeq ($(TWHAVE_SELINUX), true) |
Vojtech Bocek | 25fd68d | 2013-08-27 03:10:10 +0200 | [diff] [blame] | 16 | LOCAL_C_INCLUDES += external/libselinux/include |
| 17 | LOCAL_SHARED_LIBRARIES += libselinux |
| 18 | LOCAL_CFLAGS += -DHAVE_SELINUX |
| 19 | endif |
| 20 | |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 21 | include $(BUILD_SHARED_LIBRARY) |
| 22 | |
Ethan Yonker | ccb0cf7 | 2014-02-11 11:42:45 -0600 | [diff] [blame] | 23 | # Build static library |
| 24 | include $(CLEAR_VARS) |
| 25 | |
| 26 | LOCAL_MODULE := libtar_static |
| 27 | LOCAL_MODULE_TAGS := eng |
| 28 | LOCAL_MODULES_TAGS = optional |
| 29 | LOCAL_CFLAGS = |
| 30 | 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 |
| 31 | LOCAL_C_INCLUDES += $(LOCAL_PATH) \ |
| 32 | external/zlib |
| 33 | LOCAL_STATIC_LIBRARIES += libz libc |
| 34 | |
| 35 | ifeq ($(TWHAVE_SELINUX), true) |
| 36 | LOCAL_C_INCLUDES += external/libselinux/include |
| 37 | LOCAL_STATIC_LIBRARIES += libselinux |
| 38 | LOCAL_CFLAGS += -DHAVE_SELINUX |
| 39 | endif |
| 40 | |
| 41 | include $(BUILD_STATIC_LIBRARY) |