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

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

Issue 2301053002: GN: Introduce templates. (Closed)
Patch Set: Rebase Created 4 years, 3 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') | webrtc/examples/BUILD.gn » ('j') | 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")
11 10
12 config("common_video_config") { 11 config("common_video_config") {
13 include_dirs = [ 12 include_dirs = [
14 "include", 13 "include",
15 "libyuv/include", 14 "libyuv/include",
16 ] 15 ]
17 } 16 }
18 17
19 source_set("common_video") { 18 rtc_source_set("common_video") {
20 sources = [ 19 sources = [
21 "bitrate_adjuster.cc", 20 "bitrate_adjuster.cc",
22 "h264/h264_common.cc", 21 "h264/h264_common.cc",
23 "h264/h264_common.h", 22 "h264/h264_common.h",
24 "h264/pps_parser.cc", 23 "h264/pps_parser.cc",
25 "h264/pps_parser.h", 24 "h264/pps_parser.h",
26 "h264/sps_parser.cc", 25 "h264/sps_parser.cc",
27 "h264/sps_parser.h", 26 "h264/sps_parser.h",
28 "h264/sps_vui_rewriter.cc", 27 "h264/sps_vui_rewriter.cc",
29 "h264/sps_vui_rewriter.h", 28 "h264/sps_vui_rewriter.h",
(...skipping 16 matching lines...) Expand all
46 45
47 configs += [ "..:common_config" ] 46 configs += [ "..:common_config" ]
48 public_configs = [ 47 public_configs = [
49 "..:common_inherited_config", 48 "..:common_inherited_config",
50 ":common_video_config", 49 ":common_video_config",
51 ] 50 ]
52 51
53 if (is_clang) { 52 if (is_clang) {
54 # Suppress warnings from Chrome's Clang plugins. 53 # Suppress warnings from Chrome's Clang plugins.
55 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 54 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
56 configs -= [ "//build/config/clang:find_bad_constructs" ] 55 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
57 } 56 }
58 57
59 deps = [ 58 deps = [
60 "..:webrtc_common", 59 "..:webrtc_common",
61 "../base:rtc_task_queue", 60 "../base:rtc_task_queue",
62 "../system_wrappers", 61 "../system_wrappers",
63 ] 62 ]
64 63
65 if (rtc_build_libyuv) { 64 if (rtc_build_libyuv) {
66 deps += [ "$rtc_libyuv_dir" ] 65 deps += [ "$rtc_libyuv_dir" ]
(...skipping 22 matching lines...) Expand all
89 if (is_ios) { 88 if (is_ios) {
90 bundle_data("common_video_unittests_bundle_data") { 89 bundle_data("common_video_unittests_bundle_data") {
91 testonly = true 90 testonly = true
92 sources = common_video_resources 91 sources = common_video_resources
93 outputs = [ 92 outputs = [
94 "{{bundle_resources_dir}}/{{source_file_part}}", 93 "{{bundle_resources_dir}}/{{source_file_part}}",
95 ] 94 ]
96 } 95 }
97 } 96 }
98 97
99 test("common_video_unittests") { 98 rtc_test("common_video_unittests") {
100 testonly = true 99 testonly = true
101 100
102 sources = [ 101 sources = [
103 "bitrate_adjuster_unittest.cc", 102 "bitrate_adjuster_unittest.cc",
104 "h264/pps_parser_unittest.cc", 103 "h264/pps_parser_unittest.cc",
105 "h264/sps_parser_unittest.cc", 104 "h264/sps_parser_unittest.cc",
106 "h264/sps_vui_rewriter_unittest.cc", 105 "h264/sps_vui_rewriter_unittest.cc",
107 "i420_buffer_pool_unittest.cc", 106 "i420_buffer_pool_unittest.cc",
108 "i420_video_frame_unittest.cc", 107 "i420_video_frame_unittest.cc",
109 "libyuv/libyuv_unittest.cc", 108 "libyuv/libyuv_unittest.cc",
110 ] 109 ]
111 110
112 configs += [ "..:common_config" ] 111 configs += [ "..:common_config" ]
113 public_configs = [ "..:common_inherited_config" ] 112 public_configs = [ "..:common_inherited_config" ]
114 113
115 # TODO(jschuh): Bug 1348: fix this warning. 114 # TODO(jschuh): Bug 1348: fix this warning.
116 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 115 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
117 116
118 if (is_clang) { 117 if (is_clang) {
119 # Suppress warnings from the Chromium Clang plugin. 118 # Suppress warnings from the Chromium Clang plugin.
120 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 119 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
121 configs -= [ "//build/config/clang:find_bad_constructs" ] 120 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
122 } 121 }
123 122
124 deps = [ 123 deps = [
125 ":common_video", 124 ":common_video",
126 "../system_wrappers:system_wrappers", 125 "../system_wrappers:system_wrappers",
127 "../test:test_support_main", 126 "../test:test_support_main",
128 "../test:video_test_common", 127 "../test:video_test_common",
129 "//testing/gmock", 128 "//testing/gmock",
130 "//testing/gtest", 129 "//testing/gtest",
131 ] 130 ]
132 131
133 if (is_android) { 132 if (is_android) {
134 deps += [ "//testing/android/native_test:native_test_support" ] 133 deps += [ "//testing/android/native_test:native_test_support" ]
135 data = common_video_resources 134 data = common_video_resources
136 shard_timeout = 900 135 shard_timeout = 900
137 } 136 }
138 137
139 if (is_ios) { 138 if (is_ios) {
140 deps += [ ":common_video_unittests_bundle_data" ] 139 deps += [ ":common_video_unittests_bundle_data" ]
141 } 140 }
142 } 141 }
143 } 142 }
OLDNEW
« no previous file with comments | « webrtc/common_audio/BUILD.gn ('k') | webrtc/examples/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698