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