| OLD | NEW |
| 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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': { | 9 'variables': { |
| 10 # .gyp files should set chromium_code to 1 if they build Chromium-specific | 10 # .gyp files should set chromium_code to 1 if they build Chromium-specific |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 # Set to select the Title Case versions of strings in GRD files. | 193 # Set to select the Title Case versions of strings in GRD files. |
| 194 'use_titlecase_in_grd_files%': 0, | 194 'use_titlecase_in_grd_files%': 0, |
| 195 | 195 |
| 196 # Used to disable Native Client at compile time, for platforms where it | 196 # Used to disable Native Client at compile time, for platforms where it |
| 197 # isn't supported | 197 # isn't supported |
| 198 'disable_nacl%': 0, | 198 'disable_nacl%': 0, |
| 199 | 199 |
| 200 # Set ARM-v7 compilation flags | 200 # Set ARM-v7 compilation flags |
| 201 'armv7%': 0, | 201 'armv7%': 0, |
| 202 | 202 |
| 203 # Set Thumb compilation flags. |
| 204 'arm_thumb%': 0, |
| 205 |
| 203 'conditions': [ | 206 'conditions': [ |
| 204 ['OS=="linux"', { | 207 ['OS=="linux"', { |
| 205 # This will set gcc_version to XY if you are running gcc X.Y.*. | 208 # This will set gcc_version to XY if you are running gcc X.Y.*. |
| 206 # This is used to tweak build flags for gcc 4.4. | 209 # This is used to tweak build flags for gcc 4.4. |
| 207 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', | 210 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', |
| 208 'conditions': [ | 211 'conditions': [ |
| 209 ['branding=="Chrome" or linux_chromium_breakpad==1', { | 212 ['branding=="Chrome" or linux_chromium_breakpad==1', { |
| 210 'linux_breakpad%': 1, | 213 'linux_breakpad%': 1, |
| 211 }, { | 214 }, { |
| 212 'linux_breakpad%': 0, | 215 'linux_breakpad%': 0, |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 }], | 706 }], |
| 704 ], | 707 ], |
| 705 'cflags': [ | 708 'cflags': [ |
| 706 '-m32', | 709 '-m32', |
| 707 ], | 710 ], |
| 708 'ldflags': [ | 711 'ldflags': [ |
| 709 '-m32', | 712 '-m32', |
| 710 ], | 713 ], |
| 711 }], | 714 }], |
| 712 ['target_arch=="arm"', { | 715 ['target_arch=="arm"', { |
| 713 'conditions': [ | 716 'target_conditions': [ |
| 714 ['armv7==1', { | 717 ['_toolset=="target"', { |
| 715 'target_conditions': [ | 718 'cflags_cc': [ |
| 716 ['_toolset=="target"', { | 719 # The codesourcery arm-2009q3 toolchain warns at that the ABI |
| 720 # has changed whenever it encounters a varargs function. This |
| 721 # silences those warnings, as they are not helpful and |
| 722 # clutter legitimate warnings. |
| 723 '-Wno-abi', |
| 724 ], |
| 725 'conditions': [ |
| 726 ['arm_thumb == 1', { |
| 727 'cflags': [ |
| 728 '-mthumb', |
| 729 # TODO(piman): -Wa,-mimplicit-it=thumb is needed for |
| 730 # inline assembly that uses condition codes but it's |
| 731 # suboptimal. Better would be to #ifdef __thumb__ at the |
| 732 # right place and have a separate thumb path. |
| 733 '-Wa,-mimplicit-it=thumb', |
| 734 ] |
| 735 }], |
| 736 ['armv7==1', { |
| 717 'cflags': [ | 737 'cflags': [ |
| 718 '-march=armv7-a', | 738 '-march=armv7-a', |
| 719 '-mtune=cortex-a8', | 739 '-mtune=cortex-a8', |
| 720 '-mfpu=neon', | 740 '-mfpu=neon', |
| 721 '-mfloat-abi=softfp', | 741 '-mfloat-abi=softfp', |
| 722 ], | 742 ], |
| 723 }], | 743 }], |
| 724 ], | 744 ], |
| 725 }], | 745 }], |
| 726 ], | 746 ], |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1037 # and therefore SYMROOT, needs to be set at the project level. | 1057 # and therefore SYMROOT, needs to be set at the project level. |
| 1038 'SYMROOT': '<(DEPTH)/xcodebuild', | 1058 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 1039 }, | 1059 }, |
| 1040 } | 1060 } |
| 1041 | 1061 |
| 1042 # Local Variables: | 1062 # Local Variables: |
| 1043 # tab-width:2 | 1063 # tab-width:2 |
| 1044 # indent-tabs-mode:nil | 1064 # indent-tabs-mode:nil |
| 1045 # End: | 1065 # End: |
| 1046 # vim: set expandtab tabstop=2 shiftwidth=2: | 1066 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |