~fabrixxm/confy

ref: 0.6.0 confy/src/meson.build -rw-r--r-- 1.2 KiB
3659db31fabrixxm Confy 0.6.0 5 months ago
                                                                                
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
54
55
56
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
gnome = import('gnome')

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

python = import('python')
python3 = python.find_installation('python3')
pythondir = python3.get_install_dir()
moduledir = join_paths(pythondir, 'confy')

conf = configuration_data()
conf.set('PYTHON', python3.path())
conf.set('VERSION', meson.project_version())
conf.set('localedir', join_paths(get_option('prefix'), get_option('localedir')))
conf.set('pkgdatadir', pkgdatadir)
conf.set('pythondir', pythondir)

configure_file(
  input: 'confy.in',
  output: 'confy',
  configuration: conf,
  install: true,
  install_dir: get_option('bindir')
)

configure_file(
  input: 'config.py.in',
  output: 'config.py',
  configuration: conf,
  install: true,
  install_dir: moduledir
)

confy_sources = [
  '__init__.py',
  'main.py',
  'window.py',
  'widgets.py',
  'pages.py',
  'models.py',
  'local.py',
  'settings.py',
  'fetcher.py',
  'preferences.py',
]

install_data(confy_sources, install_dir: moduledir)

subdir('migrations')
subdir('remotes')