diff options
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 50 |
1 files changed, 26 insertions, 24 deletions
diff --git a/meson.build b/meson.build index 0bd96a9..552f51e 100644 --- a/meson.build +++ b/meson.build @@ -362,50 +362,52 @@ executable('libinput-list-devices', install : true, ) -libinput_sources = [ 'tools/libinput-tool.c' ] - -executable('libinput', - libinput_sources, - dependencies : dep_libinput, - include_directories : include_directories ('src'), - install : true - ) -install_man('tools/libinput.1') - -ptraccel_debug_sources = [ 'tools/ptraccel-debug.c' ] -executable('ptraccel-debug', - ptraccel_debug_sources, - dependencies : [ dep_libfilter, dep_libinput ], - include_directories : include_directories('src'), - install : false - ) - -if get_option('event-gui') +if get_option('debug-gui') dep_gtk = dependency('gtk+-3.0') dep_cairo = dependency('cairo') dep_glib = dependency('glib-2.0') - event_gui_sources = [ 'tools/event-gui.c' ] + tools_shared_sources - deps_event_gui = [ + debug_gui_sources = [ 'tools/libinput-debug-gui.c' ] + tools_shared_sources + deps_debug_gui = [ dep_gtk, dep_cairo, dep_glib, dep_libevdev, dep_libinput ] - executable('event-gui', - event_gui_sources, - dependencies : deps_event_gui, + executable('libinput-debug-gui', + debug_gui_sources, + dependencies : deps_debug_gui, include_directories : include_directories('src'), + install_dir : libinput_tool_path, install : false ) + install_man('tools/libinput-debug-gui.1') endif install_man('tools/libinput-list-devices.1', 'tools/libinput-debug-events.1') +libinput_sources = [ 'tools/libinput-tool.c' ] + +executable('libinput', + libinput_sources, + dependencies : dep_libinput, + include_directories : include_directories ('src'), + install : true + ) +install_man('tools/libinput.1') + meson.add_install_script('tools/install-compat-scripts.sh') +ptraccel_debug_sources = [ 'tools/ptraccel-debug.c' ] +executable('ptraccel-debug', + ptraccel_debug_sources, + dependencies : [ dep_libfilter, dep_libinput ], + include_directories : include_directories('src'), + install : false + ) + ############ tests ############ if get_option('enable-tests') |