File: meson.build

package info (click to toggle)
packagekit 1.3.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,824 kB
  • sloc: ansic: 56,491; cpp: 15,652; xml: 5,532; python: 4,932; sh: 316; perl: 60; makefile: 56
file content (56 lines) | stat: -rw-r--r-- 1,418 bytes parent folder | download
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

add_languages('cpp', native: false)

dnf5_dep = dependency('libdnf5', version: '>=5.2.17.0')
libdnf5_version = dnf5_dep.version().split('.')

shared_module(
  'pk_backend_dnf5',
  'pk-backend-dnf5.cpp',
  'dnf5-backend-utils.cpp',
  'dnf5-backend-thread.cpp',
  'dnf5-backend-vendor-@0@.cpp'.format(get_option('dnf_vendor')),
  dependencies: [
    dnf5_dep,
    packagekit_glib2_dep,
  ],
  cpp_args: [
    '-std=c++20',
    '-DLIBDNF5_VERSION_MAJOR=' + libdnf5_version[0],
    '-DLIBDNF5_VERSION_MINOR=' + libdnf5_version[1],
    '-DLIBDNF5_VERSION_PATCH=' + libdnf5_version[2],
    '-DG_LOG_DOMAIN="PackageKit-DNF5"',
  ],
  include_directories: packagekit_src_include,
  install: true,
  install_dir: pk_plugin_dir,
)

# Build rpm plugin for notifying PackageKit
rpm_dep = dependency('rpm', version: '>=4.20')
sdbus_cpp_dep = dependency('sdbus-c++')
sdbus_cpp_version = sdbus_cpp_dep.version().split('.')

rpm_plugindir = rpm_dep.get_variable(pkgconfig: 'rpmplugindir')
rpm_macrosdir = rpm_dep.get_variable(pkgconfig: 'rpmhome') + '/macros.d'

shared_module(
  'notify_packagekit',
  'notify_packagekit.cpp',
  cpp_args: [
    '-std=c++20',
    '-DSDBUSCPP_VERSION_MAJOR=' + sdbus_cpp_version[0],
  ],
  dependencies: [
    rpm_dep,
    sdbus_cpp_dep,
  ],
  name_prefix: '',
  install: true,
  install_dir: rpm_plugindir,
)

install_data(
  'macros.transaction_notify_packagekit',
  install_dir: rpm_macrosdir,
)