blob: 1b694ea01f0d72b4e661b84c0fef7f4bef1f92d7 [file] [log] [blame]
Ethan Yonker66a19492015-12-10 10:19:45 -06001LOCAL_PATH := $(call my-dir)
2
3# Build libgpt_twrp library
4
5include $(CLEAR_VARS)
Ethan Yonker95e80072017-08-24 21:45:50 -05006ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 26; echo $$?),0)
Ethan Yonker66a19492015-12-10 10:19:45 -06007LOCAL_CLANG := false
Ethan Yonker95e80072017-08-24 21:45:50 -05008endif
Ethan Yonker66a19492015-12-10 10:19:45 -06009LOCAL_MODULE := libgpt_twrp
10LOCAL_MODULE_TAGS := optional
11
12LOCAL_SRC_FILES = \
13 gpt.c \
14 gptcrc32.c
15
D. Andrei Măceș08f91e82018-09-02 20:40:30 +030016LOCAL_CFLAGS := -Wno-format -Wno-format-security
Ethan Yonker58f21322018-08-24 11:17:36 -050017
Ethan Yonker66a19492015-12-10 10:19:45 -060018LOCAL_SHARED_LIBRARIES := libc
19include $(BUILD_SHARED_LIBRARY)