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 3035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3046 'include_dirs': [ | 3046 'include_dirs': [ |
3047 # OpenAL headers from the Android tree. | 3047 # OpenAL headers from the Android tree. |
3048 '<(android_src)/frameworks/wilhelm/include', | 3048 '<(android_src)/frameworks/wilhelm/include', |
3049 ], | 3049 ], |
3050 'cflags': [ | 3050 'cflags': [ |
3051 # Android predefines this as 1; undefine it here so Chromium | 3051 # Android predefines this as 1; undefine it here so Chromium |
3052 # can redefine it later to be 2 for chromium code and unset | 3052 # can redefine it later to be 2 for chromium code and unset |
3053 # for third party code. This works because cflags are added | 3053 # for third party code. This works because cflags are added |
3054 # before defines. | 3054 # before defines. |
3055 '-U_FORTIFY_SOURCE', | 3055 '-U_FORTIFY_SOURCE', |
3056 # Chromium builds its own (non-third-party) code with | 3056 # Disable any additional warnings enabled by the Android build
system but which |
3057 # -Werror to make all warnings into errors. However, Android | 3057 # chromium does not build cleanly with (when treating warning
as errors). |
3058 # enables warnings that Chromium doesn't, so some of these | |
3059 # extra warnings trip and break things. | |
3060 # For now, we leave these warnings enabled but prevent them | |
3061 # from being treated as errors. | |
3062 # | |
3063 # Things that are part of -Wextra: | 3058 # Things that are part of -Wextra: |
3064 '-Wno-error=extra', # Enabled by -Wextra, but no specific flag | 3059 '-Wno-extra', # Enabled by -Wextra, but no specific flag |
3065 '-Wno-error=ignored-qualifiers', | 3060 '-Wno-ignored-qualifiers', |
3066 '-Wno-error=type-limits', | 3061 '-Wno-type-limits', |
3067 # Other things unrelated to -Wextra: | 3062 # Other things unrelated to -Wextra: |
3068 '-Wno-error=non-virtual-dtor', | 3063 '-Wno-non-virtual-dtor', |
3069 '-Wno-error=sign-promo', | 3064 '-Wno-sign-promo', |
3070 ], | 3065 ], |
3071 'cflags_cc': [ | 3066 'cflags_cc': [ |
3072 # Disabling c++0x-compat should be handled in WebKit, but | 3067 # Disabling c++0x-compat should be handled in WebKit, but |
3073 # this currently doesn't work because gcc_version is not set | 3068 # this currently doesn't work because gcc_version is not set |
3074 # correctly when building with the Android build system. | 3069 # correctly when building with the Android build system. |
3075 # TODO(torne): Fix this in WebKit. | 3070 # TODO(torne): Fix this in WebKit. |
3076 '-Wno-error=c++0x-compat', | 3071 '-Wno-error=c++0x-compat', |
3077 ], | 3072 ], |
3078 }], | 3073 }], |
3079 ['android_build_type==1 and chromium_code==0', { | 3074 ['android_build_type==1 and chromium_code==0', { |
3080 'cflags': [ | 3075 'cflags': [ |
3081 # There is a class of warning which: | 3076 # There is a class of warning which: |
3082 # 1) Android always enables and also treats as errors | 3077 # 1) Android always enables and also treats as errors |
3083 # 2) Chromium ignores in third party code | 3078 # 2) Chromium ignores in third party code |
3084 # For now, I am leaving these warnings enabled but preventing | 3079 # For now, I am leaving these warnings enabled but preventing |
3085 # them from being treated as errors here. | 3080 # them from being treated as errors here. |
3086 '-Wno-error=address', | 3081 '-Wno-address', |
3087 '-Wno-error=format-security', | 3082 '-Wno-format-security', |
3088 '-Wno-error=non-virtual-dtor', | 3083 '-Wno-non-virtual-dtor', |
3089 '-Wno-error=return-type', | 3084 '-Wno-return-type', |
3090 '-Wno-error=sequence-point', | 3085 '-Wno-sequence-point', |
3091 ], | 3086 ], |
3092 }], | 3087 }], |
3093 ['target_arch == "arm"', { | 3088 ['target_arch == "arm"', { |
3094 'ldflags': [ | 3089 'ldflags': [ |
3095 # Enable identical code folding to reduce size. | 3090 # Enable identical code folding to reduce size. |
3096 '-Wl,--icf=safe', | 3091 '-Wl,--icf=safe', |
3097 ], | 3092 ], |
3098 }], | 3093 }], |
3099 # NOTE: The stlport header include paths below are specified in | 3094 # NOTE: The stlport header include paths below are specified in |
3100 # cflags rather than include_dirs because they need to come | 3095 # cflags rather than include_dirs because they need to come |
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3951 # settings in target dicts. SYMROOT is a special case, because many other | 3946 # settings in target dicts. SYMROOT is a special case, because many other |
3952 # Xcode variables depend on it, including variables such as | 3947 # Xcode variables depend on it, including variables such as |
3953 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3948 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3954 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3949 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3955 # files to appear (when present) in the UI as actual files and not red | 3950 # files to appear (when present) in the UI as actual files and not red |
3956 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3951 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3957 # and therefore SYMROOT, needs to be set at the project level. | 3952 # and therefore SYMROOT, needs to be set at the project level. |
3958 'SYMROOT': '<(DEPTH)/xcodebuild', | 3953 'SYMROOT': '<(DEPTH)/xcodebuild', |
3959 }, | 3954 }, |
3960 } | 3955 } |
OLD | NEW |