blob: bbd71ebf4d19b9597499baad4b0f2d67e43414a9 [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
Ethan Yonker58f21322018-08-24 11:17:36 -050016LOCAL_CFLAGS := -Wno-format
17
Ethan Yonker66a19492015-12-10 10:19:45 -060018LOCAL_SHARED_LIBRARIES := libc
19include $(BUILD_SHARED_LIBRARY)