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 2509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2520 'target_defaults': { | 2520 'target_defaults': { |
2521 'ldflags': [ | 2521 'ldflags': [ |
2522 '-Wl,--no-keep-memory', | 2522 '-Wl,--no-keep-memory', |
2523 ], | 2523 ], |
2524 }, | 2524 }, |
2525 }], | 2525 }], |
2526 # Android-specific options; note that most are set above with Linux. | 2526 # Android-specific options; note that most are set above with Linux. |
2527 ['OS=="android"', { | 2527 ['OS=="android"', { |
2528 'variables': { | 2528 'variables': { |
2529 'target_arch%': 'arm', # target_arch in android terms. | 2529 'target_arch%': 'arm', # target_arch in android terms. |
| 2530 # This is the id for the archived chrome symbols. Each build that |
| 2531 # archives symbols is assigned an id which is then added to GYP_DEFINES. |
| 2532 # This is written to the device log on crashes just prior to dropping a |
| 2533 # tombstone. Tools can determine the location of the archived symbols |
| 2534 # from the id. |
| 2535 'chrome_symbols_id%': '', |
2530 'conditions': [ | 2536 'conditions': [ |
2531 # Android uses x86 instead of ia32 for their target_arch designation. | 2537 # Android uses x86 instead of ia32 for their target_arch designation. |
2532 ['target_arch=="ia32"', { | 2538 ['target_arch=="ia32"', { |
2533 'target_arch%': 'x86', | 2539 'target_arch%': 'x86', |
2534 }], | 2540 }], |
2535 # Use shared stlport library when system one used. | 2541 # Use shared stlport library when system one used. |
2536 # 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 |
2537 # has to be before that in the set of libraries. | 2543 # has to be before that in the set of libraries. |
2538 ['use_system_stlport==1', { | 2544 ['use_system_stlport==1', { |
2539 'android_stlport_library': 'stlport', | 2545 'android_stlport_library': 'stlport', |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2604 '-fno-short-enums', | 2610 '-fno-short-enums', |
2605 '-finline-limit=64', | 2611 '-finline-limit=64', |
2606 '-Wa,--noexecstack', | 2612 '-Wa,--noexecstack', |
2607 '<@(release_extra_cflags)', | 2613 '<@(release_extra_cflags)', |
2608 ], | 2614 ], |
2609 'defines': [ | 2615 'defines': [ |
2610 'ANDROID', | 2616 'ANDROID', |
2611 '__GNU_SOURCE=1', # Necessary for clone() | 2617 '__GNU_SOURCE=1', # Necessary for clone() |
2612 'USE_STLPORT=1', | 2618 'USE_STLPORT=1', |
2613 '_STLP_USE_PTR_SPECIALIZATIONS=1', | 2619 '_STLP_USE_PTR_SPECIALIZATIONS=1', |
| 2620 'CHROME_SYMBOLS_ID="<(chrome_symbols_id)"', |
2614 ], | 2621 ], |
2615 'ldflags!': [ | 2622 'ldflags!': [ |
2616 '-pthread', # Not supported by Android toolchain. | 2623 '-pthread', # Not supported by Android toolchain. |
2617 ], | 2624 ], |
2618 'ldflags': [ | 2625 'ldflags': [ |
2619 '-nostdlib', | 2626 '-nostdlib', |
2620 '-Wl,--no-undefined', | 2627 '-Wl,--no-undefined', |
2621 # Don't export symbols from statically linked libraries. | 2628 # Don't export symbols from statically linked libraries. |
2622 '-Wl,--exclude-libs=ALL', | 2629 '-Wl,--exclude-libs=ALL', |
2623 ], | 2630 ], |
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3416 # settings in target dicts. SYMROOT is a special case, because many other | 3423 # settings in target dicts. SYMROOT is a special case, because many other |
3417 # Xcode variables depend on it, including variables such as | 3424 # Xcode variables depend on it, including variables such as |
3418 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3425 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3419 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3426 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3420 # files to appear (when present) in the UI as actual files and not red | 3427 # files to appear (when present) in the UI as actual files and not red |
3421 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3428 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3422 # and therefore SYMROOT, needs to be set at the project level. | 3429 # and therefore SYMROOT, needs to be set at the project level. |
3423 'SYMROOT': '<(DEPTH)/xcodebuild', | 3430 'SYMROOT': '<(DEPTH)/xcodebuild', |
3424 }, | 3431 }, |
3425 } | 3432 } |
OLD | NEW |