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

Side by Side Diff: native_client_sdk/src/build_tools/generate_make.py

Issue 15011003: ppapi_simple (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright Created 7 years, 6 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 | « no previous file | native_client_sdk/src/build_tools/sdk_files.list » ('j') | 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 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 import os 5 import os
6 import sys 6 import sys
7 7
8 import buildbot_common 8 import buildbot_common
9 import build_version 9 import build_version
10 import getos 10 import getos
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 for src_name in src_files: 153 for src_name in src_files:
154 src_file = FindFile(src_name, root, search_dirs) 154 src_file = FindFile(src_name, root, search_dirs)
155 if not src_file: 155 if not src_file:
156 ErrorExit('Failed to find: ' + src_name) 156 ErrorExit('Failed to find: ' + src_name)
157 dst_file = os.path.join(dst_dir, src_name) 157 dst_file = os.path.join(dst_dir, src_name)
158 if os.path.exists(dst_file): 158 if os.path.exists(dst_file):
159 if os.stat(src_file).st_mtime <= os.stat(dst_file).st_mtime: 159 if os.stat(src_file).st_mtime <= os.stat(dst_file).st_mtime:
160 Trace('Skipping "%s", destination "%s" is newer.' % ( 160 Trace('Skipping "%s", destination "%s" is newer.' % (
161 src_file, dst_file)) 161 src_file, dst_file))
162 continue 162 continue
163 dst_path = os.path.dirname(dst_file)
164 if not os.path.exists(dst_path):
165 buildbot_common.MakeDir(dst_path)
163 buildbot_common.CopyFile(src_file, dst_file) 166 buildbot_common.CopyFile(src_file, dst_file)
164 167
165 168
166 def ProcessProject(pepperdir, srcroot, dstroot, desc, toolchains, configs=None, 169 def ProcessProject(pepperdir, srcroot, dstroot, desc, toolchains, configs=None,
167 first_toolchain=False): 170 first_toolchain=False):
168 if not configs: 171 if not configs:
169 configs = ['Debug', 'Release'] 172 configs = ['Debug', 'Release']
170 173
171 name = desc['NAME'] 174 name = desc['NAME']
172 out_dir = os.path.join(dstroot, desc['DEST'], name) 175 out_dir = os.path.join(dstroot, desc['DEST'], name)
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 out_path = os.path.join(out_path, 'Makefile') 232 out_path = os.path.join(out_path, 'Makefile')
230 rel_path = os.path.relpath(pepperdir, os.path.dirname(out_path)) 233 rel_path = os.path.relpath(pepperdir, os.path.dirname(out_path))
231 template_dict = { 234 template_dict = {
232 'projects': targets, 235 'projects': targets,
233 'rel_sdk' : rel_path, 236 'rel_sdk' : rel_path,
234 } 237 }
235 RunTemplateFileIfChanged(in_path, out_path, template_dict) 238 RunTemplateFileIfChanged(in_path, out_path, template_dict)
236 outdir = os.path.dirname(os.path.abspath(out_path)) 239 outdir = os.path.dirname(os.path.abspath(out_path))
237 if getos.GetPlatform() == 'win': 240 if getos.GetPlatform() == 'win':
238 AddMakeBat(pepperdir, outdir) 241 AddMakeBat(pepperdir, outdir)
OLDNEW
« no previous file with comments | « no previous file | native_client_sdk/src/build_tools/sdk_files.list » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698