This repository has been archived by the owner on Sep 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
56 lines (48 loc) · 2.4 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
project('expidus-shell', 'vala', 'c', license: 'GPL-3.0-only', version: '0.1.0-prealpha')
gnome = import('gnome')
fs = import('fs')
vapi_dir = meson.current_source_dir() / 'vapi'
add_project_arguments(['--vapidir', vapi_dir], language: 'vala')
gtk = [dependency('gtk+-3.0'), dependency('gdk-x11-3.0')]
gio = dependency('gio-2.0')
deps = [
gtk, gio, dependency('libxfconf-0'),
dependency('gio-unix-2.0'),
dependency('accountsservice'),
dependency('libhandy-1'),
dependency('libpulse'), dependency('libpulse-mainloop-glib'),
dependency('libnm'),
dependency('libwnck-3.0'),
dependency('upower-glib'),
dependency('x11'),
meson.get_compiler('c').find_library('m', required: true)
]
# Shell executable
conf_data = configuration_data()
conf_data.set('PREFIX', get_option('prefix'))
conf_data.set('BINDIR', get_option('bindir'))
conf_data.set('LIBDIR', get_option('libdir'))
conf_data.set('LIBEXECDIR', get_option('libexecdir'))
conf_data.set('DATADIR', get_option('datadir'))
conf_data.set('EXPIDUS_SHELL_VERSION', meson.project_version())
configure_file(input: 'data/expidus-shell.desktop.in', output: 'expidus-shell.desktop', configuration: conf_data, install: true, install_dir: join_paths(get_option('datadir'), 'xsessions'))
shell_res = gnome.compile_resources('expidus-shell-resources', 'data/res/shell.gresource.xml',
source_dir: 'data/res',
c_name: 'expidus_shell')
shell_sources = []
add_project_arguments('-DWNCK_I_KNOW_THIS_IS_UNSTABLE=1', '-DXFCONF_G__ERROR=xfconf_get_error_quark()', language: 'c')
executable('expidus-shell', [shell_res, shell_sources,
'lib/logind.vala',
'src/list-models/apps.vala', 'src/list-models/notifications.vala',
'src/widgets/appboard.vala', 'src/widgets/apps.vala', 'src/widgets/base-panel.vala', 'src/widgets/dashboard.vala', 'src/widgets/desktop.vala', 'src/widgets/expidus-button.vala', 'src/widgets/indicators.vala',
'src/widgets/notifications.vala', 'src/widgets/panel.vala', 'src/widgets/side-panel.vala', 'src/widgets/startup-window.vala',
'src/main.vala', 'src/monitor.vala', 'src/notifications.vala', 'src/shell.vala', 'src/utils.vala', 'src/xfconf.vala', 'src/xsettings.vala'],
install: true,
dependencies: [deps])
# Wallpaper & more
install_subdir('data/wallpaper',
install_dir: join_paths(get_option('datadir'), 'backgrounds', 'expidus'),
strip_directory: true)
install_subdir('data/schemas/settings',
install_dir: gio.get_pkgconfig_variable('schemasdir'),
strip_directory: true)