OLD | NEW |
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 Loading... |
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 Loading... |
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 'cflags': [ '-mthumb-interwork' ], | 2767 'cflags': [ '-mthumb-interwork' ], |
2768 }], | 2768 }], |
2769 ['armv7==0', { | 2769 ['armv7==0 and android_webview_build==0', { |
2770 # Flags suitable for Android emulator | 2770 # Flags suitable for Android emulator |
2771 'cflags': [ | 2771 'cflags': [ |
2772 '-march=armv5te', | 2772 '-march=armv5te', |
2773 '-mtune=xscale', | 2773 '-mtune=xscale', |
2774 '-msoft-float', | 2774 '-msoft-float', |
2775 ], | 2775 ], |
2776 'defines': [ | 2776 'defines': [ |
2777 '__ARM_ARCH_5__', | 2777 '__ARM_ARCH_5__', |
2778 '__ARM_ARCH_5T__', | 2778 '__ARM_ARCH_5T__', |
2779 '__ARM_ARCH_5E__', | 2779 '__ARM_ARCH_5E__', |
(...skipping 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4155 # settings in target dicts. SYMROOT is a special case, because many other | 4155 # settings in target dicts. SYMROOT is a special case, because many other |
4156 # Xcode variables depend on it, including variables such as | 4156 # Xcode variables depend on it, including variables such as |
4157 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4157 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4158 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4158 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4159 # files to appear (when present) in the UI as actual files and not red | 4159 # files to appear (when present) in the UI as actual files and not red |
4160 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4160 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4161 # and therefore SYMROOT, needs to be set at the project level. | 4161 # and therefore SYMROOT, needs to be set at the project level. |
4162 'SYMROOT': '<(DEPTH)/xcodebuild', | 4162 'SYMROOT': '<(DEPTH)/xcodebuild', |
4163 }, | 4163 }, |
4164 } | 4164 } |
OLD | NEW |