Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: pylib/gyp/generator/make.py

Issue 12389082: make gyp recognize OpenBSD (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pylib/gyp/common_test.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 == 'freebsd':
Nico 2013/03/04 18:48:08 Can you just write `elif flavor in ['freebsd', 'o
1988 header_params.update({ 1988 header_params.update({
1989 'flock': 'lockf', 1989 'flock': 'lockf',
1990 }) 1990 })
1991 elif flavor == 'openbsd':
1992 header_params.update({
1993 'flock': 'lockf',
1994 })
1991 1995
1992 header_params.update({ 1996 header_params.update({
1993 'CC.target': GetEnvironFallback(('CC_target', 'CC'), '$(CC)'), 1997 'CC.target': GetEnvironFallback(('CC_target', 'CC'), '$(CC)'),
1994 'AR.target': GetEnvironFallback(('AR_target', 'AR'), '$(AR)'), 1998 'AR.target': GetEnvironFallback(('AR_target', 'AR'), '$(AR)'),
1995 'CXX.target': GetEnvironFallback(('CXX_target', 'CXX'), '$(CXX)'), 1999 'CXX.target': GetEnvironFallback(('CXX_target', 'CXX'), '$(CXX)'),
1996 'LINK.target': GetEnvironFallback(('LD_target', 'LD'), '$(LINK)'), 2000 'LINK.target': GetEnvironFallback(('LD_target', 'LD'), '$(LINK)'),
1997 'CC.host': GetEnvironFallback(('CC_host',), 'gcc'), 2001 'CC.host': GetEnvironFallback(('CC_host',), 'gcc'),
1998 'AR.host': GetEnvironFallback(('AR_host',), 'ar'), 2002 'AR.host': GetEnvironFallback(('AR_host',), 'ar'),
1999 'CXX.host': GetEnvironFallback(('CXX_host',), 'g++'), 2003 'CXX.host': GetEnvironFallback(('CXX_host',), 'g++'),
2000 'LINK.host': GetEnvironFallback(('LD_host',), 'g++'), 2004 'LINK.host': GetEnvironFallback(('LD_host',), 'g++'),
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
2139 root_makefile.write("endif\n") 2143 root_makefile.write("endif\n")
2140 root_makefile.write('\n') 2144 root_makefile.write('\n')
2141 2145
2142 if (not generator_flags.get('standalone') 2146 if (not generator_flags.get('standalone')
2143 and generator_flags.get('auto_regeneration', True)): 2147 and generator_flags.get('auto_regeneration', True)):
2144 WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files) 2148 WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files)
2145 2149
2146 root_makefile.write(SHARED_FOOTER) 2150 root_makefile.write(SHARED_FOOTER)
2147 2151
2148 root_makefile.close() 2152 root_makefile.close()
OLDNEW
« no previous file with comments | « pylib/gyp/common_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698