blob: 8f2620aebe3f8ecf45a8cdb3a4ae47e041a75987 [file] [log] [blame]
James Robinson646469d2014-10-03 15:33:28 -07001# Copyright 2014 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
Colin Blundell517cff02015-03-23 12:00:07 +01005import("//build/module_args/mojo.gni")
Colin Blundell51218d52015-01-09 07:29:49 +01006import("$mojo_sdk_root/mojo/public/mojo_sdk.gni")
7
8mojo_sdk_source_set("cpp") {
9 restrict_external_deps = false
10 public_configs = [ "../../../public/build/config:mojo_services" ]
James Robinson646469d2014-10-03 15:33:28 -070011 sources = [
James Robinson646469d2014-10-03 15:33:28 -070012 "lib/view.cc",
13 "lib/view_manager_client_factory.cc",
14 "lib/view_manager_client_impl.cc",
15 "lib/view_manager_client_impl.h",
16 "lib/view_manager_context.cc",
17 "lib/view_observer.cc",
18 "lib/view_private.cc",
19 "lib/view_private.h",
20 "view.h",
21 "view_manager.h",
22 "view_manager_client_factory.h",
23 "view_manager_context.h",
Scott Violet6edabbf2015-02-25 16:02:50 -080024 "view_manager_delegate.cc",
James Robinson646469d2014-10-03 15:33:28 -070025 "view_manager_delegate.h",
26 "view_observer.h",
Elliot Glaysherca8bb9d2014-11-17 13:45:34 -080027 "view_property.h",
Elliot Glaysher28b50b92014-11-10 17:06:49 -080028 "view_tracker.cc",
29 "view_tracker.h",
James Robinson646469d2014-10-03 15:33:28 -070030 ]
31
32 public_deps = [
33 ":common",
James Robinson646469d2014-10-03 15:33:28 -070034 ]
Colin Blundell51218d52015-01-09 07:29:49 +010035
James Robinson646469d2014-10-03 15:33:28 -070036 deps = [
Colin Blundell51218d52015-01-09 07:29:49 +010037 "../interfaces",
Viet-Trung Luu84765c42015-10-10 01:07:51 -070038 "../../../geometry/interfaces",
39 "../../../input_events/interfaces",
Colin Blundell51218d52015-01-09 07:29:49 +010040 "../../../surfaces/public/interfaces:surface_id",
41 "../../../window_manager/public/interfaces",
James Robinson646469d2014-10-03 15:33:28 -070042 "//base",
Colin Blundell51218d52015-01-09 07:29:49 +010043 ]
44
45 mojo_sdk_deps = [
Colin Blundell51218d52015-01-09 07:29:49 +010046 "mojo/public/cpp/application",
47 "mojo/public/cpp/bindings:bindings",
James Robinson3aefd1b2015-02-10 17:11:46 -080048 "mojo/public/cpp/system",
Colin Blundell51218d52015-01-09 07:29:49 +010049 "mojo/public/interfaces/application",
James Robinson646469d2014-10-03 15:33:28 -070050 ]
51}
52
53source_set("common") {
Scott Violet28c4fd72015-04-15 11:01:05 -070054 configs += [ "../../../public/build/config:mojo_services" ]
55
James Robinson646469d2014-10-03 15:33:28 -070056 sources = [
Scott Violet28c4fd72015-04-15 11:01:05 -070057 "keys.cc",
58 "keys.h",
James Robinson646469d2014-10-03 15:33:28 -070059 "types.h",
60 ]
James Robinson646469d2014-10-03 15:33:28 -070061}