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