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

Unified Diff: third_party/ffmpeg/ffmpeg.gyp

Issue 63054: Convert /third_party/ffmpeg to gyp and a python build script. (Closed)
Patch Set: Created 11 years, 8 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 | « media/media.gyp ('k') | third_party/ffmpeg/ffmpeg.vcproj » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/ffmpeg/ffmpeg.gyp
diff --git a/third_party/ffmpeg/ffmpeg.gyp b/third_party/ffmpeg/ffmpeg.gyp
new file mode 100755
index 0000000000000000000000000000000000000000..583d8204834c00b2e11a900218865de78e38c163
--- /dev/null
+++ b/third_party/ffmpeg/ffmpeg.gyp
@@ -0,0 +1,100 @@
+# Copyright (c) 2009 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.
+
+{
+ 'variables': {
+ 'chromium_code': 1,
+ },
+ 'includes': [
+ '../../build/common.gypi',
+ ],
+ 'target_defaults': {
+ 'conditions': [
+ ['OS!="linux"', {'sources/': [['exclude', '/linux/']]}],
+ ['OS!="mac"', {'sources/': [['exclude', '/mac/']]}],
+ ['OS!="win"', {'sources/': [['exclude', '/win/']]}],
+ ],
+ },
+ 'targets': [
+ {
+ 'target_name': 'ffmpeg',
+ 'type': 'none',
+ 'msvs_guid': 'D7A94F58-576A-45D9-A45F-EB87C63ABBB0',
+ 'sources': [
+ 'include/libavcodec/avcodec.h',
+ 'include/libavcodec/opt.h',
+ 'include/libavcodec/vdpau.h',
+ 'include/libavcodec/xvmc.h',
+ 'include/libavdevice/avdevice.h',
+ 'include/libavformat/avformat.h',
+ 'include/libavformat/avio.h',
+ 'include/libavutil/adler32.h',
+ 'include/libavutil/avstring.h',
+ 'include/libavutil/avutil.h',
+ 'include/libavutil/base64.h',
+ 'include/libavutil/common.h',
+ 'include/libavutil/crc.h',
+ 'include/libavutil/fifo.h',
+ 'include/libavutil/intfloat_readwrite.h',
+ 'include/libavutil/log.h',
+ 'include/libavutil/lzo.h',
+ 'include/libavutil/mathematics.h',
+ 'include/libavutil/md5.h',
+ 'include/libavutil/mem.h',
+ 'include/libavutil/pixfmt.h',
+ 'include/libavutil/rational.h',
+ 'include/libavutil/sha1.h',
+ 'include/win/inttypes.h',
+ 'include/win/stdint.h',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ 'include',
+ ],
+ },
+ 'conditions': [
+ ['OS=="win"', {
+ 'sources': [
+ 'avcodec-52.def',
+ 'avformat-52.def',
+ 'avutil-50.def',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ 'include/win',
+ ],
+ 'link_settings': {
+ 'libraries': [
+ '<(PRODUCT_DIR)/lib/avcodec-52.lib',
+ '<(PRODUCT_DIR)/lib/avformat-52.lib',
+ '<(PRODUCT_DIR)/lib/avutil-50.lib',
+ ],
+ },
+ },
+ 'rules': [
+ {
+ 'rule_name': 'generate_libs',
+ 'extension': 'def',
+ 'inputs': [
+ 'generate_libs.py',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/lib/<(RULE_INPUT_ROOT).lib',
+ ],
+ 'variables': {
+ 'def_files': [
+ 'avcodec-52.def',
+ 'avformat-52.def',
+ 'avutil-50.def',
+ ],
+ },
+ 'action': ['python', '<@(_inputs)', '-o', '<(PRODUCT_DIR)/lib', '<@(RULE_INPUT_PATH)'],
+ 'message': 'Generating import libraries',
+ },
+ ],
+ }],
+ ],
+ },
+ ],
+}
« no previous file with comments | « media/media.gyp ('k') | third_party/ffmpeg/ffmpeg.vcproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698