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

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

Issue 14065005: Introduce arm_version to allow building for armv5, v6 or v7. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review issues 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 | « no previous file | build/common.gypi » ('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 # 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 # shared library, libchromeview.so. The file is an order list of section 99 # shared library, libchromeview.so. The file is an order list of section
100 # names and the library is linked with option 100 # names and the library is linked with option
101 # --section-ordering-file=<orderfile>. The order file is updated by profiling 101 # --section-ordering-file=<orderfile>. The order file is updated by profiling
102 # startup after compiling with the order_profiling=1 GYP_DEFINES flag. 102 # startup after compiling with the order_profiling=1 GYP_DEFINES flag.
103 ORDER_DEFINES="order_text_section=${CHROME_SRC}/orderfiles/orderfile.out" 103 ORDER_DEFINES="order_text_section=${CHROME_SRC}/orderfiles/orderfile.out"
104 104
105 # The following defines will affect ARM code generation of both C/C++ compiler 105 # The following defines will affect ARM code generation of both C/C++ compiler
106 # and V8 mksnapshot. 106 # and V8 mksnapshot.
107 case "${TARGET_ARCH}" in 107 case "${TARGET_ARCH}" in
108 "arm") 108 "arm")
109 DEFINES+=" arm_neon=0 armv7=1 arm_thumb=1 arm_fpu=vfpv3-d16"
110 DEFINES+=" arm_neon_optional=1" # Enable dynamic NEON support. 109 DEFINES+=" arm_neon_optional=1" # Enable dynamic NEON support.
Yaron 2013/04/12 16:35:33 One more to go.. can you push this one into gyp to
Fredrik Öhrn 2013/04/12 17:05:25 Of course, I'll do it first thing Monday.
111 DEFINES+=" ${ORDER_DEFINES}" 110 DEFINES+=" ${ORDER_DEFINES}"
112 DEFINES+=" target_arch=arm" 111 DEFINES+=" target_arch=arm"
113 ;; 112 ;;
114 "x86") 113 "x86")
115 # TODO(tedbo): The ia32 build fails on ffmpeg, so we disable it here. 114 # TODO(tedbo): The ia32 build fails on ffmpeg, so we disable it here.
116 DEFINES+=" use_libffmpeg=0" 115 DEFINES+=" use_libffmpeg=0"
117 116
118 host_arch=$(uname -m | sed -e \ 117 host_arch=$(uname -m | sed -e \
119 's/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/arm.*/arm/;s/i86pc/ia32/') 118 's/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/arm.*/arm/;s/i86pc/ia32/')
120 DEFINES+=" host_arch=${host_arch}" 119 DEFINES+=" host_arch=${host_arch}"
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 export GYP_DEFINES="${DEFINES}" 295 export GYP_DEFINES="${DEFINES}"
297 296
298 export GYP_GENERATORS="android" 297 export GYP_GENERATORS="android"
299 298
300 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" 299 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All"
301 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" 300 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1"
302 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0" 301 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0"
303 302
304 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp" 303 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp"
305 } 304 }
OLDNEW
« no previous file with comments | « no previous file | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698