Skip to content

Commit e4cdb9e

Browse files
zhuyalianglukefromdc
authored andcommitted
Add meson compilation support
1 parent 41a0cad commit e4cdb9e

File tree

12 files changed

+583
-0
lines changed

12 files changed

+583
-0
lines changed

caja/meson.build

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
shared_module('caja-engrampa',
2+
sources : [
3+
'caja-engrampa.c',
4+
'engrampa-module.c'
5+
],
6+
dependencies : [
7+
libm_dep,
8+
thread_dep,
9+
glib_dep,
10+
gthread_dep,
11+
gtk_dep,
12+
libcaja_extension_dep,
13+
use_json_glib ? libjson_glib_dep : [],
14+
],
15+
include_directories : config_inc,
16+
c_args : c_args,
17+
install : true,
18+
install_dir : libcaja_extension_dep.get_pkgconfig_variable('extensiondir')
19+
)
20+
21+
desktop_data = configuration_data()
22+
desktop_data.set('VERSION', meson.project_version())
23+
desktop_data.set('PACKAGE_URL', 'https://mate-desktop.org')
24+
desktop_in_file = configure_file(
25+
input : 'libcaja-engrampa.caja-extension.desktop.in.in',
26+
output : 'libcaja-engrampa.caja-extension.desktop.in',
27+
configuration : desktop_data
28+
)
29+
30+
i18n.merge_file(
31+
input : desktop_in_file,
32+
output : 'libcaja-engrampa.caja-extension',
33+
type : 'desktop',
34+
po_dir : po_dir,
35+
install : true,
36+
install_dir : join_paths(datadir, 'caja', 'extensions')
37+
)

data/icons/meson.build

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
apps_icons = [
2+
['16x16', 'engrampa.png'],
3+
['22x22', 'engrampa.png'],
4+
['24x24', 'engrampa.png'],
5+
['32x32', 'engrampa.png'],
6+
]
7+
8+
actions_icons = [
9+
['16x16', 'add-folder-to-archive.png', 'extract-archive.png', 'add-files-to-archive.png'],
10+
['24x24', 'add-folder-to-archive.png', 'extract-archive.png', 'add-files-to-archive.png'],
11+
]
12+
13+
foreach icon: actions_icons
14+
install_data(
15+
join_paths(icon[0], 'actions', icon[1]),
16+
install_dir: join_paths(get_option('prefix'), 'share/icons', 'hicolor', icon[0], 'actions')
17+
)
18+
install_data(
19+
join_paths(icon[0], 'actions', icon[2]),
20+
install_dir: join_paths(get_option('prefix'), 'share/icons', 'hicolor', icon[0], 'actions')
21+
)
22+
install_data(
23+
join_paths(icon[0], 'actions', icon[3]),
24+
install_dir: join_paths(get_option('prefix'), 'share/icons', 'hicolor', icon[0], 'actions')
25+
)
26+
endforeach
27+
28+
foreach icon: apps_icons
29+
install_data(
30+
join_paths(icon[0], 'apps', icon[1]),
31+
install_dir: join_paths(get_option('prefix'), 'share/icons', 'hicolor', icon[0], 'apps')
32+
)
33+
endforeach
34+
35+
install_subdir('scalable', install_dir : join_paths(datadir, 'icons', 'hicolor'))

