| Index: media/gpu/BUILD.gn
|
| diff --git a/media/gpu/BUILD.gn b/media/gpu/BUILD.gn
|
| index 87592d7fada7e593347733bdf753972b2478cd60..0b9a9be4a227a83737f16d185ca05721aae4779d 100644
|
| --- a/media/gpu/BUILD.gn
|
| +++ b/media/gpu/BUILD.gn
|
| @@ -126,6 +126,13 @@ if (is_mac) {
|
| }
|
| }
|
|
|
| +config("gpu_config") {
|
| + defines = []
|
| + if (is_chromeos && use_v4lplugin) {
|
| + defines += [ "USE_LIBV4L2" ]
|
| + }
|
| +}
|
| +
|
| component("gpu") {
|
| output_name = "media_gpu"
|
|
|
| @@ -167,6 +174,8 @@ component("gpu") {
|
| libs = []
|
| ldflags = []
|
|
|
| + configs += [ ":gpu_config" ]
|
| +
|
| if (is_mac) {
|
| sources += [
|
| "vt_mac.h",
|
| @@ -235,7 +244,6 @@ component("gpu") {
|
| "vp9_picture.h",
|
| ]
|
| if (use_v4lplugin) {
|
| - defines += [ "USE_LIBV4L2" ]
|
| sources += get_target_outputs(":libv4l2_generate_stubs")
|
| deps += [ ":libv4l2_generate_stubs" ]
|
| }
|
|
|