Make castv2 performance test work.
[chromium-blink-merge.git] / ui / touch_selection / BUILD.gn
blobede552f9d3181d968df5d56f350308e86604fbf8
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")
6 import("//testing/test.gni")
8 if (is_android) {
9   import("//build/config/android/rules.gni")
12 component("touch_selection") {
13   output_name = "ui_touch_selection"
15   sources = [
16     "selection_event_type.h",
17     "touch_handle.cc",
18     "touch_handle.h",
19     "touch_handle_orientation.h",
20     "touch_selection_controller.cc",
21     "touch_selection_controller.h",
22     "ui_touch_selection_export.h",
23   ]
25   defines = [ "UI_TOUCH_SELECTION_IMPLEMENTATION" ]
27   deps = [
28     "//base:base",
29     "//ui/base:base",
30     "//ui/events:events",
31     "//ui/events:gesture_detection",
32     "//ui/gfx/geometry:geometry",
33   ]
36 test("ui_touch_selection_unittests") {
37   sources = [
38     "touch_handle_unittest.cc",
39     "touch_selection_controller_unittest.cc",
40   ]
42   deps = [
43     ":touch_selection",
44     "//base/test:run_all_unittests",
45     "//testing/gmock:gmock",
46     "//testing/gtest:gtest",
47     "//ui/base:base",
48     "//ui/events:test_support",
49     "//ui/gfx:gfx",
50     "//ui/gfx:test_support",
51   ]
54 if (is_android) {
55   java_cpp_enum("ui_touch_selection_enums_srcjar") {
56     sources = [
57       "selection_event_type.h",
58     ]
59     outputs = [
60       "org/chromium/ui/touch_selection/SelectionEventType.java",
61     ]
62   }
63   java_cpp_enum("ui_touch_handle_orientation_srcjar") {
64     sources = [
65       "touch_handle_orientation.h",
66     ]
67     outputs = [
68       "org/chromium/ui/touch_selection/TouchHandleOrientation.java",
69     ]
70   }