Chromium Code Reviews| Index: mojo/ui/BUILD.gn |
| diff --git a/mojo/ui/BUILD.gn b/mojo/ui/BUILD.gn |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3891dbfd311c544c2885bb63ca728e5f590676ce |
| --- /dev/null |
| +++ b/mojo/ui/BUILD.gn |
| @@ -0,0 +1,112 @@ |
| +# Copyright 2015 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("//mojo/public/mojo_application.gni") |
| + |
| +source_set("ui") { |
| + sources = [ |
| + "base_view.cc", |
| + "base_view.h", |
| + "choreographer.cc", |
| + "choreographer.h", |
| + "input_handler.cc", |
| + "input_handler.h", |
| + "view_provider_app.cc", |
| + "view_provider_app.h", |
| + ] |
| + |
| + deps = [ |
| + "//base", |
|
abarth
2016/01/10 23:23:39
The base dependency here is sad panda. That basic
jeffbrown
2016/01/26 07:25:15
I'll revisit this later. The SDK story as a whole
|
| + "//mojo/application", |
| + "//mojo/common", |
| + "//mojo/public/cpp/bindings", |
| + "//mojo/public/interfaces/application", |
| + "//mojo/services/gfx/composition/interfaces", |
| + "//mojo/services/ui/input/interfaces", |
| + "//mojo/services/ui/views/interfaces", |
| + ] |
| +} |
| + |
| +source_set("content") { |
| + sources = [ |
| + "content_viewer_app.cc", |
| + "content_viewer_app.h", |
| + ] |
| + |
| + deps = [ |
| + ":ui", |
| + "//base", |
| + "//mojo/application", |
| + "//mojo/common", |
| + "//mojo/public/cpp/bindings", |
| + "//mojo/services/content_handler/interfaces", |
| + "//mojo/services/ui/views/interfaces", |
| + ] |
| +} |
| + |
| +source_set("gl") { |
| + sources = [ |
| + "gl_renderer.cc", |
| + "gl_renderer.h", |
| + "gl_view.cc", |
| + "gl_view.h", |
| + ] |
| + |
| + deps = [ |
| + ":ui", |
| + "//base", |
| + "//mojo/application", |
| + "//mojo/common", |
| + "//mojo/gpu", |
| + "//mojo/public/cpp/bindings", |
| + "//mojo/services/gfx/composition/interfaces", |
| + "//mojo/services/ui/views/interfaces", |
| + ] |
| +} |
| + |
| +source_set("ganesh") { |
| + sources = [ |
| + "ganesh_renderer.cc", |
| + "ganesh_renderer.h", |
| + "ganesh_view.cc", |
| + "ganesh_view.h", |
| + ] |
| + |
| + deps = [ |
| + ":ui", |
| + ":gl", |
| + "//base", |
| + "//mojo/application", |
| + "//mojo/common", |
| + "//mojo/gpu", |
| + "//mojo/public/cpp/bindings", |
| + "//mojo/services/gfx/composition/interfaces", |
| + "//mojo/services/ui/views/interfaces", |
| + "//mojo/skia", |
| + "//skia", |
| + ] |
| +} |
| + |
| +mojo_native_application("unittests") { |
| + output_name = "ui_unittests" |
| + |
| + testonly = true |
| + |
| + sources = [ |
| + "gl_renderer_unittest.cc", |
| + ] |
| + |
| + deps = [ |
| + ":ui", |
| + ":gl", |
| + "//base", |
| + "//mojo/application", |
| + "//mojo/application:test_support", |
| + "//mojo/gpu", |
| + "//mojo/public/cpp/bindings:callback", |
| + "//mojo/services/geometry/interfaces", |
| + "//mojo/services/gfx/composition/interfaces", |
| + "//testing/gtest", |
| + ] |
| +} |