LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES := \ ../common/va_display.c \ ../common/va_display_android.cpp \ va_encode.c va_surface.c h264encode.c \ mpeg4encode.c h263encode.c vp8encode.c \ jpegencode.c jpegtables.c mpeg2encode.c \ hevcencode.c \ codedmeta.c ../utils/configrc.lex.l ../utils/configrc.yacc.y \ ../android/gralloc.cpp ../utils/psnr.c ../utils/ssim.c LOCAL_CFLAGS += \ -DANDROID -D_LINK_C ifeq ($(TARGET_ARCH),x86_64) LOCAL_CFLAGS += -march=x86-64 endif LOCAL_C_INCLUDES += \ $(LOCAL_PATH)/../../va \ $(LOCAL_PATH)/../common \ $(LOCAL_PATH)/../utils \ $(TARGET_OUT_HEADERS)/libva LOCAL_MODULE_TAGS := optional LOCAL_MODULE := va_encode LOCAL_SHARED_LIBRARIES := libva-android libva libm libcutils libutils libgui libui include $(BUILD_EXECUTABLE)