1 LOCAL_PATH:= $(call my-dir) 2 3 include $(CLEAR_VARS) 4 LOCAL_CLANG := true 5 ifeq ($(HOST_OS),linux) 6 LOCAL_SANITIZE := integer 7 endif 8 LOCAL_MODULE := fec 9 LOCAL_SRC_FILES := main.cpp image.cpp 10 LOCAL_MODULE_TAGS := optional 11 LOCAL_STATIC_LIBRARIES := \ 12 libsparse_host \ 13 libz \ 14 libcrypto_static \ 15 libfec_host \ 16 libfec_rs_host \ 17 libext4_utils_host \ 18 libsquashfs_utils_host 19 LOCAL_SHARED_LIBRARIES := libbase 20 LOCAL_CFLAGS += -Wall -Werror -O3 21 LOCAL_C_INCLUDES += external/fec 22 include $(BUILD_HOST_EXECUTABLE) 23 24 include $(CLEAR_VARS) 25 LOCAL_CLANG := true 26 LOCAL_SANITIZE := integer 27 LOCAL_MODULE := fec 28 LOCAL_FORCE_STATIC_EXECUTABLE := true 29 LOCAL_SRC_FILES := main.cpp image.cpp 30 LOCAL_MODULE_TAGS := optional 31 LOCAL_STATIC_LIBRARIES := \ 32 libcrypto_static \ 33 libfec \ 34 libfec_rs \ 35 libbase \ 36 libext4_utils_static \ 37 libsquashfs_utils \ 38 libcutils 39 LOCAL_CFLAGS += -Wall -Werror -O3 -DIMAGE_NO_SPARSE=1 40 LOCAL_C_INCLUDES += external/fec 41 include $(BUILD_EXECUTABLE) 42