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 (33 lines) | stat: -rw-r--r-- 724 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
add_languages('cpp', native: false)

zypp_dep = dependency('libzypp', version: '>=17.36.4')

# define if libzypp returns package size in bytes
zypp_args = []
if zypp_dep.version().version_compare('>=11.4.0')
  zypp_args = ['-DZYPP_RETURN_BYTES=1']
endif

shared_module(
  'pk_backend_zypp',
  'pk-backend-zypp.cpp',
  include_directories: packagekit_src_include,
  dependencies: [
    packagekit_glib2_dep,
    zypp_dep,
    gmodule_dep,
  ],
  cpp_args: [
    '-DG_LOG_DOMAIN="PackageKit-Zypp"',
    '-Wall',
    '-Woverloaded-virtual',
    '-Wnon-virtual-dtor',
    '-Wno-error=deprecated-declarations',
    '-std=c++1z'
  ],
  c_args: [
    '-D_FILE_OFFSET_BITS=64',
  ],
  install: true,
  install_dir: pk_plugin_dir,
)