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