Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 import("//media/gpu/args.gni") | 7 import("//media/gpu/args.gni") |
| 8 import("//media/media_options.gni") | 8 import("//media/media_options.gni") |
| 9 import("//testing/test.gni") | 9 import("//testing/test.gni") |
| 10 | 10 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 119 "-s", | 119 "-s", |
| 120 stubs_filename_root, | 120 stubs_filename_root, |
| 121 "-p", | 121 "-p", |
| 122 "media/gpu", | 122 "media/gpu", |
| 123 ] | 123 ] |
| 124 | 124 |
| 125 args += rebase_path(sources, root_build_dir) | 125 args += rebase_path(sources, root_build_dir) |
| 126 } | 126 } |
| 127 } | 127 } |
| 128 | 128 |
| 129 config("gpu_config") { | |
| 130 defines = [] | |
| 131 if (is_chromeos && use_v4lplugin) { | |
| 132 defines += [ "USE_LIBV4L2" ] | |
| 133 } | |
| 134 } | |
| 135 | |
| 129 component("gpu") { | 136 component("gpu") { |
| 130 output_name = "media_gpu" | 137 output_name = "media_gpu" |
| 131 | 138 |
| 132 # Only local test code, GPU-related IPC code in the media layer, and | 139 # Only local test code, GPU-related IPC code in the media layer, and |
| 133 # media-related content code should access //media/gpu. | 140 # media-related content code should access //media/gpu. |
| 134 visibility = [ | 141 visibility = [ |
| 135 "//content/gpu:*", | 142 "//content/gpu:*", |
| 136 "//content/public/gpu:*", | 143 "//content/public/gpu:*", |
| 137 "//content/renderer:*", | 144 "//content/renderer:*", |
| 138 "//media/gpu/ipc/*", | 145 "//media/gpu/ipc/*", |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 160 "//ui/gfx/geometry", | 167 "//ui/gfx/geometry", |
| 161 ] | 168 ] |
| 162 deps = [ | 169 deps = [ |
| 163 "//ui/display/types", | 170 "//ui/display/types", |
| 164 "//ui/gl", | 171 "//ui/gl", |
| 165 "//ui/platform_window", | 172 "//ui/platform_window", |
| 166 ] | 173 ] |
| 167 libs = [] | 174 libs = [] |
| 168 ldflags = [] | 175 ldflags = [] |
| 169 | 176 |
| 177 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
| |
| 178 | |
| 170 if (is_mac) { | 179 if (is_mac) { |
| 171 sources += [ | 180 sources += [ |
| 172 "vt_mac.h", | 181 "vt_mac.h", |
| 173 "vt_video_decode_accelerator_mac.cc", | 182 "vt_video_decode_accelerator_mac.cc", |
| 174 "vt_video_decode_accelerator_mac.h", | 183 "vt_video_decode_accelerator_mac.h", |
| 175 "vt_video_encode_accelerator_mac.cc", | 184 "vt_video_encode_accelerator_mac.cc", |
| 176 "vt_video_encode_accelerator_mac.h", | 185 "vt_video_encode_accelerator_mac.h", |
| 177 ] + get_target_outputs(":libvt_generate_stubs") | 186 ] + get_target_outputs(":libvt_generate_stubs") |
| 178 deps += [ ":libvt_generate_stubs" ] | 187 deps += [ ":libvt_generate_stubs" ] |
| 179 lib_dirs = [ "$mac_sdk_path/usr/lib" ] | 188 lib_dirs = [ "$mac_sdk_path/usr/lib" ] |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 228 "vp8_decoder.cc", | 237 "vp8_decoder.cc", |
| 229 "vp8_decoder.h", | 238 "vp8_decoder.h", |
| 230 "vp8_picture.cc", | 239 "vp8_picture.cc", |
| 231 "vp8_picture.h", | 240 "vp8_picture.h", |
| 232 "vp9_decoder.cc", | 241 "vp9_decoder.cc", |
| 233 "vp9_decoder.h", | 242 "vp9_decoder.h", |
| 234 "vp9_picture.cc", | 243 "vp9_picture.cc", |
| 235 "vp9_picture.h", | 244 "vp9_picture.h", |
| 236 ] | 245 ] |
| 237 if (use_v4lplugin) { | 246 if (use_v4lplugin) { |
| 238 defines += [ "USE_LIBV4L2" ] | |
|
wuchengli
2016/05/05 14:44:05
FYI. all_dependent_configs applies the config to t
| |
| 239 sources += get_target_outputs(":libv4l2_generate_stubs") | 247 sources += get_target_outputs(":libv4l2_generate_stubs") |
| 240 deps += [ ":libv4l2_generate_stubs" ] | 248 deps += [ ":libv4l2_generate_stubs" ] |
| 241 } | 249 } |
| 242 if (use_v4l2_codec) { | 250 if (use_v4l2_codec) { |
| 243 defines += [ "USE_V4L2_CODEC" ] | 251 defines += [ "USE_V4L2_CODEC" ] |
| 244 deps += [ "//third_party/libyuv" ] | 252 deps += [ "//third_party/libyuv" ] |
| 245 sources += [ | 253 sources += [ |
| 246 "generic_v4l2_device.cc", | 254 "generic_v4l2_device.cc", |
| 247 "generic_v4l2_device.h", | 255 "generic_v4l2_device.h", |
| 248 "v4l2_device.cc", | 256 "v4l2_device.cc", |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 429 "video_encode_accelerator_unittest.cc", | 437 "video_encode_accelerator_unittest.cc", |
| 430 ] | 438 ] |
| 431 if (use_x11) { | 439 if (use_x11) { |
| 432 deps += [ "//ui/gfx/x" ] | 440 deps += [ "//ui/gfx/x" ] |
| 433 } | 441 } |
| 434 if (use_ozone) { | 442 if (use_ozone) { |
| 435 deps += [ "//ui/ozone" ] | 443 deps += [ "//ui/ozone" ] |
| 436 } | 444 } |
| 437 } | 445 } |
| 438 } | 446 } |
| OLD | NEW |