@@ -140,6 +140,25 @@ config("common_inherited_config") {
140140 target_gen_dir ,
141141 ]
142142 }
143+ if (build_with_owt ) {
144+ include_dirs = [
145+ # The overrides must be included first as that is the mechanism for
146+ # selecting the override headers in Chromium.
147+ # "../webrtc_overrides",
148+
149+ # Allow includes to be prefixed with webrtc/ in case it is not an
150+ # immediate subdirectory of the top-level.
151+ " ." ,
152+
153+ # Just like the root WebRTC directory is added to include path, the
154+ # corresponding directory tree with generated files needs to be added too.
155+ # Note: this path does not change depending on the current target, e.g.
156+ # it is always "//gen/third_party/webrtc" when building with Chromium.
157+ # See also: http://cs.chromium.org/?q=%5C"default_include_dirs
158+ # https://gn.googlesource.com/gn/+/master/docs/reference.md#target_gen_dir
159+ target_gen_dir ,
160+ ]
161+ }
143162 if (is_posix || is_fuchsia ) {
144163 defines += [ " WEBRTC_POSIX" ]
145164 }
@@ -245,7 +264,7 @@ config("common_config") {
245264 defines += [ " WEBRTC_USE_H264" ]
246265 }
247266
248- if (build_with_chromium ) {
267+ if (build_with_chromium || build_with_owt ) {
249268 defines += [
250269 # NOTICE: Since common_inherited_config is used in public_configs for our
251270 # targets, there's no point including the defines in that config here.
@@ -382,7 +401,7 @@ if (!build_with_chromium) {
382401 # Target to build all the WebRTC production code.
383402 rtc_static_library (" webrtc" ) {
384403 # Only the root target should depend on this.
385- visibility = [ " // :default" ]
404+ visibility = [ " . :default" ]
386405
387406 sources = []
388407 complete_static_lib = true
0 commit comments