Initial version

Change-Id: I5a9473876e596e7461e91f971b0243f694f7e8fb
diff --git a/decoder.arm64.mk b/decoder.arm64.mk
new file mode 100644
index 0000000..f3a36e6
--- /dev/null
+++ b/decoder.arm64.mk
@@ -0,0 +1,31 @@
+libmpeg2d_cflags_arm64 += -DARMV8
+libmpeg2d_cflags_arm64 += -DDISABLE_NEONINTR  -DARM -DARMGCC
+
+libmpeg2d_inc_dir_arm64   +=  $(LOCAL_PATH)/decoder/arm
+libmpeg2d_inc_dir_arm64   +=  $(LOCAL_PATH)/common/armv8
+
+libmpeg2d_srcs_c_arm64    +=  decoder/arm/impeg2d_function_selector.c
+
+ifeq ($(ARCH_ARM_HAVE_NEON),true)
+libmpeg2d_srcs_c_arm64      +=  decoder/arm/impeg2d_function_selector_av8.c
+
+libmpeg2d_srcs_asm_arm64    +=  common/armv8/impeg2_neon_macros.s
+libmpeg2d_srcs_asm_arm64    +=  common/armv8/impeg2_format_conv.s
+libmpeg2d_srcs_asm_arm64    +=  common/armv8/impeg2_idct.s
+libmpeg2d_srcs_asm_arm64    +=  common/armv8/impeg2_inter_pred.s
+libmpeg2d_srcs_asm_arm64    +=  common/armv8/impeg2_mem_func.s
+libmpeg2d_cflags_arm += -DDEFAULT_ARCH=D_ARCH_ARMV8_GENERIC
+else
+libmpeg2d_cflags_arm64 += -DDISABLE_NEON -DDEFAULT_ARCH=D_ARCH_ARM_NONEON
+endif
+
+
+
+
+LOCAL_SRC_FILES_arm64 += $(libmpeg2d_srcs_c_arm64) $(libmpeg2d_srcs_asm_arm64)
+LOCAL_C_INCLUDES_arm64 += $(libmpeg2d_inc_dir_arm64)
+
+comma := ,
+LOCAL_ASFLAGS_arm64 += $(addprefix -Wa$(comma)-I,$(libmpeg2d_inc_dir_arm64))
+
+LOCAL_CFLAGS_arm64 += $(libmpeg2d_cflags_arm64)