forked from donadigo/appeditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
executable file
·71 lines (60 loc) · 1.6 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
60
61
62
63
64
65
66
67
68
69
70
71
project('com.github.donadigo.appeditor', ['vala', 'c'],
version: '1.1.1')
i18n = import('i18n')
gnome = import('gnome')
conf = configuration_data()
conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
configure_file(output: 'config.h', configuration: conf)
config_h_dir = include_directories('.')
c_args = [
'-include', 'config.h'
]
vala = meson.get_compiler('vala')
vala_flags = []
deps = [
dependency('granite'),
dependency('gtk+-3.0'),
dependency('gee-0.8'),
vala.find_library('posix')
]
if vala.version().version_compare('>= 0.40.0')
vala_flags += ['--define', 'HAS_VALA040']
endif
add_project_arguments(vala_flags, language: 'vala')
asresources = gnome.compile_resources(
'as-resources', 'data/' + meson.project_name() + '.gresource.xml',
source_dir: 'data',
c_name: 'as'
)
executable(
meson.project_name(),
'src/Application.vala',
'src/MainWindow.vala',
'src/AppSourceList.vala',
'src/AppItem.vala',
'src/CategoryItem.vala',
'src/IconButton.vala',
'src/SettingBox.vala',
'src/PersistentPlaceholderEntry.vala',
'src/FieldEntry.vala',
'src/CategoryComboBox.vala',
'src/AppInfoViewStack.vala',
'src/AppInfoView.vala',
'src/AppDirectoryScanner.vala',
'src/DesktopApp.vala',
'src/DesktopAppManager.vala',
'src/AppInfoViewSaver.vala',
'src/IconListBox.vala',
'src/IconChooserDialog.vala',
'src/IconRow.vala',
'src/Constants.vala',
asresources,
c_args: c_args,
dependencies: [
deps
],
install : true
)
meson.add_install_script('meson/post_install.py')
subdir('data')
subdir('po')