This moves some GN check configurations out of .gn to individual targets. This commit also removes the source file 'mocks/mock_rtp_rtcp.h' from the static_library 'rtp_rtcp' because it depends on a 'testonly = true' target. After a check this seems only included in the unitest code: $ grep -Rn "mocks/mock_rtp_rtcp.h" webrtc/modules/rtp_rtcp/ webrtc/modules/rtp_rtcp/source/ulpfec_receiver_unittest.cc:18:#include "webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h" webrtc/modules/rtp_rtcp/source/rtp_format_h264_unittest.cc:17:#include "webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h" This commit also removes the dependency on '//webrt/modules/video_coding' because it seems that the following include can be removed: #include "webrtc/modules/video_coding/include/video_coding_defines.h" The now checked target is: "//webrtc/modules/rtp_rtcp/*" BUG=webrtc:6828 NOTRY=True Review-Url: https://codereview.webrtc.org/2598963002 Cr-Commit-Position: refs/heads/master@{#15760}
51 lines
2.1 KiB
Plaintext
51 lines
2.1 KiB
Plaintext
# Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license
|
|
# that can be found in the LICENSE file in the root of the source
|
|
# tree. An additional intellectual property rights grant can be found
|
|
# in the file PATENTS. All contributing project authors may
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
import("//build/dotfile_settings.gni")
|
|
|
|
# The location of the build configuration file.
|
|
buildconfig = "//build/config/BUILDCONFIG.gn"
|
|
|
|
# The secondary source root is a parallel directory tree where
|
|
# GN build files are placed when they can not be placed directly
|
|
# in the source tree, e.g. for third party source trees.
|
|
secondary_source = "//build/secondary/"
|
|
|
|
# These are the targets to check headers for by default. The files in targets
|
|
# matching these patterns (see "gn help label_pattern" for format) will have
|
|
# their includes checked for proper dependencies when you run either
|
|
# "gn check" or "gn gen --check".
|
|
# TODO(kjellander): Keep adding paths to this list as work in webrtc:5589 is done.
|
|
check_targets = [
|
|
"//webrtc/api/*",
|
|
"//webrtc/audio/*",
|
|
"//webrtc/modules/audio_coding/*",
|
|
"//webrtc/modules/audio_conference_mixer/*",
|
|
"//webrtc/modules/audio_device/*",
|
|
"//webrtc/modules/audio_mixer/*",
|
|
"//webrtc/modules/audio_processing/*",
|
|
"//webrtc/modules/media_file/*",
|
|
"//webrtc/modules/pacing/*",
|
|
"//webrtc/modules/rtp_rtcp/*",
|
|
"//webrtc/modules/video_capture/*",
|
|
"//webrtc/modules/video_coding/*",
|
|
"//webrtc/stats:rtc_stats",
|
|
"//webrtc/voice_engine",
|
|
"//webrtc/voice_engine:level_indicator",
|
|
]
|
|
|
|
# These are the list of GN files that run exec_script. This whitelist exists
|
|
# to force additional review for new uses of exec_script, which is strongly
|
|
# discouraged except for gypi_to_gn calls.
|
|
exec_script_whitelist = build_dotfile_settings.exec_script_whitelist + [
|
|
"//third_party/boringssl/BUILD.gn",
|
|
"//third_party/openh264/BUILD.gn",
|
|
"//third_party/opus/BUILD.gn",
|
|
"//webrtc/modules/video_render/BUILD.gn",
|
|
]
|