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

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

Issue 142023006: android envsetup: Stop explicitly setting host_arch when target_arch=x86. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | « no previous file | no next file » | 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 # Defines functions for envsetup.sh which sets up environment for building 7 # Defines functions for envsetup.sh which sets up environment for building
8 # Chromium on Android. The build can be either use the Android NDK/SDK or 8 # Chromium on Android. The build can be either use the Android NDK/SDK or
9 # android source tree. Each has a unique init function which calls functions 9 # android source tree. Each has a unique init function which calls functions
10 # prefixed with "common_" that is common for both environment setups. 10 # prefixed with "common_" that is common for both environment setups.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 DEFINES+=" use_goma=1 gomadir=$GOMA_DIR" 92 DEFINES+=" use_goma=1 gomadir=$GOMA_DIR"
93 fi 93 fi
94 94
95 # The following defines will affect ARM code generation of both C/C++ compiler 95 # The following defines will affect ARM code generation of both C/C++ compiler
96 # and V8 mksnapshot. 96 # and V8 mksnapshot.
97 case "${TARGET_ARCH}" in 97 case "${TARGET_ARCH}" in
98 "arm") 98 "arm")
99 DEFINES+=" target_arch=arm" 99 DEFINES+=" target_arch=arm"
100 ;; 100 ;;
101 "x86") 101 "x86")
102 host_arch=$(uname -m | sed -e \
103 's/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/arm.*/arm/;s/i86pc/ia32/')
104 DEFINES+=" host_arch=${host_arch}"
105 DEFINES+=" target_arch=ia32" 102 DEFINES+=" target_arch=ia32"
106 ;; 103 ;;
107 "mips") 104 "mips")
108 DEFINES+=" target_arch=mipsel" 105 DEFINES+=" target_arch=mipsel"
109 DEFINES+=" mips_arch_variant=mips32r1" 106 DEFINES+=" mips_arch_variant=mips32r1"
110 ;; 107 ;;
111 *) 108 *)
112 echo "TARGET_ARCH: ${TARGET_ARCH} is not supported." >& 2 109 echo "TARGET_ARCH: ${TARGET_ARCH} is not supported." >& 2
113 print_usage 110 print_usage
114 return 1 111 return 1
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 fi 276 fi
280 export GYP_DEFINES="${DEFINES}" 277 export GYP_DEFINES="${DEFINES}"
281 278
282 export GYP_GENERATORS="android" 279 export GYP_GENERATORS="android"
283 280
284 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" 281 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All"
285 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" 282 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1"
286 283
287 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp" 284 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp"
288 } 285 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698