summaryrefslogtreecommitdiff
path: root/src/backend/meson.build
blob: d83a41bf3af50221635b020d5b0f6c86cfd5d951 (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
45
46
47
48
api_version = '1.0'

px_backend_sources = [
  'px-manager.c',
  'px-manager.h',
  'px-plugin-config.c',
  'px-plugin-config.h',
  'px-plugin-pacrunner.c',
  'px-plugin-pacrunner.h',
  'px-plugin-download.c',
  'px-plugin-download.h',
]

px_backend_deps = [
  gio_dep,
  glib_dep,
  peas_dep,
]

px_backend_inc = include_directories('.')

px_backend_lib = shared_library(
  'pxbackend-@0@'.format(api_version),
  px_backend_sources,
  dependencies: px_backend_deps,
  install: true
)

gnome = import('gnome')
px_backend_gir = gnome.generate_gir(
  px_backend_lib,
  sources: px_backend_sources,
  nsversion: api_version,
  namespace: 'Px',
  symbol_prefix: 'px',
  identifier_prefix: 'Px',
  includes: [ 'Gio-2.0' ],
  install: false,
)

px_backend_dep = declare_dependency(
  include_directories: px_backend_inc,
  link_with: px_backend_lib,
  dependencies: px_backend_deps
)

subdir('dbus')
subdir('plugins')