Skip direct map from apk check for Samsung Mega.
[chromium-blink-merge.git] / ui / touch_selection / BUILD.gn
blob3b477e481083ab21f168305823417fa8d9ec682a
1 # 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.
5 import("//build/config/ui.gni")
7 if (is_android) {
8   import("//build/config/android/rules.gni")
11 component("touch_selection") {
12   output_name = "ui_touch_selection"
14   sources = [
15     "selection_event_type.h",
16     "touch_handle.cc",
17     "touch_handle.h",
18     "touch_selection_controller.cc",
19     "touch_selection_controller.h",
20     "ui_touch_selection_export.h",
21   ]
23   defines = [ "UI_TOUCH_SELECTION_IMPLEMENTATION" ]
25   deps = [
26     "//base:base",
27     "//ui/base:base",
28     "//ui/events:events",
29     "//ui/events:gesture_detection",
30     "//ui/gfx/geometry:geometry",
31   ]
34 test("ui_touch_selection_unittests") {
35   sources = [
36     "touch_handle_unittest.cc",
37     "touch_selection_controller_unittest.cc",
38   ]
40   deps = [
41     ":touch_selection",
42     "//base/test:run_all_unittests",
43     "//testing/gtest:gtest",
44     "//ui/base:base",
45     "//ui/events:test_support",
46     "//ui/gfx:gfx",
47     "//ui/gfx:test_support",
48   ]
51 if (is_android) {
52   java_cpp_enum("ui_touch_selection_enums_srcjar") {
53     sources = [
54       "selection_event_type.h",
55     ]
56     outputs = [
57       "org/chromium/ui/touch_selection/SelectionEventType.java",
58     ]
59   }