data/meson.build

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
po_dir = join_paths(meson.source_root(), 'po')
2+
man1_dir = join_paths(engrampa_mandir, 'man1')
3+
4+
schema_data = configuration_data()
5+
schema_data.set('GETTEXT_PACKAGE', meson.project_name())
6+
configure_file(
7+
input : 'org.mate.engrampa.gschema.xml.in',
8+
output : 'org.mate.engrampa.gschema.xml',
9+
configuration : schema_data,
10+
install : true,
11+
install_dir : join_paths(datadir, 'glib-2.0', 'schemas')
12+
)
13+
14+
install_data('packages.match',
15+
install_dir : join_paths(datadir, meson.project_name())
16+
)
17+
18+
install_data('engrampa.1',
19+
install_dir : man1_dir
20+
)
21+
22+
# .desktop file
23+
24+
desktop_data = configuration_data()
25+
desktop_data.set('VERSION', meson.project_version())
26+
desktop_in_file = configure_file(
27+
input : 'engrampa.desktop.in.in',
28+
output : 'engrampa.desktop.in',
29+
configuration : desktop_data
30+
)
31+
32+
i18n.merge_file(
33+
input : desktop_in_file,
34+
output : 'engrampa.desktop',
35+
type : 'desktop',
36+
po_dir : po_dir,
37+
install : true,
38+
install_dir : join_paths(datadir, 'applications')
39+
)
40+
41+
# .service files
42+
43+
service_data = configuration_data()
44+
service_data.set('libexecdir', join_paths(prefix, get_option('libexecdir')))
45+
46+
configure_file(
47+
input : 'org.mate.Engrampa.service.in',
48+
output : 'org.mate.Engrampa.service',
49+
configuration : service_data,
50+
install : true,
51+
install_dir : join_paths(datadir, 'dbus-1/services')
52+
)
53+
54+
# .appdata file
55+
56+
appdata_data = configuration_data()
57+
appdata_data.set('PACKAGE_URL', 'https://mate-desktop.org')
58+
appdata_in_file = configure_file(
59+
input : 'engrampa.appdata.xml.in.in',
60+
output : 'engrampa.appdata.xml.in',
61+
configuration : appdata_data
62+
)
63+
i18n.merge_file(
64+
input : appdata_in_file,
65+
output : 'engrampa.appdata.xml',
66+
type : 'xml',
67+
po_dir : po_dir,
68+
install : true,
69+
install_dir : join_paths(datadir, 'metainfo')
70+
)
71+
72+
# Subdirectories
73+
74+
subdir('icons')

help/LINGUAS

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
af
2+
am
3+
ar
4+
as
5+
ast
6+
az
7+
be
8+
bg
9+
bn
10+
bn_IN
11+
br
12+
bs
13+
ca
14+
ca@valencia
15+
cmn
16+
crh
17+
cs
18+
cy
19+
da
20+
de
21+
dz
22+
el
23+
en_AU
24+
en_CA
25+
en_GB
26+
eo
27+
es
28+
et
29+
eu
30+
fa
31+
fi
32+
fr
33+
ga
34+
gl
35+
gu
36+
he
37+
hi
38+
hr
39+
hu
40+
hy
41+
id
42+
is
43+
it
44+
ja
45+
ka
46+
kk
47+
kn
48+
ko
49+
ku
50+
ky
51+
li
52+
lt
53+
lv
54+
mai
55+
mg
56+
mk
57+
ml
58+
mn
59+
mr
60+
ms
61+
nb
62+
ne
63+
nl
64+
nn
65+
nso
66+
oc
67+
or
68+
pa
69+
pl
70+
pt
71+
pt_BR
72+
ro
73+
ru
74+
si
75+
sk
76+
sl
77+
sq
78+
sr
79+
sr@latin
80+
sv
81+
ta
82+
te
83+
th
84+
tk
85+
tr
86+
ug
87+
uk
88+
ur
89+
vi
90+
wa
91+
xh
92+
zh_CN
93+
zh_HK
94+
zh_TW
95+
zu

help/meson.build

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
gnome.yelp('engrampa',
2+
sources : [
3+
'index.docbook',
4+
'legal.xml',
5+
],
6+
media : [
7+
'figures/engrampa_home.png',
8+
'figures/engrampa_main_window.png',
9+
'figures/engrampa_rightarrow.png',
10+
'figures/engrampa_leftarrow.png',
11+
'figures/engrampa_uparrow.png'
12+
]
13+
)

0 commit comments

Comments
 (0)