-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
59 lines (54 loc) · 2.01 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
57
58
59
# project name and programming language
project('com.github.candiedoperation.marquer', '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/MainWindow.vala',
'src/Widgets/LeftSelectDisk.vala',
'src/Widgets/LeftSelectDrive.vala',
'src/Widgets/LeftStartFlash.vala',
'src/Widgets/RightSelectDisk.vala',
'src/Widgets/RightSelectDrive.vala',
'src/Widgets/RightStartFlash.vala',
'src/Widgets/RightFlashingProgress.vala',
'src/Widgets/DriveListRowItem.vala',
'src/Widgets/StartFlashWarning.vala',
'src/Widgets/StartFlashWaiting.vala',
'src/Widgets/ISOChooser.vala',
'src/Utils/DriveManager.vala',
'src/Utils/VolatileDataStore.vala',
dependencies: [
dependency('gtk+-3.0'),
dependency('granite'),
dependency('libhandy-1'),
dependency('json-glib-1.0')
],
install: true
)
# Install our .desktop file so the Applications Menu will see it
install_data(
join_paths('data', 'marquer.desktop'),
install_dir: join_paths(get_option('datadir'), 'applications'),
rename: meson.project_name() + '.desktop'
)
# Install our .appdata.xml file so AppCenter will see it
install_data(
join_paths('data', 'marquer.appdata.xml'),
install_dir: join_paths(get_option('datadir'), 'metainfo'),
rename: meson.project_name() + '.appdata.xml'
)
# Install our icons in all the required sizes
#icon_sizes = ['16', '32', '48', '64', '128']
#foreach i : icon_sizes
# install_data(
# join_paths('data', i + '.svg'),
# install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', i + 'x' + i, 'apps'),
# rename: meson.project_name() + '.svg'
# )
# install_data(
# join_paths('data', i + '.svg'),
# install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', i + 'x' + i + '@2', 'apps'),
# rename: meson.project_name() + '.svg'
# )
#endforeach