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

Side by Side Diff: build/common.gypi

Issue 12463031: Android WebView: don't specify cpu-specific cflags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 # 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 2701 matching lines...) Expand 10 before | Expand all | Expand 10 after
2712 'target_conditions': [ 2712 'target_conditions': [
2713 ['_toolset=="target"', { 2713 ['_toolset=="target"', {
2714 'cflags_cc': [ 2714 'cflags_cc': [
2715 # The codesourcery arm-2009q3 toolchain warns at that the ABI 2715 # The codesourcery arm-2009q3 toolchain warns at that the ABI
2716 # has changed whenever it encounters a varargs function. This 2716 # has changed whenever it encounters a varargs function. This
2717 # silences those warnings, as they are not helpful and 2717 # silences those warnings, as they are not helpful and
2718 # clutter legitimate warnings. 2718 # clutter legitimate warnings.
2719 '-Wno-abi', 2719 '-Wno-abi',
2720 ], 2720 ],
2721 'conditions': [ 2721 'conditions': [
2722 ['arm_thumb==1', { 2722 ['arm_thumb==1 and android_webview_build==0', {
2723 'cflags': [ 2723 'cflags': [
2724 '-mthumb', 2724 '-mthumb',
2725 ] 2725 ]
2726 }], 2726 }],
2727 ['armv7==1', { 2727 ['armv7==1 and android_webview_build==0', {
2728 'cflags': [ 2728 'cflags': [
2729 '-march=armv7-a', 2729 '-march=armv7-a',
2730 '-mtune=cortex-a8', 2730 '-mtune=cortex-a8',
2731 '-mfloat-abi=<(arm_float_abi)', 2731 '-mfloat-abi=<(arm_float_abi)',
2732 ], 2732 ],
2733 'conditions': [ 2733 'conditions': [
2734 ['arm_neon==1', { 2734 ['arm_neon==1', {
2735 'cflags': [ '-mfpu=neon', ], 2735 'cflags': [ '-mfpu=neon', ],
2736 }, { 2736 }, {
2737 'cflags': [ '-mfpu=<(arm_fpu)', ], 2737 'cflags': [ '-mfpu=<(arm_fpu)', ],
(...skipping 18 matching lines...) Expand all
2756 # Android now supports .relro sections properly. 2756 # Android now supports .relro sections properly.
2757 # NOTE: While these flags enable the generation of .relro 2757 # NOTE: While these flags enable the generation of .relro
2758 # sections, the generated libraries can still be loaded on 2758 # sections, the generated libraries can still be loaded on
2759 # older Android platform versions. 2759 # older Android platform versions.
2760 'ldflags': [ 2760 'ldflags': [
2761 '-Wl,-z,relro', 2761 '-Wl,-z,relro',
2762 '-Wl,-z,now', 2762 '-Wl,-z,now',
2763 '-fuse-ld=gold', 2763 '-fuse-ld=gold',
2764 ], 2764 ],
2765 'conditions': [ 2765 'conditions': [
2766 ['arm_thumb==1', { 2766 ['arm_thumb==1 and android_webview_build==0', {
2767 # Android toolchain doesn't support -mimplicit-it=thumb 2767 # Android toolchain doesn't support -mimplicit-it=thumb
2768 'cflags!': [ '-Wa,-mimplicit-it=thumb' ], 2768 'cflags!': [ '-Wa,-mimplicit-it=thumb' ],
benm (inactive) 2013/03/14 11:19:24 do we also want to turn this off for the webview b
Torne 2013/03/14 11:35:15 Hm, not sure. It looks like the only place this ge
2769 'cflags': [ '-mthumb-interwork' ], 2769 'cflags': [ '-mthumb-interwork' ],
2770 }], 2770 }],
2771 ['armv7==0', { 2771 ['armv7==0 and android_webview_build==0', {
2772 # Flags suitable for Android emulator 2772 # Flags suitable for Android emulator
2773 'cflags': [ 2773 'cflags': [
2774 '-march=armv5te', 2774 '-march=armv5te',
2775 '-mtune=xscale', 2775 '-mtune=xscale',
2776 '-msoft-float', 2776 '-msoft-float',
2777 ], 2777 ],
2778 'defines': [ 2778 'defines': [
2779 '__ARM_ARCH_5__', 2779 '__ARM_ARCH_5__',
2780 '__ARM_ARCH_5T__', 2780 '__ARM_ARCH_5T__',
2781 '__ARM_ARCH_5E__', 2781 '__ARM_ARCH_5E__',
(...skipping 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after
4150 # settings in target dicts. SYMROOT is a special case, because many other 4150 # settings in target dicts. SYMROOT is a special case, because many other
4151 # Xcode variables depend on it, including variables such as 4151 # Xcode variables depend on it, including variables such as
4152 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4152 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4153 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4153 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4154 # files to appear (when present) in the UI as actual files and not red 4154 # files to appear (when present) in the UI as actual files and not red
4155 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4155 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4156 # and therefore SYMROOT, needs to be set at the project level. 4156 # and therefore SYMROOT, needs to be set at the project level.
4157 'SYMROOT': '<(DEPTH)/xcodebuild', 4157 'SYMROOT': '<(DEPTH)/xcodebuild',
4158 }, 4158 },
4159 } 4159 }
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