blob: 90a5006c51280a5eb809f180df53b66e45afb9fb [file] [log] [blame]
bigbiff bigbiff9c754052013-01-09 09:09:08 -05001LOCAL_PATH := $(call my-dir)
2
Ethan Yonkerccb0cf72014-02-11 11:42:45 -06003# Build shared library
bigbiff bigbiff9c754052013-01-09 09:09:08 -05004include $(CLEAR_VARS)
5
6LOCAL_MODULE := libtar
Matt Mowerdb220442014-10-31 22:43:59 -05007LOCAL_MODULE_TAGS := eng optional
Ethan Yonker8d039f72017-02-03 14:26:15 -06008LOCAL_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 bigbiff9c754052013-01-09 09:09:08 -05009LOCAL_C_INCLUDES += $(LOCAL_PATH) \
Ethan Yonker79f88bd2016-12-09 14:52:12 -060010 external/zlib
bigbiff bigbiff9c754052013-01-09 09:09:08 -050011LOCAL_SHARED_LIBRARIES += libz libc
12
Matt Mower87413642017-01-17 21:14:46 -060013LOCAL_C_INCLUDES += external/libselinux/include
14LOCAL_SHARED_LIBRARIES += libselinux
Ethan Yonker79f88bd2016-12-09 14:52:12 -060015
16ifeq ($(TW_INCLUDE_CRYPTO_FBE), true)
17 LOCAL_SHARED_LIBRARIES += libe4crypt
18 LOCAL_CFLAGS += -DHAVE_EXT4_CRYPT
D. Andrei Măceș1c289042016-12-16 16:01:56 -050019 LOCAL_C_INCLUDES += $(LOCAL_PATH)/../crypto/ext4crypt
Vojtech Bocek25fd68d2013-08-27 03:10:10 +020020endif
21
bigbiff bigbiff9c754052013-01-09 09:09:08 -050022include $(BUILD_SHARED_LIBRARY)
23
Ethan Yonkerccb0cf72014-02-11 11:42:45 -060024# Build static library
25include $(CLEAR_VARS)
26
27LOCAL_MODULE := libtar_static
Matt Mowerdb220442014-10-31 22:43:59 -050028LOCAL_MODULE_TAGS := eng optional
Ethan Yonker8d039f72017-02-03 14:26:15 -060029LOCAL_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 Yonkerccb0cf72014-02-11 11:42:45 -060030LOCAL_C_INCLUDES += $(LOCAL_PATH) \
Ethan Yonker79f88bd2016-12-09 14:52:12 -060031 external/zlib
Ethan Yonkerccb0cf72014-02-11 11:42:45 -060032LOCAL_STATIC_LIBRARIES += libz libc
33
Matt Mower87413642017-01-17 21:14:46 -060034LOCAL_C_INCLUDES += external/libselinux/include
35LOCAL_STATIC_LIBRARIES += libselinux
Ethan Yonker79f88bd2016-12-09 14:52:12 -060036
37ifeq ($(TW_INCLUDE_CRYPTO_FBE), true)
38 LOCAL_SHARED_LIBRARIES += libe4crypt
39 LOCAL_CFLAGS += -DHAVE_EXT4_CRYPT
D. Andrei Măceș1c289042016-12-16 16:01:56 -050040 LOCAL_C_INCLUDES += $(LOCAL_PATH)/../crypto/ext4crypt
Ethan Yonkerccb0cf72014-02-11 11:42:45 -060041endif
42
43include $(BUILD_STATIC_LIBRARY)