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