summaryrefslogtreecommitdiffstats
path: root/third_party/ffmpeg/ffmpeg.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/ffmpeg/ffmpeg.gyp')
-rwxr-xr-xthird_party/ffmpeg/ffmpeg.gyp100
1 files changed, 100 insertions, 0 deletions
diff --git a/third_party/ffmpeg/ffmpeg.gyp b/third_party/ffmpeg/ffmpeg.gyp
new file mode 100755
index 0000000..583d820
--- /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',
+ },
+ ],
+ }],
+ ],
+ },
+ ],
+}