summaryrefslogtreecommitdiff
path: root/src/plugins/pythonconsole/meson.build
blob: cf91c20d4a0dbe76ae18f19d9a2723fc0808a83e (plain)
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
plugin_name = 'pythonconsole'

plugin_dir = join_paths(totem_pluginsdir, plugin_name)

plugin_files = files(
  plugin_name + '.py',
  'console.py'
)

install_data(
  plugin_files,
  install_dir: plugin_dir
)

plugin_data = plugin_name + '.plugin'

custom_target(
  plugin_data,
  input: plugin_data + '.desktop.in',
  output: plugin_data,
  command: msgfmt_plugin_cmd,
  install: true,
  install_dir: plugin_dir
)

schema = 'org.gnome.totem.plugins.' + plugin_name + '.gschema.xml'

configure_file(
  input: schema + '.in',
  output: schema,
  install: true,
  install_dir: totem_schemadir,
  configuration: plugins_conf
)

install_data(
  plugin_name + '.convert',
  install_dir: join_paths(totem_datadir, 'GConf', 'gsettings')
)

if pylint.found()
  test('pylint-' + plugin_name,
       pylint,
       args: pylint_flags + files([ plugin_name + '.py', 'console.py' ]),
       timeout: 120)
endif