blob: d37dcbf2fa700d90dd71b92764878dda1a172481 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Copyright 2015 The Android Open Source Project
#
LOCAL_PATH := $(call my-dir)
common_cflags := -Wall -Werror -O3 -D_LARGEFILE64_SOURCE
common_c_includes := \
$(LOCAL_PATH)/include \
external/fec \
system/extras/squashfs_utils
common_src_files := \
fec_open.cpp \
fec_read.cpp \
fec_verity.cpp \
fec_process.cpp
common_static_libraries := \
libfec_rs \
libcrypto_utils \
libcrypto \
libcutils \
libbase \
include $(CLEAR_VARS)
LOCAL_CFLAGS := $(common_cflags)
LOCAL_C_INCLUDES := $(common_c_includes)
LOCAL_CLANG := true
LOCAL_SANITIZE := integer
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
LOCAL_MODULE := libfec
LOCAL_SRC_FILES := $(common_src_files)
LOCAL_STATIC_LIBRARIES := \
libext4_utils_static \
libsquashfs_utils \
libcutils \
$(common_static_libraries)
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_CFLAGS := $(common_cflags) -D_GNU_SOURCE -DFEC_NO_KLOG
LOCAL_C_INCLUDES := $(common_c_includes)
LOCAL_CLANG := true
ifeq ($(HOST_OS),linux)
LOCAL_SANITIZE := integer
endif
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
LOCAL_MODULE := libfec
LOCAL_SRC_FILES := $(common_src_files)
LOCAL_STATIC_LIBRARIES := \
libext4_utils_host \
libsquashfs_utils_host \
$(common_static_libraries)
include $(BUILD_HOST_STATIC_LIBRARY)
include $(LOCAL_PATH)/test/Android.mk
|