Venkatarama Avadhani | aed24ee | 2015-03-11 10:08:57 +0530 | [diff] [blame] | 1 | libmpeg2d_inc_dir_arm += $(LOCAL_PATH)/decoder/arm |
| 2 | libmpeg2d_inc_dir_arm += $(LOCAL_PATH)/common/arm |
| 3 | |
| 4 | libmpeg2d_srcs_c_arm += decoder/arm/impeg2d_function_selector.c |
Harish Mahendrakar | 8520690 | 2015-08-13 10:59:13 +0530 | [diff] [blame] | 5 | libmpeg2d_srcs_c_arm += common/arm/ideint_function_selector.c |
Venkatarama Avadhani | aed24ee | 2015-03-11 10:08:57 +0530 | [diff] [blame] | 6 | libmpeg2d_cflags_arm += -DDISABLE_NEONINTR -DARM -DARMGCC |
| 7 | |
| 8 | LOCAL_ARM_MODE := arm |
| 9 | |
| 10 | ifeq ($(ARCH_ARM_HAVE_NEON),true) |
| 11 | libmpeg2d_srcs_c_arm += decoder/arm/impeg2d_function_selector_a9q.c |
Harish Mahendrakar | 8520690 | 2015-08-13 10:59:13 +0530 | [diff] [blame] | 12 | libmpeg2d_srcs_c_arm += common/arm/ideint_function_selector_a9.c |
| 13 | libmpeg2d_srcs_asm_arm += common/arm/icv_sad_a9.s |
| 14 | libmpeg2d_srcs_asm_arm += common/arm/icv_variance_a9.s |
| 15 | libmpeg2d_srcs_asm_arm += common/arm/ideint_spatial_filter_a9.s |
| 16 | libmpeg2d_srcs_asm_arm += common/arm/ideint_cac_a9.s |
Venkatarama Avadhani | aed24ee | 2015-03-11 10:08:57 +0530 | [diff] [blame] | 17 | libmpeg2d_srcs_asm_arm += common/arm/impeg2_format_conv.s |
| 18 | libmpeg2d_srcs_asm_arm += common/arm/impeg2_idct.s |
| 19 | libmpeg2d_srcs_asm_arm += common/arm/impeg2_inter_pred.s |
| 20 | libmpeg2d_srcs_asm_arm += common/arm/impeg2_mem_func.s |
| 21 | libmpeg2d_cflags_arm += -DDEFAULT_ARCH=D_ARCH_ARM_A9Q |
| 22 | else |
| 23 | libmpeg2d_cflags_arm += -DDISABLE_NEON -DDEFAULT_ARCH=D_ARCH_ARM_NONEON |
| 24 | endif |
| 25 | |
| 26 | LOCAL_SRC_FILES_arm += $(libmpeg2d_srcs_c_arm) $(libmpeg2d_srcs_asm_arm) |
| 27 | LOCAL_C_INCLUDES_arm += $(libmpeg2d_inc_dir_arm) |
| 28 | LOCAL_CFLAGS_arm += $(libmpeg2d_cflags_arm) |
Lajos Molnar | 8a94701 | 2015-04-16 18:52:36 -0700 | [diff] [blame] | 29 | |
| 30 | # CLANG WORKAROUNDS |
| 31 | LOCAL_CLANG_ASFLAGS_arm += -no-integrated-as |
| 32 | LOCAL_CLANG_ASFLAGS_arm += $(addprefix -Wa$(comma)-I,$(libmpeg2d_inc_dir_arm)) |