diff options
author | mukai <mukai@chromium.org> | 2014-09-30 12:19:10 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-30 19:19:26 +0000 |
commit | f7571f31090438a7f5474efcd1a72983b656e97b (patch) | |
tree | 02b866742a3e4e740c7defdb43b480c6fb57133c /content | |
parent | 7d8a80f4ac2bd828b190b146edcadfa1b61fa508 (diff) | |
download | chromium_src-f7571f31090438a7f5474efcd1a72983b656e97b.zip chromium_src-f7571f31090438a7f5474efcd1a72983b656e97b.tar.gz chromium_src-f7571f31090438a7f5474efcd1a72983b656e97b.tar.bz2 |
Add libva generator.
BUG=None
R=cmasone@chromium.org
TBR=jln@chromium.org
TEST=comparing generated libva files between gyp and gn
Review URL: https://codereview.chromium.org/601923005
Cr-Commit-Position: refs/heads/master@{#297477}
Diffstat (limited to 'content')
-rw-r--r-- | content/common/BUILD.gn | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/content/common/BUILD.gn b/content/common/BUILD.gn index dc33507..5c16e82 100644 --- a/content/common/BUILD.gn +++ b/content/common/BUILD.gn @@ -7,6 +7,32 @@ import("//build/config/ui.gni") import("//content/common/common.gni") import("//mojo/public/tools/bindings/mojom.gni") +if (is_chromeos && use_x11 && cpu_arch != "arm") { + action("libva_generate_stubs") { + extra_header = "gpu/media/va_stub_header.fragment" + + script = "../../tools/generate_stubs/generate_stubs.py" + sources = [ "gpu/media/va.sigs" ] + source_prereqs = [ extra_header ] + stubs_filename_root = "va_stubs" + + outputs = [ + "$target_gen_dir/gpu/media/$stubs_filename_root.cc", + "$target_gen_dir/gpu/media/$stubs_filename_root.h", + ] + args = [ + "-i", rebase_path("$target_gen_dir/gpu/media", root_build_dir), + "-o", rebase_path("$target_gen_dir/gpu/media", root_build_dir), + "-t", "posix_stubs", + "-e", rebase_path(extra_header, root_build_dir), + "-s", stubs_filename_root, + "-p", "content/common/gpu/media", + ] + + args += rebase_path(sources, root_build_dir) + } +} + source_set("common") { # Only the public target should depend on this. All other targets (even # internal content ones) should depend on the public one. @@ -228,7 +254,15 @@ source_set("common") { "gpu/media/vaapi_wrapper.cc", "gpu/media/vaapi_wrapper.h", ] - assert(false, "Implement generate_stubs for libva") + configs += [ + "//third_party/libva:libva_config", + "//third_party/libyuv:libyuv_config", + ] + deps += [ + ":libva_generate_stubs", + "//media", + "//third_party/libyuv", + ] } } |