File: meson.build

package info (click to toggle)
enter-tex 3.48.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,460 kB
  • sloc: ansic: 10,657; xml: 3,025; makefile: 8; sh: 7
file content (53 lines) | stat: -rw-r--r-- 1,563 bytes parent folder | download
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
app_id = 'org.gnome.enter_tex'

# Application data files
install_data(
  ['completion.xml',
   'latexhelp.html'],
)

# *.desktop file (not translated).
# TODO: find a way to translate the *.desktop file in a sane way. That is, by
# marking translatable strings as such (for example with an underscore). So
# *without* hacks like adding a comment for translators to say that "this
# translatable string must not be translated".
install_data(
  app_id + '.desktop',
  install_dir: get_option('datadir') / 'applications'
)

# AppStream metadata
# Not translated, same problem as for the *.desktop file.
# TODO: find a better way to translate this file.
install_data(
  app_id + '.metainfo.xml',
  install_dir: get_option('datadir') / 'metainfo'
)

# GSettings schema
gsettings_schema_config_data = configuration_data()
gsettings_schema_config_data.set('GETTEXT_PACKAGE', GETTEXT_PACKAGE_NAME)

configure_file(
  input: app_id + '.gschema.xml.in',
  output: app_id + '.gschema.xml',
  configuration: gsettings_schema_config_data,
  install_dir: get_option('datadir') / 'glib-2.0/schemas'
)

# D-Bus service file
dbus_service_config_data = configuration_data()
dbus_service_config_data.set('APP_ID', app_id)
dbus_service_config_data.set('EXECUTABLE_PATH',
  get_option('prefix') / get_option('bindir') / meson.project_name())

configure_file(
  input: app_id + '.service.in',
  output: app_id + '.service',
  configuration: dbus_service_config_data,
  install_dir: get_option('datadir') / 'dbus-1/services'
)

subdir('build_tools')
subdir('icons')
subdir('templates')