Skip to content

Commit 13f25b1

Browse files
samitolvanenGerrit Code Review
authored and
Gerrit Code Review
committed
Merge "Error correction: Add libfec to read encoded data"
2 parents af995fe + c54a33d commit 13f25b1

File tree

11 files changed

+2538
-0
lines changed

11 files changed

+2538
-0
lines changed

libfec/Android.mk

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

0 commit comments

Comments
 (0)