Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Side by Side Diff: source/libvpx/build/make/Android.mk

Issue 13849011: libvpx: Pull from upstream (Closed) Base URL: https://src.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « libvpx_srcs_x86_intrinsics.gypi ('k') | source/libvpx/build/make/configure.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ## 1 ##
2 ## Copyright (c) 2012 The WebM project authors. All Rights Reserved. 2 ## Copyright (c) 2012 The WebM project authors. All Rights Reserved.
3 ## 3 ##
4 ## Use of this source code is governed by a BSD-style license 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 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 6 ## tree. An additional intellectual property rights grant can be found
7 ## in the file PATENTS. All contributing project authors may 7 ## in the file PATENTS. All contributing project authors may
8 ## be found in the AUTHORS file in the root of the source tree. 8 ## be found in the AUTHORS file in the root of the source tree.
9 ## 9 ##
10 10
(...skipping 30 matching lines...) Expand all
41 # Configuring with --disable-runtime-cpu-detect --disable-neon will remove any 41 # Configuring with --disable-runtime-cpu-detect --disable-neon will remove any
42 # NEON dependency. 42 # NEON dependency.
43 43
44 # To change to building armeabi, run ./libvpx/configure again, but with 44 # To change to building armeabi, run ./libvpx/configure again, but with
45 # --target=arm5te-android-gcc and modify the Application.mk file to 45 # --target=arm5te-android-gcc and modify the Application.mk file to
46 # set APP_ABI := armeabi 46 # set APP_ABI := armeabi
47 # 47 #
48 # Running ndk-build will build libvpx and include it in your project. 48 # Running ndk-build will build libvpx and include it in your project.
49 # 49 #
50 50
51 CONFIG_DIR := $(LOCAL_PATH) 51 CONFIG_DIR := $(LOCAL_PATH)/
52 LIBVPX_PATH := $(LOCAL_PATH)/libvpx 52 LIBVPX_PATH := $(LOCAL_PATH)/libvpx
53 ASM_CNV_PATH_LOCAL := $(TARGET_ARCH_ABI)/ads2gas 53 ASM_CNV_PATH_LOCAL := $(TARGET_ARCH_ABI)/ads2gas
54 ASM_CNV_PATH := $(LOCAL_PATH)/$(ASM_CNV_PATH_LOCAL) 54 ASM_CNV_PATH := $(LOCAL_PATH)/$(ASM_CNV_PATH_LOCAL)
55 55
56 # Makefiles created by the libvpx configure process 56 # Makefiles created by the libvpx configure process
57 # This will need to be fixed to handle x86. 57 # This will need to be fixed to handle x86.
58 ifeq ($(TARGET_ARCH_ABI),armeabi-v7a) 58 ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
59 include $(CONFIG_DIR)/libs-armv7-android-gcc.mk 59 include $(CONFIG_DIR)libs-armv7-android-gcc.mk
60 else 60 else
61 include $(CONFIG_DIR)/libs-armv5te-android-gcc.mk 61 include $(CONFIG_DIR)libs-armv5te-android-gcc.mk
62 endif 62 endif
63 63
64 # Rule that is normally in Makefile created by libvpx 64 # Rule that is normally in Makefile created by libvpx
65 # configure. Used to filter out source files based on configuration. 65 # configure. Used to filter out source files based on configuration.
66 enabled=$(filter-out $($(1)-no),$($(1)-yes)) 66 enabled=$(filter-out $($(1)-no),$($(1)-yes))
67 67
68 # Override the relative path that is defined by the libvpx 68 # Override the relative path that is defined by the libvpx
69 # configure process 69 # configure process
70 SRC_PATH_BARE := $(LIBVPX_PATH) 70 SRC_PATH_BARE := $(LIBVPX_PATH)
71 71
(...skipping 27 matching lines...) Expand all
99 -DINLINE_ASM \ 99 -DINLINE_ASM \
100 -S \ 100 -S \
101 101
102 _TEXT = "Compile $$(call get-src-file-text,$(2))" 102 _TEXT = "Compile $$(call get-src-file-text,$(2))"
103 _CC = $$(TARGET_CC) 103 _CC = $$(TARGET_CC)
104 104
105 $$(eval $$(call ev-build-file)) 105 $$(eval $$(call ev-build-file))
106 106
107 $(1) : $$(_OBJ) $(2) 107 $(1) : $$(_OBJ) $(2)
108 @mkdir -p $$(dir $$@) 108 @mkdir -p $$(dir $$@)
109 » @grep $(OFFSET_PATTERN) $$< | tr -d '\#' | $(CONFIG_DIR)/$(ASM_CONVERSIO N) > $$@ 109 » @grep $(OFFSET_PATTERN) $$< | tr -d '\#' | $(CONFIG_DIR)$(ASM_CONVERSION ) > $$@
110 endef 110 endef
111 111
112 # Use ads2gas script to convert from RVCT format to GAS format. This passes 112 # Use ads2gas script to convert from RVCT format to GAS format. This passes
113 # puts the processed file under $(ASM_CNV_PATH). Local clean rule 113 # puts the processed file under $(ASM_CNV_PATH). Local clean rule
114 # to handle removing these 114 # to handle removing these
115 ASM_CNV_OFFSETS_DEPEND = $(ASM_CNV_PATH)/vp8_asm_com_offsets.asm
116 ifeq ($(CONFIG_VP8_DECODER), yes)
117 ASM_CNV_OFFSETS_DEPEND += $(ASM_CNV_PATH)/vp8_asm_dec_offsets.asm
118 endif
119 ifeq ($(CONFIG_VP8_ENCODER), yes) 115 ifeq ($(CONFIG_VP8_ENCODER), yes)
120 ASM_CNV_OFFSETS_DEPEND += $(ASM_CNV_PATH)/vp8_asm_enc_offsets.asm 116 ASM_CNV_OFFSETS_DEPEND += $(ASM_CNV_PATH)/vp8_asm_enc_offsets.asm
121 endif 117 endif
118 ifeq ($(HAVE_NEON), yes)
119 ASM_CNV_OFFSETS_DEPEND += $(ASM_CNV_PATH)/vpx_scale_asm_offsets.asm
120 endif
122 121
123 .PRECIOUS: %.asm.s 122 .PRECIOUS: %.asm.s
124 $(ASM_CNV_PATH)/libvpx/%.asm.s: $(LIBVPX_PATH)/%.asm $(ASM_CNV_OFFSETS_DEPEND) 123 $(ASM_CNV_PATH)/libvpx/%.asm.s: $(LIBVPX_PATH)/%.asm $(ASM_CNV_OFFSETS_DEPEND)
125 @mkdir -p $(dir $@) 124 @mkdir -p $(dir $@)
126 » @$(CONFIG_DIR)/$(ASM_CONVERSION) <$< > $@ 125 » @$(CONFIG_DIR)$(ASM_CONVERSION) <$< > $@
127 126
128 # For building vpx_rtcd.h, which has a rule in libs.mk 127 # For building *_rtcd.h, which have rules in libs.mk
129 TGT_ISA:=$(word 1, $(subst -, ,$(TOOLCHAIN))) 128 TGT_ISA:=$(word 1, $(subst -, ,$(TOOLCHAIN)))
130 target := libs 129 target := libs
131 130
132 LOCAL_SRC_FILES += vpx_config.c 131 LOCAL_SRC_FILES += vpx_config.c
133 132
134 # Remove duplicate entries 133 # Remove duplicate entries
135 CODEC_SRCS_UNIQUE = $(sort $(CODEC_SRCS)) 134 CODEC_SRCS_UNIQUE = $(sort $(CODEC_SRCS))
136 135
137 # Pull out C files. vpx_config.c is in the immediate directory and 136 # Pull out C files. vpx_config.c is in the immediate directory and
138 # so it does not need libvpx/ prefixed like the rest of the source files. 137 # so it does not need libvpx/ prefixed like the rest of the source files.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 -I$(ASM_CNV_PATH) 169 -I$(ASM_CNV_PATH)
171 170
172 LOCAL_MODULE := libvpx 171 LOCAL_MODULE := libvpx
173 172
174 LOCAL_LDLIBS := -llog 173 LOCAL_LDLIBS := -llog
175 174
176 ifeq ($(CONFIG_RUNTIME_CPU_DETECT),yes) 175 ifeq ($(CONFIG_RUNTIME_CPU_DETECT),yes)
177 LOCAL_STATIC_LIBRARIES := cpufeatures 176 LOCAL_STATIC_LIBRARIES := cpufeatures
178 endif 177 endif
179 178
180 $(foreach file, $(LOCAL_SRC_FILES), $(LOCAL_PATH)/$(file)): vpx_rtcd.h 179 # Add a dependency to force generation of the RTCD files.
180 ifeq ($(CONFIG_VP8), yes)
181 $(foreach file, $(LOCAL_SRC_FILES), $(LOCAL_PATH)/$(file)): vp8_rtcd.h
182 endif
183 ifeq ($(CONFIG_VP9), yes)
184 $(foreach file, $(LOCAL_SRC_FILES), $(LOCAL_PATH)/$(file)): vp9_rtcd.h
185 endif
186 $(foreach file, $(LOCAL_SRC_FILES), $(LOCAL_PATH)/$(file)): vpx_scale_rtcd.h
181 187
182 .PHONY: clean 188 .PHONY: clean
183 clean: 189 clean:
184 @echo "Clean: ads2gas files [$(TARGET_ARCH_ABI)]" 190 @echo "Clean: ads2gas files [$(TARGET_ARCH_ABI)]"
185 @$(RM) $(CODEC_SRCS_ASM_ADS2GAS) $(CODEC_SRCS_ASM_NEON_ADS2GAS) 191 @$(RM) $(CODEC_SRCS_ASM_ADS2GAS) $(CODEC_SRCS_ASM_NEON_ADS2GAS)
186 @$(RM) $(patsubst %.asm, %.*, $(ASM_CNV_OFFSETS_DEPEND)) 192 @$(RM) $(patsubst %.asm, %.*, $(ASM_CNV_OFFSETS_DEPEND))
187 @$(RM) -r $(ASM_CNV_PATH) 193 @$(RM) -r $(ASM_CNV_PATH)
188 @$(RM) $(CLEAN-OBJS) 194 @$(RM) $(CLEAN-OBJS)
189 195
190 include $(BUILD_SHARED_LIBRARY) 196 include $(BUILD_SHARED_LIBRARY)
191 197
192 $(eval $(call asm_offsets_template,\ 198 ifeq ($(HAVE_NEON), yes)
193 $(ASM_CNV_PATH)/vp8_asm_com_offsets.asm, \
194 $(LIBVPX_PATH)/vp8/common/vp8_asm_com_offsets.c))
195
196 ifeq ($(CONFIG_VP8_DECODER), yes)
197 $(eval $(call asm_offsets_template,\ 199 $(eval $(call asm_offsets_template,\
198 $(ASM_CNV_PATH)/vp8_asm_dec_offsets.asm, \ 200 $(ASM_CNV_PATH)/vpx_scale_asm_offsets.asm, \
199 $(LIBVPX_PATH)/vp8/decoder/vp8_asm_dec_offsets.c)) 201 $(LIBVPX_PATH)/vpx_scale/vpx_scale_asm_offsets.c))
200 endif 202 endif
201 203
202 ifeq ($(CONFIG_VP8_ENCODER), yes) 204 ifeq ($(CONFIG_VP8_ENCODER), yes)
203 $(eval $(call asm_offsets_template,\ 205 $(eval $(call asm_offsets_template,\
204 $(ASM_CNV_PATH)/vp8_asm_enc_offsets.asm, \ 206 $(ASM_CNV_PATH)/vp8_asm_enc_offsets.asm, \
205 $(LIBVPX_PATH)/vp8/encoder/vp8_asm_enc_offsets.c)) 207 $(LIBVPX_PATH)/vp8/encoder/vp8_asm_enc_offsets.c))
206 endif 208 endif
207 209
208 ifeq ($(CONFIG_RUNTIME_CPU_DETECT),yes) 210 ifeq ($(CONFIG_RUNTIME_CPU_DETECT),yes)
209 $(call import-module,cpufeatures) 211 $(call import-module,cpufeatures)
210 endif 212 endif
OLDNEW
« no previous file with comments | « libvpx_srcs_x86_intrinsics.gypi ('k') | source/libvpx/build/make/configure.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698