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 |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 7 | LOCAL_MODULE_TAGS := optional |
Ethan Yonker | 8d039f7 | 2017-02-03 14:26:15 -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 android_utils.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) |
bigbiff | df53b6c | 2022-01-17 19:31:52 -0500 | [diff] [blame] | 17 | LOCAL_STATIC_LIBRARIES += libvold libscrypt_static |
| 18 | LOCAL_SHARED_LIBRARIES += \ |
| 19 | android.hardware.boot@1.0 \ |
| 20 | android.hardware.confirmationui@1.0 \ |
| 21 | android.hardware.gatekeeper@1.0 \ |
| 22 | android.hardware.keymaster@3.0 \ |
| 23 | android.hardware.keymaster@4.0 \ |
| 24 | android.hardware.keymaster@4.1 \ |
| 25 | android.hardware.weaver@1.0 \ |
bigbiff | 7df8747 | 2022-09-24 16:45:03 -0400 | [diff] [blame] | 26 | android.security.apc-ndk \ |
| 27 | android.system.keystore2-V1-ndk \ |
| 28 | android.security.authorization-ndk \ |
| 29 | android.security.maintenance-ndk \ |
| 30 | libkeystoreinfo \ |
bigbiff | df53b6c | 2022-01-17 19:31:52 -0500 | [diff] [blame] | 31 | libselinux \ |
| 32 | libbinder_ndk \ |
| 33 | libext4_utils \ |
| 34 | libbase \ |
| 35 | libcrypto \ |
| 36 | libcutils \ |
| 37 | libf2fs_sparseblock \ |
| 38 | libkeymaster_messages \ |
| 39 | libkeymint_support \ |
bigbiff | df53b6c | 2022-01-17 19:31:52 -0500 | [diff] [blame] | 40 | libkeystore-attestation-application-id \ |
| 41 | libhardware \ |
| 42 | libprotobuf-cpp-lite \ |
Mohd Faraz | e098d0d | 2023-09-12 16:24:41 +0530 | [diff] [blame] | 43 | libfscrypttwrp \ |
bigbiff | df53b6c | 2022-01-17 19:31:52 -0500 | [diff] [blame] | 44 | libhidlbase \ |
| 45 | libutils \ |
| 46 | libbinder \ |
| 47 | libfs_mgr \ |
| 48 | libkeymaster4support \ |
| 49 | libkeymaster4_1support \ |
| 50 | libf2fs_sparseblock \ |
| 51 | libkeyutils \ |
| 52 | liblog \ |
| 53 | libhwbinder \ |
| 54 | libchrome \ |
| 55 | libbootloader_message \ |
| 56 | libgatekeeper_aidl |
| 57 | |
bigbiff | a957f07 | 2021-03-07 18:20:29 -0500 | [diff] [blame] | 58 | LOCAL_CFLAGS += -DUSE_FSCRYPT |
bigbiff | 2e344ab | 2021-05-07 10:41:55 -0400 | [diff] [blame] | 59 | ifeq ($(TW_USE_FSCRYPT_POLICY), 1) |
| 60 | LOCAL_CFLAGS += -DUSE_FSCRYPT_POLICY_V1 |
| 61 | else |
| 62 | LOCAL_CFLAGS += -DUSE_FSCRYPT_POLICY_V2 |
| 63 | endif |
bigbiff | df53b6c | 2022-01-17 19:31:52 -0500 | [diff] [blame] | 64 | LOCAL_C_INCLUDES += system/vold |
Vojtech Bocek | 25fd68d | 2013-08-27 03:10:10 +0200 | [diff] [blame] | 65 | endif |
| 66 | |
DarthJabba9 | 247c68b | 2020-10-11 16:47:56 +0100 | [diff] [blame] | 67 | ifeq ($(TW_LIBTAR_DEBUG),true) |
| 68 | LOCAL_CFLAGS += -DTW_LIBTAR_DEBUG |
| 69 | endif |
| 70 | |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 71 | include $(BUILD_SHARED_LIBRARY) |
| 72 | |
Ethan Yonker | ccb0cf7 | 2014-02-11 11:42:45 -0600 | [diff] [blame] | 73 | # Build static library |
| 74 | include $(CLEAR_VARS) |
| 75 | |
| 76 | LOCAL_MODULE := libtar_static |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 77 | LOCAL_MODULE_TAGS := optional |
Ethan Yonker | 8d039f7 | 2017-02-03 14:26:15 -0600 | [diff] [blame] | 78 | 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 android_utils.c |
Ethan Yonker | ccb0cf7 | 2014-02-11 11:42:45 -0600 | [diff] [blame] | 79 | LOCAL_C_INCLUDES += $(LOCAL_PATH) \ |
Ethan Yonker | 79f88bd | 2016-12-09 14:52:12 -0600 | [diff] [blame] | 80 | external/zlib |
Ethan Yonker | ccb0cf7 | 2014-02-11 11:42:45 -0600 | [diff] [blame] | 81 | LOCAL_STATIC_LIBRARIES += libz libc |
| 82 | |
Matt Mower | 8741364 | 2017-01-17 21:14:46 -0600 | [diff] [blame] | 83 | LOCAL_C_INCLUDES += external/libselinux/include |
| 84 | LOCAL_STATIC_LIBRARIES += libselinux |
Ethan Yonker | 79f88bd | 2016-12-09 14:52:12 -0600 | [diff] [blame] | 85 | |
| 86 | ifeq ($(TW_INCLUDE_CRYPTO_FBE), true) |
bigbiff | a957f07 | 2021-03-07 18:20:29 -0500 | [diff] [blame] | 87 | LOCAL_CFLAGS += -DUSE_FSCRYPT |
bigbiff | df53b6c | 2022-01-17 19:31:52 -0500 | [diff] [blame] | 88 | LOCAL_C_INCLUDES += system/vold |
Ethan Yonker | ccb0cf7 | 2014-02-11 11:42:45 -0600 | [diff] [blame] | 89 | endif |
| 90 | |
DarthJabba9 | 247c68b | 2020-10-11 16:47:56 +0100 | [diff] [blame] | 91 | ifeq ($(TW_LIBTAR_DEBUG),true) |
| 92 | LOCAL_CFLAGS += -DTW_LIBTAR_DEBUG |
| 93 | endif |
| 94 | |
Ethan Yonker | ccb0cf7 | 2014-02-11 11:42:45 -0600 | [diff] [blame] | 95 | include $(BUILD_STATIC_LIBRARY) |