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

Unified Diff: build/win/install-build-deps.py

Issue 940123006: Cleanup: Remove unused Windows script. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/win/install-build-deps.py
diff --git a/build/win/install-build-deps.py b/build/win/install-build-deps.py
deleted file mode 100755
index d9e50b6e7e75791f5b6b51649041a15d0a0478b1..0000000000000000000000000000000000000000
--- a/build/win/install-build-deps.py
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import shutil
-import sys
-import os
-
-def patch_msbuild():
- """VS2010 MSBuild has a ULDI bug that we patch here. See http://goo.gl/Pn8tj.
- """
- source_path = os.path.join(os.environ['ProgramFiles(x86)'],
- "MSBuild",
- "Microsoft.Cpp",
- "v4.0",
- "Microsoft.CppBuild.targets")
- backup_path = source_path + ".backup"
- if not os.path.exists(backup_path):
- try:
- print "Backing up %s..." % source_path
- shutil.copyfile(source_path, backup_path)
- except IOError:
- print "Could not back up %s to %s. Run as Administrator?" % (
- source_path, backup_path)
- return 1
-
- source = open(source_path).read()
- base = ('''<Target Name="GetResolvedLinkObjs" Returns="@(ObjFullPath)" '''
- '''DependsOnTargets="$(CommonBuildOnlyTargets);ComputeCLOutputs;'''
- '''ResolvedLinkObjs"''')
- find = base + '>'
- replace = base + ''' Condition="'$(ConfigurationType)'=='StaticLibrary'">'''
- result = source.replace(find, replace)
-
- if result != source:
- open(source_path, "w").write(result)
- print "Patched %s." % source_path
- return 0
-
-
-def main():
- return patch_msbuild()
-
-
-if __name__ == "__main__":
- sys.exit(main())
« 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