diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /media/webrtc/trunk/build/win | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'media/webrtc/trunk/build/win')
-rw-r--r-- | media/webrtc/trunk/build/win/chrome_win.croc | 26 | ||||
-rwxr-xr-x | media/webrtc/trunk/build/win/install-build-deps.py | 47 | ||||
-rw-r--r-- | media/webrtc/trunk/build/win/setup_cygwin_mount.py | 20 |
3 files changed, 93 insertions, 0 deletions
diff --git a/media/webrtc/trunk/build/win/chrome_win.croc b/media/webrtc/trunk/build/win/chrome_win.croc new file mode 100644 index 000000000..e1e3bb76d --- /dev/null +++ b/media/webrtc/trunk/build/win/chrome_win.croc @@ -0,0 +1,26 @@ +# -*- python -*- +# Crocodile config file for Chromium windows + +{ + # List of rules, applied in order + 'rules' : [ + # Specify inclusions before exclusions, since rules are in order. + + # Don't include chromeos, posix, or linux specific files + { + 'regexp' : '.*(_|/)(chromeos|linux|posix)(\\.|_)', + 'include' : 0, + }, + # Don't include ChromeOS dirs + { + 'regexp' : '.*/chromeos/', + 'include' : 0, + }, + + # Groups + { + 'regexp' : '.*_test_win\\.', + 'group' : 'test', + }, + ], +} diff --git a/media/webrtc/trunk/build/win/install-build-deps.py b/media/webrtc/trunk/build/win/install-build-deps.py new file mode 100755 index 000000000..d9e50b6e7 --- /dev/null +++ b/media/webrtc/trunk/build/win/install-build-deps.py @@ -0,0 +1,47 @@ +#!/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()) diff --git a/media/webrtc/trunk/build/win/setup_cygwin_mount.py b/media/webrtc/trunk/build/win/setup_cygwin_mount.py new file mode 100644 index 000000000..d68a3af41 --- /dev/null +++ b/media/webrtc/trunk/build/win/setup_cygwin_mount.py @@ -0,0 +1,20 @@ +# 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 os +import sys + +def main(): + if len(sys.argv) != 2 or sys.argv[1] != '--win-only': + return 1 + if sys.platform in ('win32', 'cygwin'): + self_dir = os.path.dirname(sys.argv[0]) + mount_path = os.path.join(self_dir, "../../third_party/cygwin") + batch_path = os.path.join(mount_path, "setup_mount.bat") + return os.system(os.path.normpath(batch_path) + ">nul") + return 0 + + +if __name__ == "__main__": + sys.exit(main()) |