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 |
11 # | 11 # |
12 # This file is to be used for compiling libvpx for Android using the NDK. | 12 # This file is to be used for compiling libvpx for Android using the NDK. |
13 # In an Android project place a libvpx checkout in the jni directory. | 13 # In an Android project place a libvpx checkout in the jni directory. |
14 # Run the configure script from the jni directory. Base libvpx | 14 # Run the configure script from the jni directory. Base libvpx |
15 # encoder/decoder configuration will look similar to: | 15 # encoder/decoder configuration will look similar to: |
16 # ./libvpx/configure --target=armv7-android-gcc --disable-examples \ | 16 # ./libvpx/configure --target=armv7-android-gcc --disable-examples \ |
17 # --sdk-path=/opt/android-ndk-r6b/ | 17 # --sdk-path=/opt/android-ndk-r6b/ |
18 # | 18 # |
19 # When targeting Android, realtime-only is enabled by default. This can | 19 # When targeting Android, realtime-only is enabled by default. This can |
20 # be overridden by adding the command line flag: | 20 # be overridden by adding the command line flag: |
21 # --disable-realtime-only | 21 # --disable-realtime-only |
22 # | 22 # |
23 # This will create .mk files that contain variables that contain the | 23 # This will create .mk files that contain variables that contain the |
24 # source files to compile. | 24 # source files to compile. |
25 # | 25 # |
26 # Place an Android.mk file in the jni directory that references the | 26 # Place an Android.mk file in the jni directory that references the |
27 # Android.mk file in the libvpx directory: | 27 # Android.mk file in the libvpx directory: |
28 # LOCAL_PATH := $(call my-dir) | 28 # LOCAL_PATH := $(call my-dir) |
29 # include $(CLEAR_VARS) | 29 # include $(CLEAR_VARS) |
30 # include libvpx/build/make/Android.mk | 30 # include jni/libvpx/build/make/Android.mk |
31 # | 31 # |
32 # There are currently two TARGET_ARCH_ABI targets for ARM. | 32 # There are currently two TARGET_ARCH_ABI targets for ARM. |
33 # armeabi and armeabi-v7a. armeabi-v7a is selected by creating an | 33 # armeabi and armeabi-v7a. armeabi-v7a is selected by creating an |
34 # Application.mk in the jni directory that contains: | 34 # Application.mk in the jni directory that contains: |
35 # APP_ABI := armeabi-v7a | 35 # APP_ABI := armeabi-v7a |
36 # | 36 # |
37 # By default libvpx will detect at runtime the existance of NEON extension. | 37 # By default libvpx will detect at runtime the existance of NEON extension. |
38 # For this we import the 'cpufeatures' module from the NDK sources. | 38 # For this we import the 'cpufeatures' module from the NDK sources. |
39 # libvpx can also be configured without this runtime detection method. | 39 # libvpx can also be configured without this runtime detection method. |
40 # Configuring with --disable-runtime-cpu-detect will assume presence of NEON. | 40 # Configuring with --disable-runtime-cpu-detect will assume presence of NEON. |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 | 201 |
202 ifeq ($(CONFIG_VP8_ENCODER), yes) | 202 ifeq ($(CONFIG_VP8_ENCODER), yes) |
203 $(eval $(call asm_offsets_template,\ | 203 $(eval $(call asm_offsets_template,\ |
204 $(ASM_CNV_PATH)/asm_enc_offsets.asm, \ | 204 $(ASM_CNV_PATH)/asm_enc_offsets.asm, \ |
205 $(LIBVPX_PATH)/vp8/encoder/asm_enc_offsets.c)) | 205 $(LIBVPX_PATH)/vp8/encoder/asm_enc_offsets.c)) |
206 endif | 206 endif |
207 | 207 |
208 ifeq ($(CONFIG_RUNTIME_CPU_DETECT),yes) | 208 ifeq ($(CONFIG_RUNTIME_CPU_DETECT),yes) |
209 $(call import-module,cpufeatures) | 209 $(call import-module,cpufeatures) |
210 endif | 210 endif |
OLD | NEW |