summaryrefslogtreecommitdiff
path: root/src/plugins/pythonconsole/meson.build
blob: 768cb0c782beeb799dec803ebea523152f1a556d (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
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 + '.in',
  output: plugin_data,
  command: intltool_desktop_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')
)

test('pylint-' + plugin_name, pylint, args: pylint_flags + [ plugin_name + '.py', 'console.py' ])