~martijnbraam/thumbdrives

ref: 2024dbe250abc1533b29a0e9ce33ad7992ccf030 thumbdrives/src/meson.build -rw-r--r-- 1016 bytes
2024dbe2Martijn Braam Patched up desktop file 2 years 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
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
moduledir = join_paths(pkgdatadir, 'thumbdrives')
gnome = import('gnome')

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

python = import('python')

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

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

thumbdrives_sources = [
  '__init__.py',
  'main.py',
  'vdisk.py',
  'window.py',
]

install_data(thumbdrives_sources, install_dir: moduledir)
install_data('pk-thumbdrive-action.sh', install_dir: get_option('bindir'), install_mode: 'rwxr-xr-x', rename: ['pk-thumbdrive-action'])