Commit 024eab95 authored by Oscar Johansson's avatar Oscar Johansson Committed by Commit Bot

Enable jumbo for media/capture

Building //media takes around 23 CPU minutes. A experimental
branch showed that this could be reduced, by using jumbo,
to around 9 CPU minutes. media/capture is the fifth largest part
of media and takes around 2 CPU minutes to compile without
jumbo.

This commit enables jumbo for media/capture.

Bug: 867350
Change-Id: Ib53497ecde8a096b4436b4c60069e9e24e482a68
Reviewed-on: https://chromium-review.googlesource.com/1154922Reviewed-by: default avatarChrome Cunningham (In Paris) <chcunningham@chromium.org>
Commit-Queue: Chrome Cunningham (In Paris) <chcunningham@chromium.org>
Cr-Commit-Position: refs/heads/master@{#579745}
parent f016c04f
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
# found in the LICENSE file. # found in the LICENSE file.
import("//build/config/features.gni") import("//build/config/features.gni")
import("//build/config/jumbo.gni")
import("//media/media_options.gni") import("//media/media_options.gni")
import("//testing/test.gni") import("//testing/test.gni")
...@@ -17,7 +18,7 @@ group("capture") { ...@@ -17,7 +18,7 @@ group("capture") {
} }
# Things needed by //media/capture/mojom/video_capture_types.mojom. # Things needed by //media/capture/mojom/video_capture_types.mojom.
component("capture_base") { jumbo_component("capture_base") {
defines = [ "CAPTURE_IMPLEMENTATION" ] defines = [ "CAPTURE_IMPLEMENTATION" ]
sources = [ sources = [
"capture_export.h", "capture_export.h",
...@@ -37,7 +38,7 @@ component("capture_base") { ...@@ -37,7 +38,7 @@ component("capture_base") {
} }
# Target which allows breakout of Android BUILD.gn files. # Target which allows breakout of Android BUILD.gn files.
source_set("capture_device_specific") { jumbo_source_set("capture_device_specific") {
visibility = [ visibility = [
":capture_lib", ":capture_lib",
"//media/capture/content/android", "//media/capture/content/android",
...@@ -90,7 +91,7 @@ source_set("capture_device_specific") { ...@@ -90,7 +91,7 @@ source_set("capture_device_specific") {
] ]
} }
component("capture_lib") { jumbo_component("capture_lib") {
defines = [ "CAPTURE_IMPLEMENTATION" ] defines = [ "CAPTURE_IMPLEMENTATION" ]
sources = [ sources = [
"video/create_video_capture_device_factory.cc", "video/create_video_capture_device_factory.cc",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment