Index: ui/snapshot/BUILD.gn |
diff --git a/ui/snapshot/BUILD.gn b/ui/snapshot/BUILD.gn |
index 4685e1b6844ea5e5c0509c7db496433780fab788..7e2c28806ef3d5221ffe3430ff04998931914d4b 100644 |
--- a/ui/snapshot/BUILD.gn |
+++ b/ui/snapshot/BUILD.gn |
@@ -16,14 +16,17 @@ component("snapshot") { |
"snapshot_async.cc", |
"snapshot_async.h", |
"snapshot_aura.cc", |
- "snapshot_export.h", |
+ "snapshot_aura.h", |
"snapshot_ios.mm", |
"snapshot_mac.mm", |
+ "snapshot_win.cc", |
] |
defines = [ "SNAPSHOT_IMPLEMENTATION" ] |
deps = [ |
+ ":snapshot_export", |
+ ":snapshot_win", |
"//base", |
"//skia", |
"//ui/base", |
@@ -58,7 +61,10 @@ component("snapshot") { |
"//ui/compositor", |
] |
} else { |
- sources -= [ "snapshot_aura.cc" ] |
+ sources -= [ |
+ "snapshot_aura.cc", |
+ "snapshot_aura.h", |
+ ] |
} |
if (is_mac) { |
@@ -69,6 +75,23 @@ component("snapshot") { |
} |
} |
+source_set("snapshot_win") { |
+ sources = [ |
+ "snapshot_win.h", |
+ ] |
+ deps = [ |
+ ":snapshot_export", |
+ ] |
+ visibility = [ ":*" ] |
+} |
+ |
+source_set("snapshot_export") { |
+ sources = [ |
+ "snapshot_export.h", |
+ ] |
+ visibility = [ ":*" ] |
+} |
+ |
test("snapshot_unittests") { |
sources = [ |
"snapshot_aura_unittest.cc", |