 Chromium Code Reviews
 Chromium Code Reviews Issue 2852663002:
  Reland of Enable GN check for webrtc/base  (Closed)
    
  
    Issue 2852663002:
  Reland of Enable GN check for webrtc/base  (Closed) 
  | OLD | NEW | 
|---|---|
| 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("../webrtc.gni") | 9 import("../webrtc.gni") | 
| 10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") | 
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 109 if (is_ios) { | 109 if (is_ios) { | 
| 110 bundle_data("test_support_unittests_bundle_data") { | 110 bundle_data("test_support_unittests_bundle_data") { | 
| 111 testonly = true | 111 testonly = true | 
| 112 sources = test_support_unittests_resources | 112 sources = test_support_unittests_resources | 
| 113 outputs = [ | 113 outputs = [ | 
| 114 "{{bundle_resources_dir}}/{{source_file_part}}", | 114 "{{bundle_resources_dir}}/{{source_file_part}}", | 
| 115 ] | 115 ] | 
| 116 } | 116 } | 
| 117 } | 117 } | 
| 118 | 118 | 
| 119 rtc_source_set("test_support") { | |
| 120 testonly = true | |
| 121 | |
| 122 sources = [ | |
| 123 "gmock.h", | |
| 124 "gtest.h", | |
| 125 "testsupport/packet_reader.cc", | |
| 126 "testsupport/packet_reader.h", | |
| 127 "testsupport/perf_test.cc", | |
| 128 "testsupport/perf_test.h", | |
| 129 "testsupport/trace_to_stderr.cc", | |
| 130 "testsupport/trace_to_stderr.h", | |
| 131 "testsupport/unittest_utils.h", | |
| 132 ] | |
| 133 | |
| 134 deps = [ | |
| 135 "..:webrtc_common", | |
| 136 "../base:gtest_prod", | |
| 137 "../base:rtc_base_approved", | |
| 138 "../common_video", | |
| 139 "../system_wrappers", | |
| 140 "//testing/gmock", | |
| 141 "//testing/gtest", | |
| 142 ] | |
| 143 | |
| 144 public_deps = [ | |
| 145 ":fileutils", | |
| 146 ] | |
| 147 | |
| 148 if (!build_with_chromium && is_clang) { | |
| 149 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | |
| 150 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | |
| 151 } | |
| 152 | |
| 153 if (is_android) { | |
| 154 deps += [ "//base:base" ] | |
| 155 } | |
| 156 | |
| 157 if (is_ios) { | |
| 158 deps += [ "//webrtc/sdk:rtc_sdk_common_objc" ] | |
| 
kjellander_webrtc
2017/04/28 08:56:48
You need to change this to be a relative path now,
 
mbonadei
2017/04/28 09:05:57
Thanks!
 | |
| 159 } | |
| 160 | |
| 161 if (rtc_use_memcheck) { | |
| 162 data = valgrind_webrtc_dependencies | |
| 163 } | |
| 164 } | |
| 165 | |
| 119 if (!build_with_chromium) { | 166 if (!build_with_chromium) { | 
| 120 # This target depends on //third_party/gflags and since chromium does not | 167 # This target depends on //third_party/gflags and since chromium does not | 
| 121 # have gflags it causes an error when Gn parses this BUILD.gn file. | 168 # have gflags it causes an error when Gn parses this BUILD.gn file. | 
| 122 # It seems that Gn eagerly tries to understand if all the targets are | 169 # It seems that Gn eagerly tries to understand if all the targets are | 
| 123 # buildable (even deps). Obviously gflags is not buildable in chromium | 170 # buildable (even deps). Obviously gflags is not buildable in chromium | 
| 124 # so if a target depends on this BUILD.gn file we hit this error. | 171 # so if a target depends on this BUILD.gn file we hit this error. | 
| 125 rtc_source_set("test_main") { | 172 rtc_source_set("test_main") { | 
| 126 testonly = true | 173 testonly = true | 
| 127 sources = [ | 174 sources = [ | 
| 128 "test_main.cc", | 175 "test_main.cc", | 
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 179 | 226 | 
| 180 if (is_ios) { | 227 if (is_ios) { | 
| 181 deps += [ "//webrtc/sdk:rtc_sdk_common_objc" ] | 228 deps += [ "//webrtc/sdk:rtc_sdk_common_objc" ] | 
| 182 } | 229 } | 
| 183 | 230 | 
| 184 if (rtc_use_memcheck) { | 231 if (rtc_use_memcheck) { | 
| 185 data = valgrind_webrtc_dependencies | 232 data = valgrind_webrtc_dependencies | 
| 186 } | 233 } | 
| 187 } | 234 } | 
| 188 | 235 | 
| 189 rtc_source_set("test_support") { | 236 rtc_source_set("test_support_isolated_output") { | 
| 190 testonly = true | 237 testonly = true | 
| 191 | |
| 192 sources = [ | 238 sources = [ | 
| 193 "gmock.h", | |
| 194 "gtest.h", | |
| 195 "testsupport/isolated_output.cc", | 239 "testsupport/isolated_output.cc", | 
| 196 "testsupport/isolated_output.h", | 240 "testsupport/isolated_output.h", | 
| 197 "testsupport/packet_reader.cc", | |
| 198 "testsupport/packet_reader.h", | |
| 199 "testsupport/perf_test.cc", | |
| 200 "testsupport/perf_test.h", | |
| 201 "testsupport/trace_to_stderr.cc", | |
| 202 "testsupport/trace_to_stderr.h", | |
| 203 "testsupport/unittest_utils.h", | |
| 204 ] | 241 ] | 
| 205 | |
| 206 deps = [ | 242 deps = [ | 
| 207 "../base:gtest_prod", | 243 ":fileutils", | 
| 208 "../base:rtc_base_approved", | 244 "../base:rtc_base_approved", | 
| 209 "../common_video", | |
| 210 "../system_wrappers", | |
| 211 "//testing/gmock", | |
| 212 "//testing/gtest", | |
| 213 "//third_party/gflags", | 245 "//third_party/gflags", | 
| 214 ] | 246 ] | 
| 215 | |
| 216 public_deps = [ | |
| 217 ":fileutils", | |
| 218 ] | |
| 219 | |
| 220 if (!build_with_chromium && is_clang) { | |
| 221 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | |
| 222 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | |
| 223 } | |
| 224 | |
| 225 if (is_android) { | |
| 226 deps += [ "//base:base" ] | |
| 227 } | |
| 228 | |
| 229 if (is_ios) { | |
| 230 deps += [ "//webrtc/sdk:rtc_sdk_common_objc" ] | |
| 231 } | |
| 232 | |
| 233 if (rtc_use_memcheck) { | |
| 234 data = valgrind_webrtc_dependencies | |
| 235 } | |
| 236 } | 247 } | 
| 237 | 248 | 
| 238 rtc_test("test_support_unittests") { | 249 rtc_test("test_support_unittests") { | 
| 239 deps = [] | 250 deps = [] | 
| 240 sources = [ | 251 sources = [ | 
| 241 "fake_audio_device_unittest.cc", | 252 "fake_audio_device_unittest.cc", | 
| 242 "fake_network_pipe_unittest.cc", | 253 "fake_network_pipe_unittest.cc", | 
| 243 "frame_generator_unittest.cc", | 254 "frame_generator_unittest.cc", | 
| 244 "rtp_file_reader_unittest.cc", | 255 "rtp_file_reader_unittest.cc", | 
| 245 "rtp_file_writer_unittest.cc", | 256 "rtp_file_writer_unittest.cc", | 
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 500 ] | 511 ] | 
| 501 } | 512 } | 
| 502 | 513 | 
| 503 rtc_source_set("audio_codec_mocks") { | 514 rtc_source_set("audio_codec_mocks") { | 
| 504 testonly = true | 515 testonly = true | 
| 505 sources = [ | 516 sources = [ | 
| 506 "mock_audio_decoder.h", | 517 "mock_audio_decoder.h", | 
| 507 "mock_audio_decoder_factory.h", | 518 "mock_audio_decoder_factory.h", | 
| 508 ] | 519 ] | 
| 509 } | 520 } | 
| OLD | NEW |