Adam Barth | 8b335e3 | 2015-03-09 16:19:56 -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 | |
Kris Giesing | 2ccd493 | 2015-11-20 10:07:46 -0800 | [diff] [blame] | 5 | if (is_android) { |
| 6 | import("//build/config/android/config.gni") |
| 7 | import("//build/config/android/rules.gni") |
Adam Barth | 8b335e3 | 2015-03-09 16:19:56 -0700 | [diff] [blame] | 8 | |
Kris Giesing | 2ccd493 | 2015-11-20 10:07:46 -0800 | [diff] [blame] | 9 | android_library("keyboard") { |
| 10 | java_files = [ |
| 11 | "src/org/chromium/mojo/keyboard/InputConnectionAdaptor.java", |
| 12 | "src/org/chromium/mojo/keyboard/KeyboardServiceImpl.java", |
| 13 | "src/org/chromium/mojo/keyboard/KeyboardServiceState.java", |
| 14 | ] |
Adam Barth | 8b335e3 | 2015-03-09 16:19:56 -0700 | [diff] [blame] | 15 | |
Kris Giesing | 2ccd493 | 2015-11-20 10:07:46 -0800 | [diff] [blame] | 16 | deps = [ |
| 17 | "//mojo/public/java:bindings", |
| 18 | "//mojo/public/java:system", |
| 19 | "//mojo/services/keyboard/interfaces:interfaces_java", |
| 20 | ] |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | if (is_linux) { |
| 25 | import("//mojo/public/mojo_application.gni") |
| 26 | |
| 27 | mojo_native_application("keyboard") { |
| 28 | sources = [ |
| 29 | "linux/keyboard_service_impl.cc", |
| 30 | "linux/main.cc", |
| 31 | ] |
| 32 | |
| 33 | deps = [ |
| 34 | "//base", |
| 35 | "//mojo/application", |
| 36 | "//mojo/public/cpp/application", |
| 37 | "//mojo/public/cpp/bindings:callback", |
| 38 | "//mojo/public/cpp/system", |
| 39 | "//mojo/services/keyboard/interfaces", |
| 40 | "//mojo/services/native_viewport/interfaces", |
| 41 | "//mojo/services/native_viewport/cpp:args", |
| 42 | ] |
| 43 | } |
Adam Barth | 8b335e3 | 2015-03-09 16:19:56 -0700 | [diff] [blame] | 44 | } |