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

Side by Side Diff: webrtc/common_video/BUILD.gn

Issue 2040073002: GN: Add common_audio_unittests and common_video_unittests (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « webrtc/common_audio/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 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 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 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 import("../build/webrtc.gni") 9 import("../build/webrtc.gni")
10 import("//testing/test.gni")
10 11
11 config("common_video_config") { 12 config("common_video_config") {
12 include_dirs = [ 13 include_dirs = [
13 "include", 14 "include",
14 "libyuv/include", 15 "libyuv/include",
15 ] 16 ]
16 } 17 }
17 18
18 source_set("common_video") { 19 source_set("common_video") {
19 sources = [ 20 sources = [
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 } 74 }
74 75
75 if (is_ios || is_mac) { 76 if (is_ios || is_mac) {
76 sources += [ 77 sources += [
77 "corevideo_frame_buffer.cc", 78 "corevideo_frame_buffer.cc",
78 "include/corevideo_frame_buffer.h", 79 "include/corevideo_frame_buffer.h",
79 ] 80 ]
80 libs = [ "CoreVideo.framework" ] 81 libs = [ "CoreVideo.framework" ]
81 } 82 }
82 } 83 }
84
85 if (rtc_include_tests) {
86 test("common_video_unittests") {
87 testonly = true
88
89 sources = [
90 "bitrate_adjuster_unittest.cc",
91 "h264/pps_parser_unittest.cc",
92 "h264/sps_parser_unittest.cc",
93 "h264/sps_vui_rewriter_unittest.cc",
94 "i420_buffer_pool_unittest.cc",
95 "i420_video_frame_unittest.cc",
96 "libyuv/libyuv_unittest.cc",
97 "libyuv/scaler_unittest.cc",
98 ]
99
100 configs += [ "..:common_config" ]
101 public_configs = [ "..:common_inherited_config" ]
102
103 # TODO(jschuh): Bug 1348: fix this warning.
104 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
105
106 if (is_clang) {
107 # Suppress warnings from the Chromium Clang plugin.
108 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
109 configs -= [ "//build/config/clang:find_bad_constructs" ]
110 }
111
112 deps = [
113 ":common_video",
114 "../system_wrappers:system_wrappers",
115 "../test:test_support_main",
116 "../test:video_test_common",
117 "//testing/gmock",
118 "//testing/gtest",
119 ]
120
121 if (is_android) {
122 deps += [ "//testing/android/native_test:native_test_support" ]
123
124 # This needs to be kept in sync with the .isolate file.
125 # TODO(kjellander); Move this to android_assets targets instead.
126 data = [
127 "//resources/foreman_cif.yuv",
128 ]
129 }
130 }
131 }
OLDNEW
« no previous file with comments | « webrtc/common_audio/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698