blob: 67db5d120956c48d3d49e18bebfa1d66093df016 [file] [log] [blame]
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +00001# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9{
10 'variables': {
11 'use_libjpeg_turbo%': '<(use_libjpeg_turbo)',
12 'conditions': [
13 ['use_libjpeg_turbo==1', {
14 'libjpeg_include_dir%': [ '<(DEPTH)/third_party/libjpeg_turbo', ],
15 }, {
16 'libjpeg_include_dir%': [ '<(DEPTH)/third_party/libjpeg', ],
17 }],
18 ],
19 },
20 'includes': ['../build/common.gypi'],
21 'targets': [
22 {
23 'target_name': 'common_video',
24 'type': 'static_library',
25 'include_dirs': [
26 '<(webrtc_root)/modules/interface/',
27 'interface',
28 'jpeg/include',
29 'libyuv/include',
30 ],
31 'direct_dependent_settings': {
32 'include_dirs': [
33 'interface',
34 'jpeg/include',
35 'libyuv/include',
36 ],
37 },
38 'conditions': [
39 ['build_libjpeg==1', {
40 'dependencies': ['<(libjpeg_gyp_path):libjpeg',],
41 }, {
42 # Need to add a directory normally exported by libjpeg.gyp.
43 'include_dirs': ['<(libjpeg_include_dir)'],
44 }],
45 ['build_libyuv==1', {
46 'dependencies': ['<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',],
47 }, {
48 # Need to add a directory normally exported by libyuv.gyp.
49 'include_dirs': ['<(libyuv_dir)/include',],
50 }],
51 ],
52 'sources': [
53 'interface/i420_video_frame.h',
54 'i420_video_frame.cc',
55 'jpeg/include/jpeg.h',
56 'jpeg/data_manager.cc',
57 'jpeg/data_manager.h',
58 'jpeg/jpeg.cc',
59 'libyuv/include/webrtc_libyuv.h',
60 'libyuv/include/scaler.h',
61 'libyuv/webrtc_libyuv.cc',
62 'libyuv/scaler.cc',
63 'plane.h',
64 'plane.cc',
65 ],
66 },
67 ], # targets
68 'conditions': [
69 ['include_tests==1', {
70 'targets': [
71 {
72 'target_name': 'common_video_unittests',
73 'type': 'executable',
74 'dependencies': [
75 'common_video',
76 '<(DEPTH)/testing/gtest.gyp:gtest',
77 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
78 '<(webrtc_root)/test/test.gyp:test_support_main',
79 ],
80 'sources': [
81 'i420_video_frame_unittest.cc',
82 'jpeg/jpeg_unittest.cc',
83 'libyuv/libyuv_unittest.cc',
84 'libyuv/scaler_unittest.cc',
85 'plane_unittest.cc',
86 ],
87 },
88 ], # targets
89 }], # include_tests
90 ],
91}