merge
This commit is contained in:
		
							
								
								
									
										18
									
								
								meson.build
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								meson.build
									
									
									
									
									
								
							| @ -86,7 +86,7 @@ wayland_cursor = dependency('wayland-cursor') | ||||
| wayland_protos = dependency('wayland-protocols') | ||||
| gtkmm = dependency('gtkmm-3.0', version : ['>=3.22.0']) | ||||
| dbusmenu_gtk = dependency('dbusmenu-gtk3-0.4', required: get_option('dbusmenu-gtk')) | ||||
| giounix = dependency('gio-unix-2.0', required: get_option('dbusmenu-gtk')) | ||||
| giounix = dependency('gio-unix-2.0', required: (get_option('dbusmenu-gtk').enabled() or get_option('logind').enabled())) | ||||
| jsoncpp = dependency('jsoncpp') | ||||
| sigcpp = dependency('sigc++-2.0') | ||||
| libepoll = dependency('epoll-shim', required: false) | ||||
| @ -150,6 +150,7 @@ src_files = files( | ||||
|     'src/bar.cpp', | ||||
|     'src/client.cpp', | ||||
|     'src/config.cpp', | ||||
|     'src/group.cpp', | ||||
|     'src/util/ustring_clen.cpp' | ||||
| ) | ||||
|  | ||||
| @ -177,6 +178,7 @@ endif | ||||
| add_project_arguments('-DHAVE_SWAY', language: 'cpp') | ||||
| src_files += [ | ||||
|     'src/modules/sway/ipc/client.cpp', | ||||
|     'src/modules/sway/bar.cpp', | ||||
|     'src/modules/sway/mode.cpp', | ||||
|     'src/modules/sway/language.cpp', | ||||
|     'src/modules/sway/window.cpp', | ||||
| @ -240,6 +242,11 @@ if libsndio.found() | ||||
|     src_files += 'src/modules/sndio.cpp' | ||||
| endif | ||||
|  | ||||
| if (giounix.found() and not get_option('logind').disabled()) | ||||
|     add_project_arguments('-DHAVE_GIO_UNIX', language: 'cpp') | ||||
|     src_files += 'src/modules/inhibitor.cpp' | ||||
| endif | ||||
|  | ||||
| if get_option('rfkill').enabled() | ||||
|     if is_linux | ||||
|         add_project_arguments('-DWANT_RFKILL', language: 'cpp') | ||||
| @ -257,6 +264,10 @@ else | ||||
|     src_files += 'src/modules/simpleclock.cpp' | ||||
| endif | ||||
|  | ||||
| if get_option('experimental') | ||||
|     add_project_arguments('-DUSE_EXPERIMENTAL', language: 'cpp') | ||||
| endif | ||||
|  | ||||
| subdir('protocol') | ||||
|  | ||||
| executable( | ||||
| @ -341,6 +352,10 @@ if scdoc.found() | ||||
|         'waybar-sndio.5.scd', | ||||
|     ] | ||||
|  | ||||
|     if (giounix.found() and not get_option('logind').disabled()) | ||||
|         man_files += 'waybar-inhibitor.5.scd' | ||||
|     endif | ||||
|  | ||||
|     foreach file : man_files | ||||
|         path = '@0@'.format(file) | ||||
|         basename = path.split('/')[-1] | ||||
| @ -383,3 +398,4 @@ if clangtidy.found() | ||||
|             '-p', meson.build_root() | ||||
|         ] + src_files) | ||||
| endif | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user