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 2522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2533 # libgcc.a to the start of libraries which puts it in the | 2533 # libgcc.a to the start of libraries which puts it in the |
2534 # proper spot after .o and .a files get linked in. | 2534 # proper spot after .o and .a files get linked in. |
2535 # | 2535 # |
2536 # TODO: The proper thing to do longer-tem would be proper gyp | 2536 # TODO: The proper thing to do longer-tem would be proper gyp |
2537 # support for a custom link command line. | 2537 # support for a custom link command line. |
2538 ['_toolset=="target"', { | 2538 ['_toolset=="target"', { |
2539 'cflags!': [ | 2539 'cflags!': [ |
2540 '-pthread', # Not supported by Android toolchain. | 2540 '-pthread', # Not supported by Android toolchain. |
2541 ], | 2541 ], |
2542 'cflags': [ | 2542 'cflags': [ |
| 2543 '-U__linux__', # Don't allow toolchain to claim -D__linux__ |
2543 '-ffunction-sections', | 2544 '-ffunction-sections', |
2544 '-funwind-tables', | 2545 '-funwind-tables', |
2545 '-g', | 2546 '-g', |
2546 '-fstack-protector', | 2547 '-fstack-protector', |
2547 '-fno-short-enums', | 2548 '-fno-short-enums', |
2548 '-finline-limit=64', | 2549 '-finline-limit=64', |
2549 '-Wa,--noexecstack', | 2550 '-Wa,--noexecstack', |
2550 '<@(release_extra_cflags)', | 2551 '<@(release_extra_cflags)', |
2551 ], | 2552 ], |
2552 'defines': [ | 2553 'defines': [ |
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3380 # settings in target dicts. SYMROOT is a special case, because many other | 3381 # settings in target dicts. SYMROOT is a special case, because many other |
3381 # Xcode variables depend on it, including variables such as | 3382 # Xcode variables depend on it, including variables such as |
3382 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3383 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3383 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3384 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3384 # files to appear (when present) in the UI as actual files and not red | 3385 # files to appear (when present) in the UI as actual files and not red |
3385 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3386 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3386 # and therefore SYMROOT, needs to be set at the project level. | 3387 # and therefore SYMROOT, needs to be set at the project level. |
3387 'SYMROOT': '<(DEPTH)/xcodebuild', | 3388 'SYMROOT': '<(DEPTH)/xcodebuild', |
3388 }, | 3389 }, |
3389 } | 3390 } |
OLD | NEW |