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

Side by Side Diff: build/android/envsetup.sh

Issue 10377059: Android content shell bringup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix deps so builds on clean machine Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « build/android/adb_install_content_shell ('k') | build/android/gdb_content_shell » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Sets up environment for building Chromium on Android. Only Android NDK, 7 # Sets up environment for building Chromium on Android. Only Android NDK,
8 # Revision 6b on Linux or Mac is offically supported. 8 # Revision 6b on Linux or Mac is offically supported.
9 # 9 #
10 # To run this script, the system environment ANDROID_NDK_ROOT must be set 10 # To run this script, the system environment ANDROID_NDK_ROOT must be set
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 ;; 55 ;;
56 *x86*) 56 *x86*)
57 DEFINES=" target_arch=ia32 use_libffmpeg=0" 57 DEFINES=" target_arch=ia32 use_libffmpeg=0"
58 toolchain_arch="x86-4.4.3" 58 toolchain_arch="x86-4.4.3"
59 ;; 59 ;;
60 *) 60 *)
61 echo "TARGET_PRODUCT: ${TARGET_PRODUCT} is not supported." >& 2 61 echo "TARGET_PRODUCT: ${TARGET_PRODUCT} is not supported." >& 2
62 return 1 62 return 1
63 esac 63 esac
64 64
65 # If we are building NDK/SDK, and in the upstream (open source) tree,
66 # define a special variable for bringup purposes.
67 case "${ANDROID_BUILD_TOP-undefined}" in
68 "undefined")
69 DEFINES+=" android_upstream_bringup=1"
70 ;;
71 esac
72
65 toolchain_path="${ANDROID_NDK_ROOT}/toolchains/${toolchain_arch}/prebuilt/" 73 toolchain_path="${ANDROID_NDK_ROOT}/toolchains/${toolchain_arch}/prebuilt/"
66 export ANDROID_TOOLCHAIN="${toolchain_path}/${toolchain_dir}/bin/" 74 export ANDROID_TOOLCHAIN="${toolchain_path}/${toolchain_dir}/bin/"
67 75
68 export ANDROID_SDK_VERSION="15" 76 export ANDROID_SDK_VERSION="15"
69 77
70 # Needed by android antfiles when creating apks. 78 # Needed by android antfiles when creating apks.
71 export ANDROID_SDK_HOME=${ANDROID_SDK_ROOT} 79 export ANDROID_SDK_HOME=${ANDROID_SDK_ROOT}
72 80
73 # Add Android SDK/NDK tools to system path. 81 # Add Android SDK/NDK tools to system path.
74 export PATH=$PATH:${ANDROID_NDK_ROOT} 82 export PATH=$PATH:${ANDROID_NDK_ROOT}
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 export GYP_DEFINES="${DEFINES}" 142 export GYP_DEFINES="${DEFINES}"
135 143
136 # Use the "android" flavor of the Makefile generator for both Linux and OS X. 144 # Use the "android" flavor of the Makefile generator for both Linux and OS X.
137 export GYP_GENERATORS="make-android" 145 export GYP_GENERATORS="make-android"
138 146
139 # Use our All target as the default 147 # Use our All target as the default
140 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" 148 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All"
141 149
142 # We want to use our version of "all" targets. 150 # We want to use our version of "all" targets.
143 export CHROMIUM_GYP_FILE="${CHROME_SRC}/build/all_android.gyp" 151 export CHROMIUM_GYP_FILE="${CHROME_SRC}/build/all_android.gyp"
OLDNEW
« no previous file with comments | « build/android/adb_install_content_shell ('k') | build/android/gdb_content_shell » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698