OLD | NEW |
1 # Copyright (c) 2012 Google Inc. All rights reserved. | 1 # Copyright (c) 2012 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 1966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1977 elif flavor == 'android': | 1977 elif flavor == 'android': |
1978 header_params.update({ | 1978 header_params.update({ |
1979 'link_commands': LINK_COMMANDS_ANDROID, | 1979 'link_commands': LINK_COMMANDS_ANDROID, |
1980 }) | 1980 }) |
1981 elif flavor == 'solaris': | 1981 elif flavor == 'solaris': |
1982 header_params.update({ | 1982 header_params.update({ |
1983 'flock': './gyp-sun-tool flock', | 1983 'flock': './gyp-sun-tool flock', |
1984 'flock_index': 2, | 1984 'flock_index': 2, |
1985 'extra_commands': SHARED_HEADER_SUN_COMMANDS, | 1985 'extra_commands': SHARED_HEADER_SUN_COMMANDS, |
1986 }) | 1986 }) |
1987 elif flavor == 'freebsd': | 1987 elif flavor in ['freebsd', 'openbsd']: |
1988 header_params.update({ | 1988 header_params.update({ |
1989 'flock': 'lockf', | 1989 'flock': 'lockf', |
1990 }) | 1990 }) |
1991 | 1991 |
1992 header_params.update({ | 1992 header_params.update({ |
1993 'CC.target': GetEnvironFallback(('CC_target', 'CC'), '$(CC)'), | 1993 'CC.target': GetEnvironFallback(('CC_target', 'CC'), '$(CC)'), |
1994 'AR.target': GetEnvironFallback(('AR_target', 'AR'), '$(AR)'), | 1994 'AR.target': GetEnvironFallback(('AR_target', 'AR'), '$(AR)'), |
1995 'CXX.target': GetEnvironFallback(('CXX_target', 'CXX'), '$(CXX)'), | 1995 'CXX.target': GetEnvironFallback(('CXX_target', 'CXX'), '$(CXX)'), |
1996 'LINK.target': GetEnvironFallback(('LD_target', 'LD'), '$(LINK)'), | 1996 'LINK.target': GetEnvironFallback(('LD_target', 'LD'), '$(LINK)'), |
1997 'CC.host': GetEnvironFallback(('CC_host',), 'gcc'), | 1997 'CC.host': GetEnvironFallback(('CC_host',), 'gcc'), |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2139 root_makefile.write("endif\n") | 2139 root_makefile.write("endif\n") |
2140 root_makefile.write('\n') | 2140 root_makefile.write('\n') |
2141 | 2141 |
2142 if (not generator_flags.get('standalone') | 2142 if (not generator_flags.get('standalone') |
2143 and generator_flags.get('auto_regeneration', True)): | 2143 and generator_flags.get('auto_regeneration', True)): |
2144 WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files) | 2144 WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files) |
2145 | 2145 |
2146 root_makefile.write(SHARED_FOOTER) | 2146 root_makefile.write(SHARED_FOOTER) |
2147 | 2147 |
2148 root_makefile.close() | 2148 root_makefile.close() |
OLD | NEW |