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

Unified Diff: ui/snapshot/BUILD.gn

Issue 306113002: Add GN buildfiles for ui/compositor and snapshot. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no android Created 6 years, 7 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 | « ui/ozone/BUILD.gn ('k') | ui/surface/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/snapshot/BUILD.gn
diff --git a/ui/snapshot/BUILD.gn b/ui/snapshot/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..628812bde921b1131fdd977acb2d84c07db3445f
--- /dev/null
+++ b/ui/snapshot/BUILD.gn
@@ -0,0 +1,91 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/config/ui.gni")
+
+component("snapshot") {
+ sources = [
+ "snapshot.h",
+ "snapshot_android.cc",
+ "snapshot_async.cc",
+ "snapshot_async.h",
+ "snapshot_aura.cc",
+ "snapshot_export.h",
+ "snapshot_ios.mm",
+ "snapshot_mac.mm",
+ "snapshot_win.cc",
+ "snapshot_win.h",
+ ]
+
+ defines = [ "SNAPSHOT_IMPLEMENTATION" ]
+
+ deps = [
+ "//base",
+ "//skia",
+ "//ui/base",
+ "//ui/gfx",
+ "//ui/gfx/geometry",
+ ]
+
+ if (use_aura || is_android) {
+ deps += [
+ "//cc",
+ "//gpu/command_buffer/common",
+ ]
+ } else {
+ sources -= [
+ "snapshot_async.cc",
+ "snapshot_async.h",
+ ]
+ }
+
+ if (use_aura) {
+ deps += [
+ #"//ui/aura", TODO(GYP)
+ "//ui/compositor",
+ ]
+ }
+}
+
+# TODO(GYP) enable this when all targets are converted and it links
+#test("snapshot_unittests") {
+# sources = [
+# "snapshot_aura_unittest.cc",
+# "snapshot_mac_unittest.mm",
+# "test/run_all_unittests.cc",
+# ]
+#
+# deps = [
+# "//base",
+# "//base/allocator",
+# "//base/test:test_support",
+# "//skia",
+# "//testing/gtest",
+# "//ui/base",
+# "//ui/gfx",
+# "//ui/gfx/geometry",
+# ]
+#
+# if (use_aura) {
+# deps += [
+# #"//ui/aura:test_support", TODO(GYP)
+# "//ui/compositor",
+# "//ui/compositor:test_support",
+# ]
+# } else {
+# sources -= [ "snapshot_aura_unittest.cc" ]
+# }
+#}
+
+if (is_win) {
+ source_set("test_support") {
+ sources = [
+ "test/snapshot_desktop.h",
+ "test/snapshot_desktop_win.cc",
+ ]
+ deps = [
+ ":snapshot",
+ ]
+ }
+}
« no previous file with comments | « ui/ozone/BUILD.gn ('k') | ui/surface/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698