-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmeson.build
39 lines (29 loc) · 1.71 KB
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
project('wcm', 'c', 'cpp', version : '0.9.0', default_options : 'cpp_std=c++17')
add_global_arguments('-DWAYFIRE_CONFIG_FILE="' + get_option('wayfire_config_file_path') + '"', language : 'cpp')
add_global_arguments('-DWF_SHELL_CONFIG_FILE="' + get_option('wf_shell_config_file_path') + '"', language : 'cpp')
wayfire = dependency('wayfire', version: '>=0.9.0')
wf_shell = dependency('wf-shell', required : get_option('wf_shell'))
wayfire_metadata_dir = wayfire.get_variable(pkgconfig: 'metadatadir')
wayfire_sysconf_dir = wayfire.get_variable(pkgconfig: 'sysconfdir')
share_dir = join_paths(get_option('prefix'), 'share')
icon_dir = join_paths(share_dir, 'wayfire', 'icons')
add_global_arguments('-DWAYFIRE_METADATADIR="' + wayfire_metadata_dir + '"', language : 'cpp')
add_global_arguments('-DWAYFIRE_SYSCONFDIR="' + wayfire_sysconf_dir + '"', language : 'cpp')
if wf_shell.found()
wf_shell_metadata_dir = wf_shell.get_variable(pkgconfig: 'metadatadir')
wf_shell_sysconf_dir = wf_shell.get_variable(pkgconfig: 'sysconfdir')
add_project_arguments('-DHAVE_WFSHELL=1', language : 'cpp')
add_global_arguments('-DWFSHELL_METADATADIR="' + wf_shell_metadata_dir + '"', language : 'cpp')
add_global_arguments('-DWFSHELL_SYSCONFDIR="' + wf_shell_sysconf_dir + '"', language : 'cpp')
endif
add_global_arguments('-DICONDIR="' + icon_dir + '"', language : 'cpp')
dependency('pkg-config', required : true)
evdev = dependency('libevdev')
add_project_arguments('-DICONDIR="' + icon_dir + '"', language : 'cpp')
if get_option('enable_wdisplays') == true
wdisplays = subproject('wdisplays')
endif
subdir('icons')
subdir('proto')
subdir('src')
install_data('wayfire-config-manager.desktop', install_dir: join_paths(share_dir, 'applications'))