Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Unified Diff: content/common/BUILD.gn

Issue 601923005: Add libva generator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix dependencies Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/BUILD.gn
diff --git a/content/common/BUILD.gn b/content/common/BUILD.gn
index dc33507e483e6d3612f04119190a89a6e35e89ea..5c16e82ce4559e998656399ad439afcda74b7943 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",
+ ]
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698