OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'browser', | 8 'target_name': 'browser', |
9 'type': 'static_library', | 9 'type': 'static_library', |
10 'dependencies': [ | 10 'dependencies': [ |
(...skipping 4887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4898 'in_memory_url_index_cache_proto', | 4898 'in_memory_url_index_cache_proto', |
4899 ], | 4899 ], |
4900 'export_dependent_settings': [ | 4900 'export_dependent_settings': [ |
4901 'in_memory_url_index_cache_proto', | 4901 'in_memory_url_index_cache_proto', |
4902 ], | 4902 ], |
4903 # This target exports a hard dependency because it includes generated | 4903 # This target exports a hard dependency because it includes generated |
4904 # header files. | 4904 # header files. |
4905 'hard_dependency': 1, | 4905 'hard_dependency': 1, |
4906 }, | 4906 }, |
4907 ], | 4907 ], |
| 4908 'conditions': [ |
| 4909 ['OS=="mac"', { |
| 4910 'targets': [ |
| 4911 { |
| 4912 'target_name': 'closure_blocks_leopard_compat', |
| 4913 'conditions': [ |
| 4914 ['mac_sdk == "10.5"', { |
| 4915 'type': 'shared_library', |
| 4916 'product_name': 'closure_blocks_leopard_compat_stub', |
| 4917 'sources': [ |
| 4918 'browser/mac/closure_blocks_leopard_compat.S', |
| 4919 ], |
| 4920 'xcode_settings': { |
| 4921 # These values are taken from libSystem.dylib in the 10.5 SDK. |
| 4922 # Setting LD_DYLIB_INSTALL_NAME causes anything linked against |
| 4923 # this stub library to look for the symbols it provides in the |
| 4924 # real libSystem at runtime. The real library's compatibility |
| 4925 # version is used, and the value of the current version from |
| 4926 # the SDK is used to make it appear as though anything linked |
| 4927 # against this stub was linked against the real thing. |
| 4928 'LD_DYLIB_INSTALL_NAME': '/usr/lib/libSystem.B.dylib', |
| 4929 'DYLIB_COMPATIBILITY_VERSION': '1.0.0', |
| 4930 'DYLIB_CURRENT_VERSION': '111.1.4', |
| 4931 |
| 4932 # Turn on stripping (yes, even in debug mode), and add the -c |
| 4933 # flag. This is what produces a stub library (MH_DYLIB_STUB) |
| 4934 # as opposed to a dylib (MH_DYLIB). MH_DYLIB_STUB files |
| 4935 # contain symbol tables and everything else needed for |
| 4936 # linking, but are stripped of section contents. This is the |
| 4937 # same way that the stub libraries in Mac OS X SDKs are |
| 4938 # created. dyld will refuse to load a stub library, so this |
| 4939 # provides some insurance in case anyone tries to load the |
| 4940 # stub at runtime. |
| 4941 'DEPLOYMENT_POSTPROCESSING': 'YES', |
| 4942 'STRIP_STYLE': 'non-global', |
| 4943 'STRIPFLAGS': '-c', |
| 4944 }, |
| 4945 }, { # else: mac_sdk != "10.5" |
| 4946 # When using the 10.6 SDK or newer, the necessary definitions |
| 4947 # are already present in libSystem.dylib. There is no need to |
| 4948 # build a stub dylib to provide these symbols at link time. This |
| 4949 # target is still useful to cause those symbols to be treated as |
| 4950 # weak imports in dependents, who still must #include |
| 4951 # closure_blocks_leopard_compat.h to get weak imports. |
| 4952 'type': 'none', |
| 4953 }], |
| 4954 ], |
| 4955 }, |
| 4956 ], |
| 4957 }], |
| 4958 ], |
4908 } | 4959 } |
OLD | NEW |