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 2853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2864 ['OS=="freebsd"', { | 2864 ['OS=="freebsd"', { |
2865 'target_defaults': { | 2865 'target_defaults': { |
2866 'ldflags': [ | 2866 'ldflags': [ |
2867 '-Wl,--no-keep-memory', | 2867 '-Wl,--no-keep-memory', |
2868 ], | 2868 ], |
2869 }, | 2869 }, |
2870 }], | 2870 }], |
2871 # Android-specific options; note that most are set above with Linux. | 2871 # Android-specific options; note that most are set above with Linux. |
2872 ['OS=="android"', { | 2872 ['OS=="android"', { |
2873 'variables': { | 2873 'variables': { |
2874 # This is the id for the archived chrome symbols. Each build that | 2874 # This is a unique identifier for a given build. It's used for |
2875 # archives symbols is assigned an id which is then added to GYP_DEFINES. | 2875 # identifying various build artifacts corresponding to a particular |
2876 # This is written to the device log on crashes just prior to dropping a | 2876 # build of chrome (e.g. where to find archived symbols). |
2877 # tombstone. Tools can determine the location of the archived symbols | 2877 'chrome_build_id%': '', |
2878 # from the id. | |
2879 'chrome_symbols_id%': '', | |
2880 'conditions': [ | 2878 'conditions': [ |
2881 # Use shared stlport library when system one used. | 2879 # Use shared stlport library when system one used. |
2882 # Figure this out early since it needs symbols from libgcc.a, so it | 2880 # Figure this out early since it needs symbols from libgcc.a, so it |
2883 # has to be before that in the set of libraries. | 2881 # has to be before that in the set of libraries. |
2884 ['use_system_stlport==1', { | 2882 ['use_system_stlport==1', { |
2885 'android_stlport_library': 'stlport', | 2883 'android_stlport_library': 'stlport', |
2886 }, { | 2884 }, { |
2887 'conditions': [ | 2885 'conditions': [ |
2888 ['component=="shared_library"', { | 2886 ['component=="shared_library"', { |
2889 'android_stlport_library': 'stlport_shared', | 2887 'android_stlport_library': 'stlport_shared', |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2956 '-fno-short-enums', | 2954 '-fno-short-enums', |
2957 '-finline-limit=64', | 2955 '-finline-limit=64', |
2958 '-Wa,--noexecstack', | 2956 '-Wa,--noexecstack', |
2959 '<@(release_extra_cflags)', | 2957 '<@(release_extra_cflags)', |
2960 ], | 2958 ], |
2961 'defines': [ | 2959 'defines': [ |
2962 'ANDROID', | 2960 'ANDROID', |
2963 '__GNU_SOURCE=1', # Necessary for clone() | 2961 '__GNU_SOURCE=1', # Necessary for clone() |
2964 'USE_STLPORT=1', | 2962 'USE_STLPORT=1', |
2965 '_STLP_USE_PTR_SPECIALIZATIONS=1', | 2963 '_STLP_USE_PTR_SPECIALIZATIONS=1', |
2966 'CHROME_SYMBOLS_ID="<(chrome_symbols_id)"', | 2964 'CHROME_BUILD_ID="<(chrome_build_id)"', |
2967 ], | 2965 ], |
2968 'ldflags!': [ | 2966 'ldflags!': [ |
2969 '-pthread', # Not supported by Android toolchain. | 2967 '-pthread', # Not supported by Android toolchain. |
2970 ], | 2968 ], |
2971 'ldflags': [ | 2969 'ldflags': [ |
2972 '-nostdlib', | 2970 '-nostdlib', |
2973 '-Wl,--no-undefined', | 2971 '-Wl,--no-undefined', |
2974 # Don't export symbols from statically linked libraries. | 2972 # Don't export symbols from statically linked libraries. |
2975 '-Wl,--exclude-libs=ALL', | 2973 '-Wl,--exclude-libs=ALL', |
2976 ], | 2974 ], |
(...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3924 # settings in target dicts. SYMROOT is a special case, because many other | 3922 # settings in target dicts. SYMROOT is a special case, because many other |
3925 # Xcode variables depend on it, including variables such as | 3923 # Xcode variables depend on it, including variables such as |
3926 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3924 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3927 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3925 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3928 # files to appear (when present) in the UI as actual files and not red | 3926 # files to appear (when present) in the UI as actual files and not red |
3929 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3927 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3930 # and therefore SYMROOT, needs to be set at the project level. | 3928 # and therefore SYMROOT, needs to be set at the project level. |
3931 'SYMROOT': '<(DEPTH)/xcodebuild', | 3929 'SYMROOT': '<(DEPTH)/xcodebuild', |
3932 }, | 3930 }, |
3933 } | 3931 } |
OLD | NEW |