summaryrefslogtreecommitdiffstats
path: root/ui/platform_window/android/BUILD.gn
blob: 6082f103040a14214bb3fba67974ee0d42621b42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# 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("//build/config/android/rules.gni")
import("//testing/test.gni")

assert(is_android)

component("android") {
  output_name = "android_window"
  sources = [
    "platform_ime_controller_android.cc",
    "platform_ime_controller_android.h",
    "platform_window_android.cc",
    "platform_window_android.h",
  ]

  defines = [ "ANDROID_WINDOW_IMPLEMENTATION" ]

  deps = [
    "//base",
    "//skia",
    "//ui/events:events_base",
    "//ui/gfx",
    "//ui/gfx/geometry",
    ":jni_headers",
    ":platform_window_java",
  ]
}

generate_jni("jni_headers") {
  sources = [
    "java/src/org/chromium/ui/PlatformImeControllerAndroid.java",
    "java/src/org/chromium/ui/PlatformWindowAndroid.java",
  ]
  jni_package = "android_window"
}

android_library("platform_window_java") {
  java_files = [
    "java/src/org/chromium/ui/PlatformImeControllerAndroid.java",
    "java/src/org/chromium/ui/PlatformWindowAndroid.java",
  ]
  deps = [
    "//base:base_java",
  ]
}