Ethan Yonker | 66a1949 | 2015-12-10 10:19:45 -0600 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | # Build libgpt_twrp library |
| 4 | |
| 5 | include $(CLEAR_VARS) |
Ethan Yonker | 95e8007 | 2017-08-24 21:45:50 -0500 | [diff] [blame] | 6 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 26; echo $$?),0) |
Ethan Yonker | 66a1949 | 2015-12-10 10:19:45 -0600 | [diff] [blame] | 7 | LOCAL_CLANG := false |
Ethan Yonker | 95e8007 | 2017-08-24 21:45:50 -0500 | [diff] [blame] | 8 | endif |
Ethan Yonker | 66a1949 | 2015-12-10 10:19:45 -0600 | [diff] [blame] | 9 | LOCAL_MODULE := libgpt_twrp |
| 10 | LOCAL_MODULE_TAGS := optional |
| 11 | |
| 12 | LOCAL_SRC_FILES = \ |
| 13 | gpt.c \ |
| 14 | gptcrc32.c |
| 15 | |
D. Andrei Măceș | 08f91e8 | 2018-09-02 20:40:30 +0300 | [diff] [blame] | 16 | LOCAL_CFLAGS := -Wno-format -Wno-format-security |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 17 | |
Ethan Yonker | 66a1949 | 2015-12-10 10:19:45 -0600 | [diff] [blame] | 18 | LOCAL_SHARED_LIBRARIES := libc |
| 19 | include $(BUILD_SHARED_LIBRARY) |