1 # Copyright 2015 The Android Open Source Project
3 LOCAL_PATH := $(call my-dir)
5 common_cflags := -Wall -Werror -O3
8 $(LOCAL_PATH)/include \
10 system/extras/squashfs_utils
18 common_static_libraries := \
25 LOCAL_CFLAGS := $(common_cflags)
26 LOCAL_C_INCLUDES := $(common_c_includes)
28 LOCAL_SANITIZE := integer
29 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
30 LOCAL_MODULE := libfec
31 LOCAL_SRC_FILES := $(common_src_files)
32 LOCAL_STATIC_LIBRARIES := \
34 libext4_utils_static \
37 $(common_static_libraries)
38 include $(BUILD_STATIC_LIBRARY)
41 LOCAL_CFLAGS := $(common_cflags) -D_GNU_SOURCE -DFEC_NO_KLOG
42 LOCAL_C_INCLUDES := $(common_c_includes)
44 ifeq ($(HOST_OS),linux)
45 LOCAL_SANITIZE := integer
47 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
48 LOCAL_MODULE := libfec
49 LOCAL_SRC_FILES := $(common_src_files)
50 LOCAL_STATIC_LIBRARIES := \
53 libsquashfs_utils_host \
54 $(common_static_libraries)
55 include $(BUILD_HOST_STATIC_LIBRARY)
57 include $(LOCAL_PATH)/test/Android.mk