forked from cryptowyrm/copypastegrab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
39 lines (34 loc) · 1.08 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 name and programming language
project('com.github.cryptowyrm.copypastegrab', 'vala', 'c')
# Create a new executable, list the files we want to compile, list the dependencies we need, and install
executable(
meson.project_name(),
'src/Application.vala',
'src/DownloadRow.vala',
'src/VideoDownload.vala',
'src/VideoInfo.vala',
'src/ShellCommand.vala',
'src/Utility.vala',
'src/SettingsPopover.vala',
vala_args: [
'--pkg=posix'
],
dependencies: [
dependency('gtk+-3.0'),
dependency('granite'),
dependency('json-glib-1.0')
],
install: true
)
#Install our .desktop file so the Applications Menu will see it
install_data(
join_paths('data', meson.project_name() + '.desktop'),
install_dir: join_paths(get_option('datadir'), 'applications')
)
#Install our .appdata.xml file so AppCenter will see it
install_data(
join_paths('data', meson.project_name() + '.appdata.xml'),
install_dir: join_paths(get_option('datadir'), 'metainfo')
)
subdir('data')
meson.add_install_script('meson/post_install.py')