Chromium Code Reviews| 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 2510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2521 'target_defaults': { | 2521 'target_defaults': { |
| 2522 'ldflags': [ | 2522 'ldflags': [ |
| 2523 '-Wl,--no-keep-memory', | 2523 '-Wl,--no-keep-memory', |
| 2524 ], | 2524 ], |
| 2525 }, | 2525 }, |
| 2526 }], | 2526 }], |
| 2527 # Android-specific options; note that most are set above with Linux. | 2527 # Android-specific options; note that most are set above with Linux. |
| 2528 ['OS=="android"', { | 2528 ['OS=="android"', { |
| 2529 'variables': { | 2529 'variables': { |
| 2530 'target_arch%': 'arm', # target_arch in android terms. | 2530 'target_arch%': 'arm', # target_arch in android terms. |
| 2531 # The location where debug symbols are archived. This is written to the | |
| 2532 # device log on crashes just prior to dropping a tombstone so that | |
| 2533 # tools can locate the symbols from the crash log. This is added to the | |
| 2534 # Gyp defines by the buildbots that actually archive symbols. | |
|
Lei Zhang
2012/09/06 19:13:36
s/Gyp defines/GYP_DEFINES/ ?
cjhopman
2012/09/07 18:09:20
Done.
| |
| 2535 'chrome_symbols_location%': '', | |
| 2531 'conditions': [ | 2536 'conditions': [ |
| 2532 # Android uses x86 instead of ia32 for their target_arch designation. | 2537 # Android uses x86 instead of ia32 for their target_arch designation. |
| 2533 ['target_arch=="ia32"', { | 2538 ['target_arch=="ia32"', { |
| 2534 'target_arch%': 'x86', | 2539 'target_arch%': 'x86', |
| 2535 }], | 2540 }], |
| 2536 # Use shared stlport library when system one used. | 2541 # Use shared stlport library when system one used. |
| 2537 # Figure this out early since it needs symbols from libgcc.a, so it | 2542 # Figure this out early since it needs symbols from libgcc.a, so it |
| 2538 # has to be before that in the set of libraries. | 2543 # has to be before that in the set of libraries. |
| 2539 ['use_system_stlport==1', { | 2544 ['use_system_stlport==1', { |
| 2540 'android_stlport_library': 'stlport', | 2545 'android_stlport_library': 'stlport', |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2605 '-fno-short-enums', | 2610 '-fno-short-enums', |
| 2606 '-finline-limit=64', | 2611 '-finline-limit=64', |
| 2607 '-Wa,--noexecstack', | 2612 '-Wa,--noexecstack', |
| 2608 '<@(release_extra_cflags)', | 2613 '<@(release_extra_cflags)', |
| 2609 ], | 2614 ], |
| 2610 'defines': [ | 2615 'defines': [ |
| 2611 'ANDROID', | 2616 'ANDROID', |
| 2612 '__GNU_SOURCE=1', # Necessary for clone() | 2617 '__GNU_SOURCE=1', # Necessary for clone() |
| 2613 'USE_STLPORT=1', | 2618 'USE_STLPORT=1', |
| 2614 '_STLP_USE_PTR_SPECIALIZATIONS=1', | 2619 '_STLP_USE_PTR_SPECIALIZATIONS=1', |
| 2620 'CHROME_SYMBOLS_LOCATION="<(chrome_symbols_location)"', | |
| 2615 ], | 2621 ], |
| 2616 'ldflags!': [ | 2622 'ldflags!': [ |
| 2617 '-pthread', # Not supported by Android toolchain. | 2623 '-pthread', # Not supported by Android toolchain. |
| 2618 ], | 2624 ], |
| 2619 'ldflags': [ | 2625 'ldflags': [ |
| 2620 '-nostdlib', | 2626 '-nostdlib', |
| 2621 '-Wl,--no-undefined', | 2627 '-Wl,--no-undefined', |
| 2622 # Don't export symbols from statically linked libraries. | 2628 # Don't export symbols from statically linked libraries. |
| 2623 '-Wl,--exclude-libs=ALL', | 2629 '-Wl,--exclude-libs=ALL', |
| 2624 ], | 2630 ], |
| (...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3419 # settings in target dicts. SYMROOT is a special case, because many other | 3425 # settings in target dicts. SYMROOT is a special case, because many other |
| 3420 # Xcode variables depend on it, including variables such as | 3426 # Xcode variables depend on it, including variables such as |
| 3421 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3427 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 3422 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3428 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 3423 # files to appear (when present) in the UI as actual files and not red | 3429 # files to appear (when present) in the UI as actual files and not red |
| 3424 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3430 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 3425 # and therefore SYMROOT, needs to be set at the project level. | 3431 # and therefore SYMROOT, needs to be set at the project level. |
| 3426 'SYMROOT': '<(DEPTH)/xcodebuild', | 3432 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 3427 }, | 3433 }, |
| 3428 } | 3434 } |
| OLD | NEW |