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 1930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1941 ], | 1941 ], |
1942 'conditions': [ | 1942 'conditions': [ |
1943 ['arm_neon==1', { | 1943 ['arm_neon==1', { |
1944 'cflags': [ '-mfpu=neon', ], | 1944 'cflags': [ '-mfpu=neon', ], |
1945 }, { | 1945 }, { |
1946 'cflags': [ '-mfpu=<(arm_fpu)', ], | 1946 'cflags': [ '-mfpu=<(arm_fpu)', ], |
1947 }] | 1947 }] |
1948 ], | 1948 ], |
1949 }], | 1949 }], |
1950 ['OS=="android"', { | 1950 ['OS=="android"', { |
1951 # The following flags are derived from what Android uses | 1951 # Most of the following flags are derived from what Android |
1952 # by default when building for arm. | 1952 # uses by default when building for arm, reference for which |
1953 'cflags': [ '-Wno-psabi', ], | 1953 # can be found in the following file in the Android NDK: |
| 1954 # toolchains/arm-linux-androideabi-4.4.3/setup.mk |
| 1955 'cflags': [ |
| 1956 # The tree-sra optimization (scalar replacement for |
| 1957 # aggregates enabling subsequent optimizations) leads to |
| 1958 # invalid code generation when using the Android NDK's |
| 1959 # compiler (r5-r7). This can be verified using |
| 1960 # TestWebKitAPI's WTF.Checked_int8_t test. |
| 1961 '-fno-tree-sra', |
| 1962 '-Wno-psabi', |
| 1963 ], |
1954 'conditions': [ | 1964 'conditions': [ |
1955 ['arm_thumb == 1', { | 1965 ['arm_thumb == 1', { |
1956 # Android toolchain doesn't support -mimplicit-it=thumb | 1966 # Android toolchain doesn't support -mimplicit-it=thumb |
1957 'cflags!': [ '-Wa,-mimplicit-it=thumb', ], | 1967 'cflags!': [ '-Wa,-mimplicit-it=thumb', ], |
1958 'cflags': [ '-mthumb-interwork', ], | 1968 'cflags': [ '-mthumb-interwork', ], |
1959 }], | 1969 }], |
1960 ['armv7==0', { | 1970 ['armv7==0', { |
1961 # Flags suitable for Android emulator | 1971 # Flags suitable for Android emulator |
1962 'cflags': [ | 1972 'cflags': [ |
1963 '-march=armv5te', | 1973 '-march=armv5te', |
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2894 # settings in target dicts. SYMROOT is a special case, because many other | 2904 # settings in target dicts. SYMROOT is a special case, because many other |
2895 # Xcode variables depend on it, including variables such as | 2905 # Xcode variables depend on it, including variables such as |
2896 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 2906 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
2897 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 2907 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
2898 # files to appear (when present) in the UI as actual files and not red | 2908 # files to appear (when present) in the UI as actual files and not red |
2899 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 2909 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
2900 # and therefore SYMROOT, needs to be set at the project level. | 2910 # and therefore SYMROOT, needs to be set at the project level. |
2901 'SYMROOT': '<(DEPTH)/xcodebuild', | 2911 'SYMROOT': '<(DEPTH)/xcodebuild', |
2902 }, | 2912 }, |
2903 } | 2913 } |
OLD | NEW |