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

Unified Diff: content/common/BUILD.gn

Issue 746003002: Enable webrtc and most of blink and content in the Mac GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « cc/blink/BUILD.gn ('k') | content/shell/BUILD.gn » ('j') | 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 de0194d60bd057a8b25ddc6afc401e075aa3e33d..dc930713ad2a755287644bc478a46201286061b1 100644
--- a/content/common/BUILD.gn
+++ b/content/common/BUILD.gn
@@ -33,6 +33,32 @@ if (is_chromeos && use_x11 && cpu_arch != "arm") {
}
}
+if (is_mac) {
+ action("libvt_generate_stubs") {
+ extra_header = "gpu/media/vt_stubs_header.fragment"
+
+ script = "../../tools/generate_stubs/generate_stubs.py"
+ sources = [ "gpu/media/vt.sig" ]
+ inputs = [ extra_header ]
+ stubs_filename_root = "vt_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.
@@ -115,12 +141,14 @@ source_set("common") {
sources += [
"gpu/client/gpu_memory_buffer_impl_io_surface.cc",
"gpu/client/gpu_memory_buffer_impl_io_surface.h",
- ]
+ ] + get_target_outputs(":libvt_generate_stubs")
+
sources -= [
"plugin_list_posix.cc",
]
deps += [
+ ":libvt_generate_stubs",
"//content/app/resources",
"//content:resources",
"//third_party/WebKit/public:resources",
« no previous file with comments | « cc/blink/BUILD.gn ('k') | content/shell/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698