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 = [ 23 "export_include", 24 ] 25 26 cflags = [ 27 ] 28} 29 30ohos_shared_library("libinput-third") { 31 sources = [ 32 "src/util-list.c", 33 "src/util-ratelimit.c", 34 "src/util-strings.c", 35 "src/util-prop-parsers.c", 36 "src/filter.c", 37 "src/filter-flat.c", 38 "src/filter-low-dpi.c", 39 "src/filter-mouse.c", 40 "src/filter-touchpad.c", 41 "src/filter-touchpad-flat.c", 42 "src/filter-touchpad-x230.c", 43 "src/filter-tablet.c", 44 "src/filter-trackpoint.c", 45 "src/quirks.c", 46 "src/libinput.c", 47 "src/evdev.c", 48 "src/evdev-debounce.c", 49 "src/evdev-fallback.c", 50 "src/evdev-totem.c", 51 "src/evdev-middle-button.c", 52 "src/evdev-mt-touchpad.c", 53 "src/evdev-mt-touchpad-tap.c", 54 "src/evdev-mt-touchpad-thumb.c", 55 "src/evdev-mt-touchpad-buttons.c", 56 "src/evdev-mt-touchpad-edge-scroll.c", 57 "src/evdev-mt-touchpad-gestures.c", 58 "src/evdev-tablet.c", 59 "src/evdev-tablet-pad.c", 60 "src/evdev-tablet-pad-leds.c", 61 "src/path-seat.c", 62 "src/udev-seat.c", 63 "src/timer.c", 64# "src/libinput-util.c", 65 ] 66 67 configs = [ 68 ":libinput-third_config", 69 ] 70 71 public_configs = [ 72 ":libinput-third_public_config", 73 ] 74 75 deps = [ 76 ] 77 78 public_deps = [ 79 "//third_party/libevdev:libevdev", 80 "//third_party/eudev:libudev", 81 "//third_party/mtdev:libmtdev", 82 ] 83 84 part_name = "multimodalinput_base" 85} 86## Build libinput-third.so }}} 87 88 89ohos_executable("libinput-debug") { 90 install_enable = true 91 92 sources = [ 93 "tools/shared.h", 94 "tools/shared.c", 95 "tools/libinput-debug-events.c", 96 ] 97 98 configs = [ 99 ":libinput-third_config", 100 ] 101 102 public_configs = [ 103 ":libinput-third_public_config", 104 ] 105 106 deps = [ 107 ":libinput-third", 108 ] 109 110 public_deps = [ 111 "//third_party/libevdev:libevdev", 112 "//third_party/eudev:libudev", 113 "//third_party/mtdev:libmtdev", 114 ] 115 116 part_name = "multimodalinput_base" 117} 118 119ohos_executable("libinput-list") { 120 install_enable = true 121 122 sources = [ 123 "tools/shared.h", 124 "tools/shared.c", 125 "tools/libinput-list-devices.c", 126 ] 127 128 configs = [ 129 ":libinput-third_config", 130 ] 131 132 public_configs = [ 133 ":libinput-third_public_config", 134 ] 135 136 deps = [ 137 ":libinput-third", 138 ] 139 140 public_deps = [ 141 "//third_party/libevdev:libevdev", 142 "//third_party/eudev:libudev", 143 "//third_party/mtdev:libmtdev", 144 ] 145 146 part_name = "multimodalinput_base" 147} 148 149ohos_executable("libinput-tablet") { 150 install_enable = true 151 152 sources = [ 153 "tools/shared.h", 154 "tools/shared.c", 155 "tools/libinput-debug-tablet.c", 156 ] 157 158 configs = [ 159 ":libinput-third_config", 160 ] 161 162 public_configs = [ 163 ":libinput-third_public_config", 164 ] 165 166 deps = [ 167 ":libinput-third", 168 ] 169 170 public_deps = [ 171 "//third_party/libevdev:libevdev", 172 "//third_party/eudev:libudev", 173 "//third_party/mtdev:libmtdev", 174 ] 175 176 part_name = "multimodalinput_base" 177}