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

Side by Side Diff: build/common.gypi

Issue 171903002: android envsetup: Stop honoring --target-arch parameter. (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
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 'use_ozone%': '<(use_ozone)', 124 'use_ozone%': '<(use_ozone)',
125 'embedded%': '<(embedded)', 125 'embedded%': '<(embedded)',
126 'use_openssl%': '<(use_openssl)', 126 'use_openssl%': '<(use_openssl)',
127 'use_system_fontconfig%': '<(use_system_fontconfig)', 127 'use_system_fontconfig%': '<(use_system_fontconfig)',
128 'enable_viewport%': '<(enable_viewport)', 128 'enable_viewport%': '<(enable_viewport)',
129 'enable_hidpi%': '<(enable_hidpi)', 129 'enable_hidpi%': '<(enable_hidpi)',
130 'buildtype%': '<(buildtype)', 130 'buildtype%': '<(buildtype)',
131 'branding%': '<(branding)', 131 'branding%': '<(branding)',
132 'host_arch%': '<(host_arch)', 132 'host_arch%': '<(host_arch)',
133 133
134 # Default architecture we're building for is the architecture we're
135 # building on, and possibly sub-architecture (for iOS builds).
136 'target_arch%': '<(host_arch)',
137 'target_subarch%': '', 134 'target_subarch%': '',
138 135
139 # This is set when building the Android WebView inside the Android 136 # This is set when building the Android WebView inside the Android
140 # build system, using the 'android' gyp backend. The WebView code is 137 # build system, using the 'android' gyp backend. The WebView code is
141 # still built when this is unset, but builds using the normal chromium 138 # still built when this is unset, but builds using the normal chromium
142 # build system. 139 # build system.
143 'android_webview_build%': 0, 140 'android_webview_build%': 0,
144 141
145 # Set ARM architecture version. 142 # Set ARM architecture version.
146 'arm_version%': 7, 143 'arm_version%': 7,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 # "arm64" and "both" (meaning a fat binary). 214 # "arm64" and "both" (meaning a fat binary).
218 # 215 #
219 # TODO(sdefresne): change the default from "arm32" to "both" for 216 # TODO(sdefresne): change the default from "arm32" to "both" for
220 # "target_subarch" once http://crbug.com/339477 is fixed. 217 # "target_subarch" once http://crbug.com/339477 is fixed.
221 # 218 #
222 # TODO(sdefresne): set the "target_arch" to "arm" once compilation 219 # TODO(sdefresne): set the "target_arch" to "arm" once compilation
223 # of skia has been fixed for simulator. http://crbug.com/342377 220 # of skia has been fixed for simulator. http://crbug.com/342377
224 ['OS=="ios"', { 221 ['OS=="ios"', {
225 'target_subarch%': 'arm32', 222 'target_subarch%': 'arm32',
226 }], 223 }],
224 ['OS=="android"', {
225 'target_arch%': 'arm',
226 }, {
227 # Default architecture we're building for is the architecture we're
228 # building on, and possibly sub-architecture (for iOS builds).
229 'target_arch%': '<(host_arch)',
230 }],
227 ], 231 ],
228 }, 232 },
229 233
230 # Copy conditionally-set variables out one scope. 234 # Copy conditionally-set variables out one scope.
231 'chromeos%': '<(chromeos)', 235 'chromeos%': '<(chromeos)',
232 'host_arch%': '<(host_arch)', 236 'host_arch%': '<(host_arch)',
233 'target_arch%': '<(target_arch)', 237 'target_arch%': '<(target_arch)',
234 'target_subarch%': '<(target_subarch)', 238 'target_subarch%': '<(target_subarch)',
235 'toolkit_views%': '<(toolkit_views)', 239 'toolkit_views%': '<(toolkit_views)',
236 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', 240 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)',
(...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after
1377 'ios_breakpad%': 1, 1381 'ios_breakpad%': 1,
1378 }, { # else: branding!="Chrome" or buildtype!="Official" 1382 }, { # else: branding!="Chrome" or buildtype!="Official"
1379 'ios_breakpad%': 0, 1383 'ios_breakpad%': 0,
1380 }], 1384 }],
1381 ], 1385 ],
1382 }], # OS=="ios" 1386 }], # OS=="ios"
1383 ['OS=="android"', { 1387 ['OS=="android"', {
1384 # Location of Android NDK. 1388 # Location of Android NDK.
1385 'variables': { 1389 'variables': {
1386 'variables': { 1390 'variables': {
1387 # Unfortuantely we have to use absolute paths to the SDK/NDK beause 1391 # Unfortunately we have to use absolute paths to the SDK/NDK because
1388 # they're passed to ant which uses a different relative path from 1392 # they're passed to ant which uses a different relative path from
1389 # gyp. 1393 # gyp.
1390 'android_ndk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android _tools/ndk/', 1394 'android_ndk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_ tools/ndk/',
1391 'android_sdk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android _tools/sdk/', 1395 'android_sdk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_ tools/sdk/',
1392 'android_host_arch%': '<!(uname -m)', 1396 'android_host_arch%': '<!(uname -m)',
1393 # Android API-level of the SDK used for compilation. 1397 # Android API-level of the SDK used for compilation.
1394 'android_sdk_version%': '19', 1398 'android_sdk_version%': '19',
1395 'android_sdk_build_tools_version%': '19.0.0', 1399 'android_sdk_build_tools_version%': '19.0.0',
1396 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')", 1400 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')",
1397 }, 1401 },
1398 # Copy conditionally-set variables out one scope. 1402 # Copy conditionally-set variables out one scope.
1399 'android_ndk_root%': '<(android_ndk_root)', 1403 'android_ndk_root%': '<(android_ndk_root)',
1400 'android_sdk_root%': '<(android_sdk_root)', 1404 'android_sdk_root%': '<(android_sdk_root)',
1401 'android_sdk_version%': '<(android_sdk_version)', 1405 'android_sdk_version%': '<(android_sdk_version)',
1402 'android_stlport_root': '<(android_ndk_root)/sources/cxx-stl/stlport', 1406 'android_stlport_root': '<(android_ndk_root)/sources/cxx-stl/stlport',
1403 'host_os%': '<(host_os)', 1407 'host_os%': '<(host_os)',
1404 1408
1405 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_v ersion)', 1409 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_v ersion)',
1406 # Android SDK build tools (e.g. dx, aapt, aidl) 1410 # Android SDK build tools (e.g. dx, aapt, aidl)
(...skipping 3588 matching lines...) Expand 10 before | Expand all | Expand 10 after
4995 # settings in target dicts. SYMROOT is a special case, because many other 4999 # settings in target dicts. SYMROOT is a special case, because many other
4996 # Xcode variables depend on it, including variables such as 5000 # Xcode variables depend on it, including variables such as
4997 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5001 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4998 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5002 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4999 # files to appear (when present) in the UI as actual files and not red 5003 # files to appear (when present) in the UI as actual files and not red
5000 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5004 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5001 # and therefore SYMROOT, needs to be set at the project level. 5005 # and therefore SYMROOT, needs to be set at the project level.
5002 'SYMROOT': '<(DEPTH)/xcodebuild', 5006 'SYMROOT': '<(DEPTH)/xcodebuild',
5003 }, 5007 },
5004 } 5008 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698