OLD | NEW |
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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 $(CODEC_SRCS_ASM_NEON_ADS2GAS)) | 151 $(CODEC_SRCS_ASM_NEON_ADS2GAS)) |
152 endif | 152 endif |
153 | 153 |
154 LOCAL_CFLAGS += \ | 154 LOCAL_CFLAGS += \ |
155 -DHAVE_CONFIG_H=vpx_config.h \ | 155 -DHAVE_CONFIG_H=vpx_config.h \ |
156 -I$(LIBVPX_PATH) \ | 156 -I$(LIBVPX_PATH) \ |
157 -I$(ASM_CNV_PATH) | 157 -I$(ASM_CNV_PATH) |
158 | 158 |
159 LOCAL_MODULE := libvpx | 159 LOCAL_MODULE := libvpx |
160 | 160 |
161 LOCAL_LDLIBS := -llog | |
162 | |
163 ifeq ($(CONFIG_RUNTIME_CPU_DETECT),yes) | 161 ifeq ($(CONFIG_RUNTIME_CPU_DETECT),yes) |
164 LOCAL_STATIC_LIBRARIES := cpufeatures | 162 LOCAL_STATIC_LIBRARIES := cpufeatures |
165 endif | 163 endif |
166 | 164 |
167 # Add a dependency to force generation of the RTCD files. | 165 # Add a dependency to force generation of the RTCD files. |
168 ifeq ($(CONFIG_VP8), yes) | 166 ifeq ($(CONFIG_VP8), yes) |
169 $(foreach file, $(LOCAL_SRC_FILES), $(LOCAL_PATH)/$(file)): vp8_rtcd.h | 167 $(foreach file, $(LOCAL_SRC_FILES), $(LOCAL_PATH)/$(file)): vp8_rtcd.h |
170 endif | 168 endif |
171 ifeq ($(CONFIG_VP9), yes) | 169 ifeq ($(CONFIG_VP9), yes) |
172 $(foreach file, $(LOCAL_SRC_FILES), $(LOCAL_PATH)/$(file)): vp9_rtcd.h | 170 $(foreach file, $(LOCAL_SRC_FILES), $(LOCAL_PATH)/$(file)): vp9_rtcd.h |
173 endif | 171 endif |
174 $(foreach file, $(LOCAL_SRC_FILES), $(LOCAL_PATH)/$(file)): vpx_scale_rtcd.h | 172 $(foreach file, $(LOCAL_SRC_FILES), $(LOCAL_PATH)/$(file)): vpx_scale_rtcd.h |
| 173 $(foreach file, $(LOCAL_SRC_FILES), $(LOCAL_PATH)/$(file)): vpx_dsp_rtcd.h |
175 | 174 |
176 ifeq ($(TARGET_ARCH_ABI),x86) | 175 ifeq ($(TARGET_ARCH_ABI),x86) |
177 $(foreach file, $(LOCAL_SRC_FILES), $(LOCAL_PATH)/$(file)): vpx_config.asm | 176 $(foreach file, $(LOCAL_SRC_FILES), $(LOCAL_PATH)/$(file)): vpx_config.asm |
178 endif | 177 endif |
179 | 178 |
180 .PHONY: clean | 179 .PHONY: clean |
181 clean: | 180 clean: |
182 @echo "Clean: ads2gas files [$(TARGET_ARCH_ABI)]" | 181 @echo "Clean: ads2gas files [$(TARGET_ARCH_ABI)]" |
183 @$(RM) $(CODEC_SRCS_ASM_ADS2GAS) $(CODEC_SRCS_ASM_NEON_ADS2GAS) | 182 @$(RM) $(CODEC_SRCS_ASM_ADS2GAS) $(CODEC_SRCS_ASM_NEON_ADS2GAS) |
184 @$(RM) -r $(ASM_CNV_PATH) | 183 @$(RM) -r $(ASM_CNV_PATH) |
185 @$(RM) $(CLEAN-OBJS) | 184 @$(RM) $(CLEAN-OBJS) |
186 | 185 |
187 include $(BUILD_SHARED_LIBRARY) | 186 ifeq ($(ENABLE_SHARED),1) |
| 187 include $(BUILD_SHARED_LIBRARY) |
| 188 else |
| 189 include $(BUILD_STATIC_LIBRARY) |
| 190 endif |
188 | 191 |
189 ifeq ($(CONFIG_RUNTIME_CPU_DETECT),yes) | 192 ifeq ($(CONFIG_RUNTIME_CPU_DETECT),yes) |
190 $(call import-module,cpufeatures) | 193 $(call import-module,cpufeatures) |
191 endif | 194 endif |
OLD | NEW |