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

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

Issue 1483473002: Copy files with `cp -pPRf` on OpenBSD. (Closed) Base URL: https://chromium.googlesource.com/external/gyp@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | 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) 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
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
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()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698