| # Build only if both hardware/google/av and device/google/cheets2/codec2 are |
| # visible; otherwise, don't build any target under this repository. |
| ifneq (,$(findstring hardware/google/av,$(PRODUCT_SOONG_NAMESPACES))) |
| ifneq (,$(findstring vendor/google_arc/libs/codec2,$(PRODUCT_SOONG_NAMESPACES))) |
| |
| LOCAL_PATH := $(call my-dir) |
| include $(CLEAR_VARS) |
| |
| LOCAL_SRC_FILES:= \ |
| C2VDAComponent.cpp \ |
| C2VEAComponent.cpp \ |
| C2VDAAdaptor.cpp \ |
| |
| LOCAL_C_INCLUDES += \ |
| $(TOP)/external/libchrome \ |
| $(TOP)/external/gtest/include \ |
| $(TOP)/external/v4l2_codec2/accel \ |
| $(TOP)/external/v4l2_codec2/include \ |
| $(TOP)/frameworks/av/media/libstagefright/include \ |
| $(TOP)/hardware/google/av/codec2/include \ |
| $(TOP)/hardware/google/av/codec2/vndk/include \ |
| $(TOP)/hardware/google/av/media/codecs/base/include \ |
| |
| LOCAL_MODULE:= libv4l2_codec2 |
| LOCAL_MODULE_TAGS := optional |
| |
| LOCAL_SHARED_LIBRARIES := android.hardware.graphics.common@1.0 \ |
| libarc_c2componentstore \ |
| libbinder \ |
| libchrome \ |
| libcutils \ |
| liblog \ |
| libmedia \ |
| libstagefright \ |
| libstagefright_bufferqueue_helper \ |
| libstagefright_ccodec_ext \ |
| libstagefright_ccodec_utils \ |
| libstagefright_codec2 \ |
| libstagefright_codec2_vndk \ |
| libstagefright_simple_c2component \ |
| libstagefright_foundation \ |
| libui \ |
| libutils \ |
| libv4l2_codec2_accel \ |
| libvda_c2_pixelformat \ |
| |
| # -Wno-unused-parameter is needed for libchrome/base codes |
| LOCAL_CFLAGS += -Werror -Wall -Wno-unused-parameter |
| LOCAL_CFLAGS += -Wno-unused-lambda-capture -Wno-unknown-warning-option |
| LOCAL_CLANG := true |
| LOCAL_SANITIZE := unsigned-integer-overflow signed-integer-overflow |
| |
| LOCAL_LDFLAGS := -Wl,-Bsymbolic |
| |
| # Build C2VDAAdaptorProxy only for ARC++ case. |
| ifneq (,$(findstring cheets_,$(TARGET_PRODUCT))) |
| LOCAL_CFLAGS += -DV4L2_CODEC2_ARC |
| LOCAL_SRC_FILES += \ |
| C2VDAAdaptorProxy.cpp \ |
| C2VEAAdaptorProxy.cpp \ |
| |
| LOCAL_SRC_FILES := $(filter-out C2VDAAdaptor.cpp, $(LOCAL_SRC_FILES)) |
| LOCAL_SHARED_LIBRARIES += libarcbridge \ |
| libarcbridgeservice \ |
| libcodec2_arcva_factory \ |
| libmojo \ |
| |
| endif # ifneq (,$(findstring cheets_,$(TARGET_PRODUCT))) |
| |
| include $(BUILD_SHARED_LIBRARY) |
| |
| include $(call all-makefiles-under,$(LOCAL_PATH)) |
| |
| endif #ifneq (,$(findstring vendor/google_arc/libs/codec2,$(PRODUCT_SOONG_NAMESPACES))) |
| endif #ifneq (,$(findstring hardware/google/av,$(PRODUCT_SOONG_NAMESPACES))) |