Commit f7571f31 authored by mukai's avatar mukai Committed by Commit bot

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}
parent 7d8a80f4
...@@ -7,6 +7,32 @@ import("//build/config/ui.gni") ...@@ -7,6 +7,32 @@ import("//build/config/ui.gni")
import("//content/common/common.gni") import("//content/common/common.gni")
import("//mojo/public/tools/bindings/mojom.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") { source_set("common") {
# Only the public target should depend on this. All other targets (even # Only the public target should depend on this. All other targets (even
# internal content ones) should depend on the public one. # internal content ones) should depend on the public one.
...@@ -228,7 +254,15 @@ source_set("common") { ...@@ -228,7 +254,15 @@ source_set("common") {
"gpu/media/vaapi_wrapper.cc", "gpu/media/vaapi_wrapper.cc",
"gpu/media/vaapi_wrapper.h", "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",
]
} }
} }
......
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