summaryrefslogtreecommitdiffstats
path: root/gpt/Android.mk
blob: bbd71ebf4d19b9597499baad4b0f2d67e43414a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
LOCAL_PATH := $(call my-dir)

# Build libgpt_twrp library

include $(CLEAR_VARS)
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 26; echo $$?),0)
LOCAL_CLANG := false
endif
LOCAL_MODULE := libgpt_twrp
LOCAL_MODULE_TAGS := optional

LOCAL_SRC_FILES = \
    gpt.c \
    gptcrc32.c

LOCAL_CFLAGS := -Wno-format

LOCAL_SHARED_LIBRARIES := libc
include $(BUILD_SHARED_LIBRARY)