andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 1 | # 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 | { |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 10 | 'includes': ['../build/common.gypi'], |
| 11 | 'targets': [ |
| 12 | { |
| 13 | 'target_name': 'common_video', |
| 14 | 'type': 'static_library', |
| 15 | 'include_dirs': [ |
| 16 | '<(webrtc_root)/modules/interface/', |
| 17 | 'interface', |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 18 | 'libyuv/include', |
| 19 | ], |
mikhal@webrtc.org | 3bbed74 | 2012-10-24 18:33:04 +0000 | [diff] [blame] | 20 | 'dependencies': [ |
| 21 | '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', |
| 22 | ], |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 23 | 'direct_dependent_settings': { |
| 24 | 'include_dirs': [ |
| 25 | 'interface', |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 26 | 'libyuv/include', |
| 27 | ], |
| 28 | }, |
| 29 | 'conditions': [ |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 30 | ['build_libyuv==1', { |
| 31 | 'dependencies': ['<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',], |
| 32 | }, { |
| 33 | # Need to add a directory normally exported by libyuv.gyp. |
| 34 | 'include_dirs': ['<(libyuv_dir)/include',], |
| 35 | }], |
| 36 | ], |
| 37 | 'sources': [ |
| 38 | 'interface/i420_video_frame.h', |
wuchengli@chromium.org | c5e70b0 | 2013-08-13 05:53:38 +0000 | [diff] [blame] | 39 | 'interface/native_handle.h', |
wu@webrtc.org | ea7b33e | 2013-08-05 20:36:57 +0000 | [diff] [blame] | 40 | 'interface/texture_video_frame.h', |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 41 | 'i420_video_frame.cc', |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 42 | 'libyuv/include/webrtc_libyuv.h', |
| 43 | 'libyuv/include/scaler.h', |
| 44 | 'libyuv/webrtc_libyuv.cc', |
| 45 | 'libyuv/scaler.cc', |
| 46 | 'plane.h', |
| 47 | 'plane.cc', |
wu@webrtc.org | ea7b33e | 2013-08-05 20:36:57 +0000 | [diff] [blame] | 48 | 'texture_video_frame.cc' |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 49 | ], |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 50 | }, |
| 51 | ], # targets |
| 52 | 'conditions': [ |
| 53 | ['include_tests==1', { |
| 54 | 'targets': [ |
| 55 | { |
andresp@webrtc.org | 28631e7 | 2013-09-19 12:14:03 +0000 | [diff] [blame] | 56 | 'target_name': 'frame_generator', |
| 57 | 'type': 'static_library', |
| 58 | 'sources': [ |
| 59 | 'test/frame_generator.h', |
| 60 | 'test/frame_generator.cc', |
| 61 | ], |
| 62 | 'dependencies': [ |
| 63 | 'common_video', |
| 64 | ], |
| 65 | }, |
| 66 | { |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 67 | 'target_name': 'common_video_unittests', |
henrike@webrtc.org | acb00f5 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 68 | 'type': '<(gtest_target_type)', |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 69 | 'dependencies': [ |
| 70 | 'common_video', |
| 71 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 72 | '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', |
| 73 | '<(webrtc_root)/test/test.gyp:test_support_main', |
| 74 | ], |
| 75 | 'sources': [ |
| 76 | 'i420_video_frame_unittest.cc', |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 77 | 'libyuv/libyuv_unittest.cc', |
| 78 | 'libyuv/scaler_unittest.cc', |
| 79 | 'plane_unittest.cc', |
wu@webrtc.org | ea7b33e | 2013-08-05 20:36:57 +0000 | [diff] [blame] | 80 | 'texture_video_frame_unittest.cc' |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 81 | ], |
kjellander@webrtc.org | 1e7f77a | 2013-02-04 10:07:17 +0000 | [diff] [blame] | 82 | # Disable warnings to enable Win64 build, issue 1323. |
| 83 | 'msvs_disabled_warnings': [ |
| 84 | 4267, # size_t to int truncation. |
| 85 | ], |
henrike@webrtc.org | acb00f5 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 86 | 'conditions': [ |
| 87 | # TODO(henrike): remove build_with_chromium==1 when the bots are |
| 88 | # using Chromium's buildbots. |
| 89 | ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', { |
| 90 | 'dependencies': [ |
| 91 | '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', |
| 92 | ], |
| 93 | }], |
| 94 | ], |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 95 | }, |
| 96 | ], # targets |
henrike@webrtc.org | acb00f5 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 97 | 'conditions': [ |
| 98 | # TODO(henrike): remove build_with_chromium==1 when the bots are using |
| 99 | # Chromium's buildbots. |
| 100 | ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', { |
| 101 | 'targets': [ |
| 102 | { |
| 103 | 'target_name': 'common_video_unittests_apk_target', |
| 104 | 'type': 'none', |
| 105 | 'dependencies': [ |
| 106 | '<(apk_tests_path):common_video_unittests_apk', |
| 107 | ], |
| 108 | }, |
| 109 | ], |
| 110 | }], |
kjellander@webrtc.org | 3540c82 | 2013-08-22 07:57:00 +0000 | [diff] [blame] | 111 | ['test_isolation_mode != "noop"', { |
| 112 | 'targets': [ |
| 113 | { |
| 114 | 'target_name': 'common_video_unittests_run', |
| 115 | 'type': 'none', |
| 116 | 'dependencies': [ |
kjellander@webrtc.org | 3540c82 | 2013-08-22 07:57:00 +0000 | [diff] [blame] | 117 | 'common_video_unittests', |
| 118 | ], |
| 119 | 'includes': [ |
kjellander@webrtc.org | 22a2893 | 2013-10-02 19:31:16 +0000 | [diff] [blame] | 120 | '../build/isolate.gypi', |
kjellander@webrtc.org | 3540c82 | 2013-08-22 07:57:00 +0000 | [diff] [blame] | 121 | 'common_video_unittests.isolate', |
| 122 | ], |
| 123 | 'sources': [ |
| 124 | 'common_video_unittests.isolate', |
| 125 | ], |
| 126 | }, |
| 127 | ], |
| 128 | }], |
henrike@webrtc.org | acb00f5 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 129 | ], |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 130 | }], # include_tests |
| 131 | ], |
henrike@webrtc.org | acb00f5 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 132 | } |