Viet-Trung Luu | 36627ff | 2015-05-11 12:36:47 -0700 | [diff] [blame] | 1 | # 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 | |
| 5 | import("//mojo/public/mojo_application.gni") |
| 6 | |
Viet-Trung Luu | 2f9c429 | 2015-05-11 16:10:17 -0700 | [diff] [blame] | 7 | mojo_native_application("moterm") { |
| 8 | sources = [ |
Jeff Brown | 5a846ea | 2016-01-26 15:53:07 -0800 | [diff] [blame] | 9 | "main.cc", |
| 10 | "moterm_app.cc", |
| 11 | "moterm_app.h", |
Viet-Trung Luu | 2f9c429 | 2015-05-11 16:10:17 -0700 | [diff] [blame] | 12 | "moterm_view.cc", |
| 13 | "moterm_view.h", |
| 14 | ] |
| 15 | |
| 16 | deps = [ |
| 17 | ":driver", |
Viet-Trung Luu | 2f9c429 | 2015-05-11 16:10:17 -0700 | [diff] [blame] | 18 | ":key_util", |
| 19 | ":model", |
| 20 | "//base", |
| 21 | "//mojo/application", |
| 22 | "//mojo/common", |
Jeff Brown | 5a846ea | 2016-01-26 15:53:07 -0800 | [diff] [blame] | 23 | "//mojo/public/c/gpu", |
Viet-Trung Luu | 2f9c429 | 2015-05-11 16:10:17 -0700 | [diff] [blame] | 24 | "//mojo/public/c/system", |
| 25 | "//mojo/public/cpp/application", |
| 26 | "//mojo/public/cpp/bindings", |
| 27 | "//mojo/public/cpp/bindings:callback", |
Viet-Trung Luu | 08e339a | 2015-10-10 01:03:09 -0700 | [diff] [blame] | 28 | "//mojo/services/files/interfaces", |
Jeff Brown | 5a846ea | 2016-01-26 15:53:07 -0800 | [diff] [blame] | 29 | "//mojo/services/geometry/interfaces", |
| 30 | "//mojo/services/gfx/composition/interfaces", |
Viet-Trung Luu | 0f4f3ba | 2015-10-10 01:08:40 -0700 | [diff] [blame] | 31 | "//mojo/services/terminal/interfaces", |
Jeff Brown | 5a846ea | 2016-01-26 15:53:07 -0800 | [diff] [blame] | 32 | "//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 Luu | 2f9c429 | 2015-05-11 16:10:17 -0700 | [diff] [blame] | 38 | "//skia", |
| 39 | "//third_party/dejavu-fonts-ttf-2.34:DejaVuSansMonoRegular", |
| 40 | ] |
| 41 | } |
| 42 | |
Viet-Trung Luu | c0b03df | 2015-05-11 13:51:55 -0700 | [diff] [blame] | 43 | source_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 Luu | 08e339a | 2015-10-10 01:03:09 -0700 | [diff] [blame] | 52 | "//mojo/services/files/interfaces", |
Viet-Trung Luu | c0b03df | 2015-05-11 13:51:55 -0700 | [diff] [blame] | 53 | ] |
| 54 | } |
| 55 | |
Viet-Trung Luu | c009573 | 2015-05-11 15:15:19 -0700 | [diff] [blame] | 56 | source_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 Luu | 84765c4 | 2015-10-10 01:07:51 -0700 | [diff] [blame] | 67 | "//mojo/services/input_events/interfaces", |
Viet-Trung Luu | c009573 | 2015-05-11 15:15:19 -0700 | [diff] [blame] | 68 | ] |
| 69 | } |
| 70 | |
Viet-Trung Luu | 36627ff | 2015-05-11 12:36:47 -0700 | [diff] [blame] | 71 | source_set("model") { |
| 72 | sources = [ |
| 73 | "moterm_model.cc", |
| 74 | "moterm_model.h", |
| 75 | ] |
| 76 | |
| 77 | deps = [ |
| 78 | "//third_party/libteken", |
| 79 | ] |
| 80 | |
Viet-Trung Luu | 36627ff | 2015-05-11 12:36:47 -0700 | [diff] [blame] | 81 | public_deps = [ |
| 82 | "//base", |
Petr Hosek | 0f5eace | 2015-10-20 19:57:02 -0700 | [diff] [blame] | 83 | "//third_party/libteken", |
Viet-Trung Luu | 36627ff | 2015-05-11 12:36:47 -0700 | [diff] [blame] | 84 | ] |
| 85 | } |
| 86 | |
| 87 | mojo_native_application("apptests") { |
| 88 | output_name = "moterm_apptests" |
| 89 | |
| 90 | testonly = true |
| 91 | |
| 92 | sources = [ |
Viet-Trung Luu | c009573 | 2015-05-11 15:15:19 -0700 | [diff] [blame] | 93 | "key_util_unittest.cc", |
Viet-Trung Luu | c0b03df | 2015-05-11 13:51:55 -0700 | [diff] [blame] | 94 | "moterm_driver_unittest.cc", |
Viet-Trung Luu | 36627ff | 2015-05-11 12:36:47 -0700 | [diff] [blame] | 95 | "moterm_model_unittest.cc", |
| 96 | ] |
| 97 | |
| 98 | deps = [ |
Viet-Trung Luu | c0b03df | 2015-05-11 13:51:55 -0700 | [diff] [blame] | 99 | ":driver", |
Viet-Trung Luu | c009573 | 2015-05-11 15:15:19 -0700 | [diff] [blame] | 100 | ":key_util", |
Viet-Trung Luu | 36627ff | 2015-05-11 12:36:47 -0700 | [diff] [blame] | 101 | ":model", |
| 102 | "//mojo/application", |
| 103 | "//mojo/application:test_support", |
Viet-Trung Luu | c0b03df | 2015-05-11 13:51:55 -0700 | [diff] [blame] | 104 | "//mojo/public/cpp/bindings:callback", |
Viet-Trung Luu | 36627ff | 2015-05-11 12:36:47 -0700 | [diff] [blame] | 105 | "//testing/gtest", |
| 106 | ] |
| 107 | } |