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 3123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3134 # by remoting. Remoting is off, so it needn't built, | 3134 # by remoting. Remoting is off, so it needn't built, |
3135 # so forking it's deps seems like overkill. | 3135 # so forking it's deps seems like overkill. |
3136 # But this variable need defined to properly run gyp. | 3136 # But this variable need defined to properly run gyp. |
3137 # A proper solution is to have an OS==android conditional | 3137 # A proper solution is to have an OS==android conditional |
3138 # in third_party/libvpx/libvpx.gyp to define it. | 3138 # in third_party/libvpx/libvpx.gyp to define it. |
3139 'libvpx_path': 'lib/linux/arm', | 3139 'libvpx_path': 'lib/linux/arm', |
3140 }, | 3140 }, |
3141 'target_defaults': { | 3141 'target_defaults': { |
3142 'variables': { | 3142 'variables': { |
3143 'release_extra_cflags%': '', | 3143 'release_extra_cflags%': '', |
| 3144 'conditions': [ |
| 3145 # If we're using the components build, append "cr" to all shared |
| 3146 # libraries to avoid naming collisions with android system library |
| 3147 # versions with the same name (e.g. skia, icu). |
| 3148 ['component=="shared_library"', { |
| 3149 'android_product_extension': 'cr.so', |
| 3150 }, { |
| 3151 'android_product_extension': 'so', |
| 3152 } ], |
| 3153 ], |
3144 }, | 3154 }, |
| 3155 'target_conditions': [ |
| 3156 ['_type=="shared_library"', { |
| 3157 'product_extension': '<(android_product_extension)', |
| 3158 }], |
3145 | 3159 |
3146 'target_conditions': [ | |
3147 # Settings for building device targets using Android's toolchain. | 3160 # Settings for building device targets using Android's toolchain. |
3148 # These are based on the setup.mk file from the Android NDK. | 3161 # These are based on the setup.mk file from the Android NDK. |
3149 # | 3162 # |
3150 # The NDK Android executable link step looks as follows: | 3163 # The NDK Android executable link step looks as follows: |
3151 # $LDFLAGS | 3164 # $LDFLAGS |
3152 # $(TARGET_CRTBEGIN_DYNAMIC_O) <-- crtbegin.o | 3165 # $(TARGET_CRTBEGIN_DYNAMIC_O) <-- crtbegin.o |
3153 # $(PRIVATE_OBJECTS) <-- The .o that we built | 3166 # $(PRIVATE_OBJECTS) <-- The .o that we built |
3154 # $(PRIVATE_STATIC_LIBRARIES) <-- The .a that we built | 3167 # $(PRIVATE_STATIC_LIBRARIES) <-- The .a that we built |
3155 # $(TARGET_LIBGCC) <-- libgcc.a | 3168 # $(TARGET_LIBGCC) <-- libgcc.a |
3156 # $(PRIVATE_SHARED_LIBRARIES) <-- The .so that we built | 3169 # $(PRIVATE_SHARED_LIBRARIES) <-- The .so that we built |
(...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4192 # settings in target dicts. SYMROOT is a special case, because many other | 4205 # settings in target dicts. SYMROOT is a special case, because many other |
4193 # Xcode variables depend on it, including variables such as | 4206 # Xcode variables depend on it, including variables such as |
4194 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4207 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4195 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4208 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4196 # files to appear (when present) in the UI as actual files and not red | 4209 # files to appear (when present) in the UI as actual files and not red |
4197 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4210 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4198 # and therefore SYMROOT, needs to be set at the project level. | 4211 # and therefore SYMROOT, needs to be set at the project level. |
4199 'SYMROOT': '<(DEPTH)/xcodebuild', | 4212 'SYMROOT': '<(DEPTH)/xcodebuild', |
4200 }, | 4213 }, |
4201 } | 4214 } |
OLD | NEW |