Rough merge of master into experimental
[platform/upstream/libvpx.git] / vp9 / vp9dx.mk
1 ##
2 ##  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3 ##
4 ##  Use of this source code is governed by a BSD-style license
5 ##  that can be found in the LICENSE file in the root of the source
6 ##  tree. An additional intellectual property rights grant can be found
7 ##  in the file PATENTS.  All contributing project authors may
8 ##  be found in the AUTHORS file in the root of the source tree.
9 ##
10
11 VP9_DX_EXPORTS += exports_dec
12
13 VP9_DX_SRCS-yes += $(VP9_COMMON_SRCS-yes)
14 VP9_DX_SRCS-no  += $(VP9_COMMON_SRCS-no)
15 VP9_DX_SRCS_REMOVE-yes += $(VP9_COMMON_SRCS_REMOVE-yes)
16 VP9_DX_SRCS_REMOVE-no  += $(VP9_COMMON_SRCS_REMOVE-no)
17
18 ifeq ($(ARCH_ARM),yes)
19   include $(SRC_PATH_BARE)/$(VP9_PREFIX)vp9dx_arm.mk
20 endif
21
22 VP9_DX_SRCS-yes += vp9_dx_iface.c
23
24 # common
25 #define ARM
26 #define DISABLE_THREAD
27
28 #INCLUDES += algo/vpx_common/vpx_mem/include
29 #INCLUDES += common
30 #INCLUDES += common
31 #INCLUDES += common
32 #INCLUDES += common
33 #INCLUDES += decoder
34
35
36
37 # decoder
38 #define ARM
39 #define DISABLE_THREAD
40
41 #INCLUDES += algo/vpx_common/vpx_mem/include
42 #INCLUDES += common
43 #INCLUDES += common
44 #INCLUDES += common
45 #INCLUDES += common
46 #INCLUDES += decoder
47
48 VP9_DX_SRCS-yes += decoder/asm_dec_offsets.c
49 VP9_DX_SRCS-yes += decoder/dboolhuff.c
50 VP9_DX_SRCS-yes += decoder/decodemv.c
51 VP9_DX_SRCS-yes += decoder/decodframe.c
52 VP9_DX_SRCS-yes += decoder/dequantize.c
53 VP9_DX_SRCS-yes += decoder/detokenize.c
54 VP9_DX_SRCS-yes += decoder/dboolhuff.h
55 VP9_DX_SRCS-yes += decoder/decodemv.h
56 VP9_DX_SRCS-yes += decoder/dequantize.h
57 VP9_DX_SRCS-yes += decoder/detokenize.h
58 VP9_DX_SRCS-yes += decoder/onyxd_int.h
59 VP9_DX_SRCS-yes += decoder/treereader.h
60 VP9_DX_SRCS-yes += decoder/onyxd_if.c
61 VP9_DX_SRCS-yes += decoder/idct_blk.c
62
63 VP9_DX_SRCS-yes := $(filter-out $(VP9_DX_SRCS_REMOVE-yes),$(VP9_DX_SRCS-yes))
64
65 VP9_DX_SRCS-$(ARCH_X86)$(ARCH_X86_64) += decoder/x86/x86_dsystemdependent.c
66 VP9_DX_SRCS-$(HAVE_MMX) += decoder/x86/dequantize_mmx.asm
67 VP9_DX_SRCS-$(HAVE_MMX) += decoder/x86/idct_blk_mmx.c
68 VP9_DX_SRCS-$(HAVE_SSE2) += decoder/x86/idct_blk_sse2.c
69
70 $(eval $(call asm_offsets_template,\
71          vp9_asm_dec_offsets.asm, $(VP9_PREFIX)decoder/asm_dec_offsets.c))