OLD | NEW |
1 # Copyright (c) 2013 Google Inc. All rights reserved. | 1 # Copyright (c) 2013 Google Inc. 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 # Notes: | 5 # Notes: |
6 # | 6 # |
7 # This is all roughly based on the Makefile system used by the Linux | 7 # This is all roughly based on the Makefile system used by the Linux |
8 # kernel, but is a non-recursive make -- we put the entire dependency | 8 # kernel, but is a non-recursive make -- we put the entire dependency |
9 # graph in front of make and let it figure it out. | 9 # graph in front of make and let it figure it out. |
10 # | 10 # |
(...skipping 2026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2037 elif flavor == 'solaris': | 2037 elif flavor == 'solaris': |
2038 header_params.update({ | 2038 header_params.update({ |
2039 'flock': './gyp-flock-tool flock', | 2039 'flock': './gyp-flock-tool flock', |
2040 'flock_index': 2, | 2040 'flock_index': 2, |
2041 }) | 2041 }) |
2042 elif flavor == 'freebsd': | 2042 elif flavor == 'freebsd': |
2043 # Note: OpenBSD has sysutils/flock. lockf seems to be FreeBSD specific. | 2043 # Note: OpenBSD has sysutils/flock. lockf seems to be FreeBSD specific. |
2044 header_params.update({ | 2044 header_params.update({ |
2045 'flock': 'lockf', | 2045 'flock': 'lockf', |
2046 }) | 2046 }) |
| 2047 elif flavor == 'openbsd': |
| 2048 copy_archive_arguments = '-pPRf' |
| 2049 header_params.update({ |
| 2050 'copy_archive_args': copy_archive_arguments, |
| 2051 }) |
2047 elif flavor == 'aix': | 2052 elif flavor == 'aix': |
2048 copy_archive_arguments = '-pPRf' | 2053 copy_archive_arguments = '-pPRf' |
2049 header_params.update({ | 2054 header_params.update({ |
2050 'copy_archive_args': copy_archive_arguments, | 2055 'copy_archive_args': copy_archive_arguments, |
2051 'link_commands': LINK_COMMANDS_AIX, | 2056 'link_commands': LINK_COMMANDS_AIX, |
2052 'flock': './gyp-flock-tool flock', | 2057 'flock': './gyp-flock-tool flock', |
2053 'flock_index': 2, | 2058 'flock_index': 2, |
2054 }) | 2059 }) |
2055 | 2060 |
2056 header_params.update({ | 2061 header_params.update({ |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2204 root_makefile.write("endif\n") | 2209 root_makefile.write("endif\n") |
2205 root_makefile.write('\n') | 2210 root_makefile.write('\n') |
2206 | 2211 |
2207 if (not generator_flags.get('standalone') | 2212 if (not generator_flags.get('standalone') |
2208 and generator_flags.get('auto_regeneration', True)): | 2213 and generator_flags.get('auto_regeneration', True)): |
2209 WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files) | 2214 WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files) |
2210 | 2215 |
2211 root_makefile.write(SHARED_FOOTER) | 2216 root_makefile.write(SHARED_FOOTER) |
2212 | 2217 |
2213 root_makefile.close() | 2218 root_makefile.close() |
OLD | NEW |