blob: 73b5dc9c267b00f94d277a48ba6b6f44fb11e0f4 [file] [log] [blame]
Viet-Trung Luu36627ff2015-05-11 12:36:47 -07001# Copyright 2015 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
5import("//mojo/public/mojo_application.gni")
6
Viet-Trung Luu2f9c4292015-05-11 16:10:17 -07007mojo_native_application("moterm") {
8 sources = [
Jeff Brown5a846ea2016-01-26 15:53:07 -08009 "main.cc",
10 "moterm_app.cc",
11 "moterm_app.h",
Viet-Trung Luu2f9c4292015-05-11 16:10:17 -070012 "moterm_view.cc",
13 "moterm_view.h",
14 ]
15
16 deps = [
17 ":driver",
Viet-Trung Luu2f9c4292015-05-11 16:10:17 -070018 ":key_util",
19 ":model",
20 "//base",
21 "//mojo/application",
22 "//mojo/common",
Jeff Brown5a846ea2016-01-26 15:53:07 -080023 "//mojo/public/c/gpu",
Viet-Trung Luu2f9c4292015-05-11 16:10:17 -070024 "//mojo/public/c/system",
25 "//mojo/public/cpp/application",
26 "//mojo/public/cpp/bindings",
27 "//mojo/public/cpp/bindings:callback",
Viet-Trung Luu08e339a2015-10-10 01:03:09 -070028 "//mojo/services/files/interfaces",
Jeff Brown5a846ea2016-01-26 15:53:07 -080029 "//mojo/services/geometry/interfaces",
30 "//mojo/services/gfx/composition/interfaces",
Viet-Trung Luu0f4f3ba2015-10-10 01:08:40 -070031 "//mojo/services/terminal/interfaces",
Jeff Brown5a846ea2016-01-26 15:53:07 -080032 "//mojo/services/ui/input/interfaces",
33 "//mojo/services/ui/views/interfaces",
34 "//mojo/skia",
35 "//mojo/ui",
36 "//mojo/ui:ganesh",
37 "//mojo/ui:gl",
Viet-Trung Luu2f9c4292015-05-11 16:10:17 -070038 "//skia",
39 "//third_party/dejavu-fonts-ttf-2.34:DejaVuSansMonoRegular",
40 ]
41}
42
Viet-Trung Luuc0b03df2015-05-11 13:51:55 -070043source_set("driver") {
44 sources = [
45 "moterm_driver.cc",
46 "moterm_driver.h",
47 ]
48
49 public_deps = [
50 "//base",
51 "//mojo/public/cpp/bindings",
Viet-Trung Luu08e339a2015-10-10 01:03:09 -070052 "//mojo/services/files/interfaces",
Viet-Trung Luuc0b03df2015-05-11 13:51:55 -070053 ]
54}
55
Viet-Trung Luuc0095732015-05-11 15:15:19 -070056source_set("key_util") {
57 sources = [
58 "key_util.cc",
59 "key_util.h",
60 ]
61
62 deps = [
63 "//base",
64 ]
65
66 public_deps = [
Viet-Trung Luu84765c42015-10-10 01:07:51 -070067 "//mojo/services/input_events/interfaces",
Viet-Trung Luuc0095732015-05-11 15:15:19 -070068 ]
69}
70
Viet-Trung Luu36627ff2015-05-11 12:36:47 -070071source_set("model") {
72 sources = [
73 "moterm_model.cc",
74 "moterm_model.h",
75 ]
76
77 deps = [
78 "//third_party/libteken",
79 ]
80
Viet-Trung Luu36627ff2015-05-11 12:36:47 -070081 public_deps = [
82 "//base",
Petr Hosek0f5eace2015-10-20 19:57:02 -070083 "//third_party/libteken",
Viet-Trung Luu36627ff2015-05-11 12:36:47 -070084 ]
85}
86
87mojo_native_application("apptests") {
88 output_name = "moterm_apptests"
89
90 testonly = true
91
92 sources = [
Viet-Trung Luuc0095732015-05-11 15:15:19 -070093 "key_util_unittest.cc",
Viet-Trung Luuc0b03df2015-05-11 13:51:55 -070094 "moterm_driver_unittest.cc",
Viet-Trung Luu36627ff2015-05-11 12:36:47 -070095 "moterm_model_unittest.cc",
96 ]
97
98 deps = [
Viet-Trung Luuc0b03df2015-05-11 13:51:55 -070099 ":driver",
Viet-Trung Luuc0095732015-05-11 15:15:19 -0700100 ":key_util",
Viet-Trung Luu36627ff2015-05-11 12:36:47 -0700101 ":model",
102 "//mojo/application",
103 "//mojo/application:test_support",
Viet-Trung Luuc0b03df2015-05-11 13:51:55 -0700104 "//mojo/public/cpp/bindings:callback",
Viet-Trung Luu36627ff2015-05-11 12:36:47 -0700105 "//testing/gtest",
106 ]
107}