forked from xchan14/readdit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
85 lines (67 loc) · 2.42 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
project('com.github.xchan14.readdit', 'vala', 'c')
i18n = import('i18n')
gnome = import('gnome')
# Set our translation domain
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format (meson.project_name()), language:'c')
asresources = gnome.compile_resources(
'as-resources', 'data/' + meson.project_name() + '.gresource.xml',
source_dir: 'data',
c_name: 'as'
)
# Create excecutable.
executable(
meson.project_name(),
asresources,
'src/Action.vala',
'src/Application.vala',
'src/AppHeaderBar.vala',
'src/Dispatcher.vala',
'src/MainWindow.vala',
'src/DataStores/Parsers/CommentParser.vala',
'src/DataStores/PostStore.vala',
'src/DataStores/UserStore.vala',
'src/Posts/PostDetails/Comments/Comment.vala',
'src/Posts/PostDetails/Comments/CommentCollection.vala',
'src/Posts/PostDetails/Comments/CommentCollectionView.vala',
'src/Posts/PostDetails/Comments/CommentItemView.vala',
'src/Posts/PostDetails/Comments/LoadPostCommentsAction.vala',
'src/Posts/Post.vala',
'src/Posts/PostDetails/LoadPostDetailsImageAction.vala',
'src/Posts/PostDetails/NoSelectedPostDetailsView.vala',
'src/Posts/PostDetails/PostDetailsView.vala',
'src/Posts/PostList/LoadMorePostsAction.vala',
'src/Posts/PostList/LoadPostPreviewAction.vala',
'src/Posts/PostList/PostListView.vala',
'src/Posts/PostList/PostListItemView.vala',
'src/Posts/PostList/ViewPostAction.vala',
'src/Screens/PostScreen.vala',
'src/Users/User.vala',
'src/Utils/ImageUtils.vala',
dependencies: [
dependency('gtk+-3.0'),
dependency('granite'),
dependency('gee-0.8'),
dependency('libsoup-2.4'),
dependency('json-glib-1.0'),
dependency('gio-2.0')
],
install: true
)
#Translate and install our .desktop file
i18n.merge_file(
input: join_paths('data', meson.project_name() + '.desktop.in'),
output: meson.project_name() + '.desktop',
po_dir: join_paths(meson.source_root(), 'po'),
type: 'desktop',
install: true,
install_dir: join_paths(get_option('datadir'), 'applications')
)
#Translate and install our .appdata file
i18n.merge_file(
input: join_paths('data', meson.project_name() + '.appdata.xml.in'),
output: meson.project_name() + '.appdata.xml',
po_dir: join_paths(meson.source_root(), 'po'),
install: true,
install_dir: join_paths(get_option('datadir'), 'metainfo')
)
subdir('po')