1LOCAL_PATH:= $(call my-dir) 2include $(CLEAR_VARS) 3 4LOCAL_CPP_EXTENSION:= .cc 5LOCAL_SRC_FILES:= \ 6 bit_reader.cc \ 7 bit_reader_core.cc \ 8 bitstream_buffer.cc \ 9 h264_bit_reader.cc \ 10 h264_decoder.cc \ 11 h264_dpb.cc \ 12 h264_parser.cc \ 13 picture.cc \ 14 ranges.cc \ 15 shared_memory_region.cc \ 16 v4l2_device.cc \ 17 v4l2_slice_video_decode_accelerator.cc \ 18 video_codecs.cc \ 19 video_decode_accelerator.cc \ 20 vp8_bool_decoder.cc \ 21 vp8_decoder.cc \ 22 vp8_parser.cc \ 23 vp8_picture.cc \ 24 vp9_bool_decoder.cc \ 25 vp9_compressed_header_parser.cc \ 26 vp9_decoder.cc \ 27 vp9_parser.cc \ 28 vp9_picture.cc \ 29 vp9_raw_bits_reader.cc \ 30 vp9_uncompressed_header_parser.cc \ 31 32# gtest/include is for included file from libchrome/base/gtest_prod_util.h 33LOCAL_C_INCLUDES += \ 34 $(TOP)/external/libchrome \ 35 $(TOP)/external/gtest/include \ 36 37LOCAL_MODULE:= libv4l2_codec2_vda 38 39LOCAL_SHARED_LIBRARIES := libchrome \ 40 41# -Wno-unused-parameter is needed for libchrome/base codes 42LOCAL_CFLAGS += -Werror -Wall -Wno-unused-parameter 43LOCAL_CLANG := true 44LOCAL_SANITIZE := unsigned-integer-overflow signed-integer-overflow 45 46LOCAL_LDFLAGS := -Wl,-Bsymbolic 47 48include $(BUILD_SHARED_LIBRARY) 49