meson.build 650 Bytes
Newer Older
Cédric Bellegarde's avatar
Cédric Bellegarde committed
1 2 3 4 5 6
extension_dir = join_paths(get_option('libdir'), 'eolie', 'webkitextension')

webkitextension = dependency('webkit2gtk-web-extension-4.0')
pyobject = dependency('pygobject-3.0')
python3 = dependency('python3')

7 8 9 10 11 12
pythonloader = configure_file(
  input: 'pythonloader.c.in',
  output: 'pythonloader.c',
  configuration: conf
)

Cédric Bellegarde's avatar
Cédric Bellegarde committed
13
shared_library('pythonloader',
14
               pythonloader,
Cédric Bellegarde's avatar
Cédric Bellegarde committed
15 16 17 18 19 20 21 22 23 24
               dependencies: [webkitextension, pyobject, python3],
               install: true,
               install_dir: extension_dir)

configure_file(
  input: 'extension.py.in',
  output: 'extension.py',
  configuration: conf,
  install_dir: extension_dir
)