• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import("//build/ohos.gni")
2
3## Build libinput-third.so {{{
4config("libinput-third_config") {
5  visibility = [ ":*" ]
6
7  include_dirs = [
8    "src",
9    "include",
10  ]
11
12  cflags = [
13    "-Wno-unused-parameter",
14    "-Wno-implicit-int",
15    "-Wno-return-type",
16    "-Wno-unused-function",
17    "-Wno-string-conversion",
18  ]
19}
20
21config("libinput-third_public_config") {
22  include_dirs = [ "export_include" ]
23
24  cflags = []
25}
26
27ohos_shared_library("libinput-third") {
28  sources = [
29    "src/evdev-debounce.c",
30    "src/evdev-fallback.c",
31    "src/evdev-middle-button.c",
32    "src/evdev-mt-touchpad-buttons.c",
33    "src/evdev-mt-touchpad-edge-scroll.c",
34    "src/evdev-mt-touchpad-gestures.c",
35    "src/evdev-mt-touchpad-tap.c",
36    "src/evdev-mt-touchpad-thumb.c",
37    "src/evdev-mt-touchpad.c",
38    "src/evdev-tablet-pad-leds.c",
39    "src/evdev-tablet-pad.c",
40    "src/evdev-tablet.c",
41    "src/evdev-totem.c",
42    "src/evdev.c",
43    "src/filter-flat.c",
44    "src/filter-low-dpi.c",
45    "src/filter-mouse.c",
46    "src/filter-tablet.c",
47    "src/filter-touchpad-flat.c",
48    "src/filter-touchpad-x230.c",
49    "src/filter-touchpad.c",
50    "src/filter-trackpoint.c",
51    "src/filter.c",
52    "src/libinput.c",
53    "src/path-seat.c",
54    "src/quirks.c",
55    "src/timer.c",
56    "src/udev-seat.c",
57    "src/util-list.c",
58    "src/util-prop-parsers.c",
59    "src/util-ratelimit.c",
60    "src/util-strings.c",
61
62    #    "src/libinput-util.c",
63  ]
64
65  configs = [ ":libinput-third_config" ]
66
67  public_configs = [ ":libinput-third_public_config" ]
68
69  deps = []
70
71  public_deps = [
72    "//third_party/eudev:libudev",
73    "//third_party/libevdev:libevdev",
74    "//third_party/mtdev:libmtdev",
75  ]
76
77  part_name = "libinput"
78}
79
80## Build libinput-third.so }}}
81
82ohos_executable("libinput-debug") {
83  install_enable = true
84
85  sources = [
86    "tools/libinput-debug-events.c",
87    "tools/shared.c",
88    "tools/shared.h",
89  ]
90
91  configs = [ ":libinput-third_config" ]
92
93  public_configs = [ ":libinput-third_public_config" ]
94
95  deps = [ ":libinput-third" ]
96
97  public_deps = [
98    "//third_party/eudev:libudev",
99    "//third_party/libevdev:libevdev",
100    "//third_party/mtdev:libmtdev",
101  ]
102
103  part_name = "libinput"
104}
105
106ohos_executable("libinput-list") {
107  install_enable = true
108
109  sources = [
110    "tools/libinput-list-devices.c",
111    "tools/shared.c",
112    "tools/shared.h",
113  ]
114
115  configs = [ ":libinput-third_config" ]
116
117  public_configs = [ ":libinput-third_public_config" ]
118
119  deps = [ ":libinput-third" ]
120
121  public_deps = [
122    "//third_party/eudev:libudev",
123    "//third_party/libevdev:libevdev",
124    "//third_party/mtdev:libmtdev",
125  ]
126
127  part_name = "libinput"
128}
129
130ohos_executable("libinput-tablet") {
131  install_enable = true
132
133  sources = [
134    "tools/libinput-debug-tablet.c",
135    "tools/shared.c",
136    "tools/shared.h",
137  ]
138
139  configs = [ ":libinput-third_config" ]
140
141  public_configs = [ ":libinput-third_public_config" ]
142
143  deps = [ ":libinput-third" ]
144
145  public_deps = [
146    "//third_party/eudev:libudev",
147    "//third_party/libevdev:libevdev",
148    "//third_party/mtdev:libmtdev",
149  ]
150
151  part_name = "libinput"
152}
153