Make launcherSearchProvider API white-listed on stable and public on dev.
[chromium-blink-merge.git] / ui / touch_selection / BUILD.gn
blobc5bf894e7ecaf4887eea922f8b7bbd61e5e29bd2
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_drawable_aura.cc",
20     "touch_handle_drawable_aura.h",
21     "touch_handle_orientation.h",
22     "touch_selection_controller.cc",
23     "touch_selection_controller.h",
24     "ui_touch_selection_export.h",
25   ]
27   defines = [ "UI_TOUCH_SELECTION_IMPLEMENTATION" ]
29   deps = [
30     "//base:base",
31     "//ui/aura:aura",
32     "//ui/aura_extra:aura_extra",
33     "//ui/base:base",
34     "//ui/compositor:compositor",
35     "//ui/events:events",
36     "//ui/events:gesture_detection",
37     "//ui/gfx:gfx",
38     "//ui/gfx/geometry:geometry",
39   ]
41   if (!use_aura) {
42     deps -= [
43       "//ui/aura:aura",
44       "//ui/aura_extra:aura_extra",
45       "//ui/compositor:compositor",
46       "//ui/gfx:gfx",
47     ]
49     sources -= [
50       "touch_handle_drawable_aura.cc",
51       "touch_handle_drawable_aura.h",
52     ]
53   }
56 test("ui_touch_selection_unittests") {
57   sources = [
58     "touch_handle_unittest.cc",
59     "touch_selection_controller_unittest.cc",
60   ]
62   deps = [
63     ":touch_selection",
64     "//base/test:run_all_unittests",
65     "//testing/gmock:gmock",
66     "//testing/gtest:gtest",
67     "//ui/base:base",
68     "//ui/events:test_support",
69     "//ui/gfx:gfx",
70     "//ui/gfx:test_support",
71   ]
74 if (is_android) {
75   java_cpp_enum("ui_touch_selection_enums_srcjar") {
76     sources = [
77       "selection_event_type.h",
78     ]
79     outputs = [
80       "org/chromium/ui/touch_selection/SelectionEventType.java",
81     ]
82   }
83   java_cpp_enum("ui_touch_handle_orientation_srcjar") {
84     sources = [
85       "touch_handle_orientation.h",
86     ]
87     outputs = [
88       "org/chromium/ui/touch_selection/TouchHandleOrientation.java",
89     ]
90   }