build: Set required to true for libinput functions 65/325365/1
authorSeunghun Lee <shiin.lee@samsung.com>
Tue, 29 Apr 2025 09:04:27 +0000 (18:04 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Tue, 10 Jun 2025 00:44:49 +0000 (09:44 +0900)
Change-Id: I3302dda04e59c57041b6e130329ea5e5c3adde9d

meson.build

index 5beae6f024dc65b2c7d9e6b865936ddda24b0f7a..688d8039c5fe5fd6a2e6bc6d339ee0a053731cd1 100644 (file)
@@ -130,12 +130,8 @@ add_global_arguments(e_configflags, language: 'c')
 config_h.set('_GNU_SOURCE', '1')
 
 dep_libinput = dependency('libinput', required: true)
-if cpp.has_function('libinput_event_touch_get_major', dependencies: dep_libinput)
-  config_h.set('LIBINPUT_SUPPORT_EXTRA_TOUCH_EVENT', '1')
-endif
-if cpp.has_function('libinput_event_pointer_get_scroll_value_v120', dependencies: dep_libinput)
-  config_h.set('LIBINPUT_HAVE_SCROLL_VALUE_V120', '1')
-endif
+cpp.has_function('libinput_event_touch_get_major', dependencies: dep_libinput, required: true)
+cpp.has_function('libinput_event_pointer_get_scroll_value_v120', dependencies: dep_libinput, required: true)
 
 deps_cynara = []
 dep_cynara_client = dependency('cynara-client')