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

Unified Diff: third_party/ffmpeg/generate_libs.py

Issue 2475001: ffmpeg delete source folder and use deps to pull in all content.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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 | « third_party/ffmpeg/ffmpeg_stub_headers.fragment ('k') | third_party/ffmpeg/include/win/inttypes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/ffmpeg/generate_libs.py
===================================================================
--- third_party/ffmpeg/generate_libs.py (revision 48686)
+++ third_party/ffmpeg/generate_libs.py (working copy)
@@ -1,36 +0,0 @@
-#!/usr/bin/python
-# Generates MSVC import libraries from .def files. Assumes MSVC environment
-# has been loaded.
-
-import optparse
-import os
-import subprocess
-
-def main():
- parser = optparse.OptionParser(usage='usage: %prog [options] input')
- parser.add_option('-o',
- '--output',
- dest='output',
- default=None,
- help=('output location'))
- (options, args) = parser.parse_args()
-
- if options.output == None:
- parser.error('Output location not specified')
- if len(args) == 0:
- parser.error('No inputs specified')
-
- # Make sure output directory exists.
- if not os.path.exists(options.output):
- os.makedirs(options.output)
-
- # Run lib.exe on each input def file.
- for input_path in args:
- input_name = os.path.basename(input_path)
- input_root = os.path.splitext(input_name)[0]
- output_path = os.path.join(options.output, input_root + '.lib')
- subprocess.call(['lib', '/nologo', '/machine:X86', '/def:' + input_path,
- '/out:' + output_path])
-
-if __name__ == '__main__':
- main()
« no previous file with comments | « third_party/ffmpeg/ffmpeg_stub_headers.fragment ('k') | third_party/ffmpeg/include/win/inttypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698