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