diff --git a/BUILD.gn b/BUILD.gn index 2011fc31871..68cd6c64d96 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -203,6 +203,10 @@ config("common_inherited_config") { if (is_ubsan) { cflags += [ "-fsanitize=float-cast-overflow" ] } + + if (!rtc_use_h265) { + defines += [ "DISABLE_H265" ] + } } # TODO(bugs.webrtc.org/9693): Remove the possibility to suppress this warning @@ -403,6 +407,10 @@ if (!build_with_chromium) { # Only the root target should depend on this. visibility = [ ".:default" ] + if (build_with_owt) { + visibility += [ "//talk/owt" ] + } + sources = [] complete_static_lib = true suppressed_configs += [ "//build/config/compiler:thin_archive" ]