Skip to content

Commit

Permalink
Make building of examples and rtc_tools optional.
Browse files Browse the repository at this point in the history
If disabled, this allows running "gn gen <folder>" on a system without
GTK and other development libraries installed.

BUG=webrtc:5716

Change-Id: I1aee3d74402485113612276f6de374fb6034251f
Reviewed-on: https://webrtc-review.googlesource.com/30460
Reviewed-by: Patrik Höglund <[email protected]>
Commit-Queue: Joachim Bauch <[email protected]>
Cr-Commit-Position: refs/heads/master@{#21192}
  • Loading branch information
fancycode authored and Commit Bot committed Dec 10, 2017
1 parent f893c1d commit 93e9134
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 6 additions & 2 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@ if (!build_with_chromium) {
testonly = true
deps = [
":webrtc",
"examples",
"rtc_tools",
]
if (rtc_build_examples) {
deps += [ "examples" ]
}
if (rtc_build_tools) {
deps += [ "rtc_tools" ]
}
if (rtc_include_tests) {
deps += [
":rtc_unittests",
Expand Down
6 changes: 6 additions & 0 deletions webrtc.gni
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ declare_args() {
# Set this to disable building with support for SCTP data channels.
rtc_enable_sctp = true

# Set this to false to skip building examples.
rtc_build_examples = true

# Set this to false to skip building tools.
rtc_build_tools = true

# Disable these to not build components which can be externally provided.
rtc_build_json = true
rtc_build_libsrtp = true
Expand Down

0 comments on commit 93e9134

Please sign in to comment.