Now About Social Code
aboutsummaryrefslogtreecommitdiff
path: root/src/meson.build
blob: 081477cc8f384532bdc4175a7a05d3a9a5f89a56 (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
pkgdatadir = get_option('prefix') / get_option('datadir') / meson.project_name()
moduledir = pkgdatadir / 'weegtk'
gnome = import('gnome')

gnome.compile_resources('weegtk',
  'weegtk.gresource.xml',
  gresource_bundle: true,
  install: true,
  install_dir: pkgdatadir,
)

python = import('python')

conf = configuration_data()
conf.set('PYTHON', python.find_installation('python3').full_path())
conf.set('VERSION', meson.project_version())
conf.set('localedir', get_option('prefix') / get_option('localedir'))
conf.set('pkgdatadir', pkgdatadir)

configure_file(
  input: 'weegtk.in',
  output: 'weegtk',
  configuration: conf,
  install: true,
  install_dir: get_option('bindir'),
  install_mode: 'r-xr-xr-x'
)

weegtk_sources = [
  '__init__.py',
  'main.py',
  'window.py',
  'config.py',
  'chat.py',
  'message.py',
  'preferences.py',
  'welcome.py',
  'relay/network.py',
  'relay/protocol.py',
  'relay/color.py',
  'relay/netfile.py'
]

install_data(weegtk_sources, install_dir: moduledir)