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 3253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3264 # Don't die on dtoa code that uses a char as an array index. | 3264 # Don't die on dtoa code that uses a char as an array index. |
3265 # This is required solely for base/third_party/dmg_fp/dtoa.cc. | 3265 # This is required solely for base/third_party/dmg_fp/dtoa.cc. |
3266 '-Wno-char-subscripts', | 3266 '-Wno-char-subscripts', |
3267 # Clang spots more unused functions. | 3267 # Clang spots more unused functions. |
3268 '-Wno-unused-function', | 3268 '-Wno-unused-function', |
3269 | 3269 |
3270 # Warns on switches on enums that cover all enum values but | 3270 # Warns on switches on enums that cover all enum values but |
3271 # also contain a default: branch. Chrome is full of that. | 3271 # also contain a default: branch. Chrome is full of that. |
3272 '-Wno-covered-switch-default', | 3272 '-Wno-covered-switch-default', |
3273 ], | 3273 ], |
| 3274 'OTHER_CFLAGS': [ |
| 3275 '-stdlib=libc++', |
| 3276 '-I/Users/thakis/src/libcxx/include/', |
| 3277 '-I/Users/thakis/src/libcxxabi/include/', |
| 3278 '-Wno-#warnings', # For the deprecation warning in ext/hash_map |
| 3279 ], |
| 3280 'target_conditions': [ |
| 3281 ['_type!="static_library"', { |
| 3282 'OTHER_LDFLAGS': [ |
| 3283 '-nodefaultlibs', |
| 3284 '~/src/libcxx/lib/libc++.a', |
| 3285 '~/src/libcxxabi/lib/libc++abi.a', |
| 3286 '-lSystem', |
| 3287 ], |
| 3288 }], |
| 3289 ], |
3274 'OTHER_CPLUSPLUSFLAGS': [ | 3290 'OTHER_CPLUSPLUSFLAGS': [ |
3275 # gnu++11 instead of c++11 so that __ANSI_C__ doesn't get | 3291 # gnu++11 instead of c++11 so that __ANSI_C__ doesn't get |
3276 # defined. (Else e.g. finite() in base/float_util.h needs to | 3292 # defined. (Else e.g. finite() in base/float_util.h needs to |
3277 # be isfinite() which doesn't exist on the android bots.) | 3293 # be isfinite() which doesn't exist on the android bots.) |
3278 # typeof() is also disabled in c++11 (but we could use | 3294 # typeof() is also disabled in c++11 (but we could use |
3279 # decltype() instead). | 3295 # decltype() instead). |
3280 # TODO(thakis): Use CLANG_CXX_LANGUAGE_STANDARD instead once all | 3296 # TODO(thakis): Use CLANG_CXX_LANGUAGE_STANDARD instead once all |
3281 # bots use xcode 4 -- http://crbug.com/147515). | 3297 # bots use xcode 4 -- http://crbug.com/147515). |
3282 # TODO(thakis): Eventually switch this to c++11 instead of | 3298 # TODO(thakis): Eventually switch this to c++11 instead of |
3283 # gnu++11 (once typeof can be removed, which is blocked on c++11 | 3299 # gnu++11 (once typeof can be removed, which is blocked on c++11 |
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3910 # settings in target dicts. SYMROOT is a special case, because many other | 3926 # settings in target dicts. SYMROOT is a special case, because many other |
3911 # Xcode variables depend on it, including variables such as | 3927 # Xcode variables depend on it, including variables such as |
3912 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3928 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3913 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3929 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3914 # files to appear (when present) in the UI as actual files and not red | 3930 # files to appear (when present) in the UI as actual files and not red |
3915 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3931 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3916 # and therefore SYMROOT, needs to be set at the project level. | 3932 # and therefore SYMROOT, needs to be set at the project level. |
3917 'SYMROOT': '<(DEPTH)/xcodebuild', | 3933 'SYMROOT': '<(DEPTH)/xcodebuild', |
3918 }, | 3934 }, |
3919 } | 3935 } |
OLD | NEW |