-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
56 lines (55 loc) · 1.49 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('com.github.eyelash.atom-gtk', 'vala', 'c', 'cpp')
executable(
meson.project_name(),
'src/application.vala',
'src/window.vala',
'src/notebook.vala',
'src/text-editor-container.vala',
'src/statusbar.vala',
'src/atom.vapi',
'src/text-editor-widget.cc',
import('gnome').compile_resources(
'data',
'data/gresource.xml',
dependencies: custom_target(
'one-dark',
input: 'data/one-dark.scss',
output: 'one-dark.css',
command: [find_program('sassc'), '@INPUT@', '@OUTPUT@']
),
source_dir: 'data',
),
include_directories: include_directories(
'src'
),
dependencies: [
subproject('atom-native').get_variable('atom_dep'),
dependency('gtk+-3.0'),
],
install: true,
)
configuration = {
'bindir': get_option('prefix') / get_option('bindir'),
}
install_data(
'data/com.github.eyelash.atom-gtk.desktop',
install_dir: get_option('datadir') / 'applications',
)
configure_file(
input: 'data/com.github.eyelash.atom-gtk.service.in',
output: 'com.github.eyelash.atom-gtk.service',
configuration: configuration,
install_dir: get_option('datadir') / 'dbus-1' / 'services',
)
install_data(
'data/com.github.eyelash.atom-gtk.svg',
install_dir: get_option('datadir') / 'icons' / 'hicolor' / 'scalable' / 'apps',
)
#install_data(
# 'data/com.github.eyelash.atom-gtk-symbolic.svg',
# install_dir: get_option('datadir') / 'icons' / 'hicolor' / 'symbolic' / 'apps',
#)
install_data(
'data/atom-gtk',
install_dir: get_option('bindir'),
)