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

Unified Diff: media/base/win/BUILD.gn

Issue 2068763002: Re-Reland: Make media/capture gn and gyps produce components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable warning 4267 in Win capture.gyp (probs. lost in the previous relanding). Rebase Created 4 years, 6 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
Index: media/base/win/BUILD.gn
diff --git a/media/base/win/BUILD.gn b/media/base/win/BUILD.gn
index 49559bac0554417fca6368c7f1304e672c4ff5b1..a90f7c9499ef059b2e14c61236939390093ca5de 100644
--- a/media/base/win/BUILD.gn
+++ b/media/base/win/BUILD.gn
@@ -4,19 +4,32 @@
assert(is_win)
-source_set("win") {
+component("win") {
+ defines = [ "MF_INITIALIZER_IMPLEMENTATION" ]
set_sources_assignment_filter([])
sources = [
"mf_initializer.cc",
"mf_initializer.h",
+ "mf_initializer_export.h",
]
set_sources_assignment_filter(sources_assignment_filter)
configs += [
+ # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations.
+ "//build/config/compiler:no_size_t_to_int_warning",
"//media:media_config",
- "//media:media_implementation",
]
deps = [
"//base",
"//media:shared_memory_support",
]
+ libs = [
+ "mf.lib",
+ "mfplat.lib",
+ "mfreadwrite.lib",
+ ]
+ ldflags = [
+ "/DELAYLOAD:mf.dll",
+ "/DELAYLOAD:mfplat.dll",
+ "/DELAYLOAD:mfreadwrite.dll",
+ ]
}

Powered by Google App Engine
This is Rietveld 408576698