Chromium Code Reviews| Index: media/gpu/BUILD.gn |
| diff --git a/media/gpu/BUILD.gn b/media/gpu/BUILD.gn |
| index 87592d7fada7e593347733bdf753972b2478cd60..6977de1d3a9fe3140dbf2c0a5e68f1b9f1444481 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 = [] |
| + all_dependent_configs = [ ":gpu_config" ] |
|
wuchengli
2016/05/05 14:44:05
FYI. All targets that transitively depend on the c
xhwang
2016/05/05 16:59:13
Will public_configs work for your use case? We try
kcwu
2016/05/05 17:17:12
content/common doesn't depend on media/gpu directl
|
| + |
| if (is_mac) { |
| sources += [ |
| "vt_mac.h", |
| @@ -235,7 +244,6 @@ component("gpu") { |
| "vp9_picture.h", |
| ] |
| if (use_v4lplugin) { |
| - defines += [ "USE_LIBV4L2" ] |
|
wuchengli
2016/05/05 14:44:05
FYI. all_dependent_configs applies the config to t
|
| sources += get_target_outputs(":libv4l2_generate_stubs") |
| deps += [ ":libv4l2_generate_stubs" ] |
| } |