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 (53 lines) | stat: -rw-r--r-- 1,405 bytes parent folder | download | duplicates (2)
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
add_languages('cpp', native: false)

curl_dep = meson.get_compiler('c').find_library('curl')
bzip2_dep = dependency('bzip2')

packagekit_backend_slack_module = shared_module(
  'pk_backend_slack',
  'pk-backend-slack.cc',
  'utils.cc',
  'pkgtools.cc',
  'slackpkg.cc',
  'dl.cc',
  'job.cc',
  include_directories: packagekit_src_include,
  dependencies: [
    packagekit_glib2_dep,
    curl_dep,
    gmodule_dep,
	sqlite3_dep,
	bzip2_dep,
  ],
  cpp_args: [
    '-DG_LOG_DOMAIN="PackageKit-Slackware"',
    '-DLOCALSTATEDIR="@0@"'.format(join_paths(get_option('prefix'), get_option('localstatedir'))),
    '-DLIBDIR="@0@"'.format(join_paths(get_option('prefix'), get_option('libdir'))),
    '-DSYSCONFDIR="@0@"'.format(get_option('sysconfdir')),
  ],
  override_options: ['c_std=c14', 'cpp_std=c++14'],
  install: true,
  install_dir: pk_plugin_dir,
)

subdir('tests')

slackware_config_data = configuration_data()
if (target_machine.cpu_family() == 'x86_64')
  slackware_config_data.set('pkgmain', 'slackware64')
else
  slackware_config_data.set('pkgmain', 'slackware')
endif

configure_file(
  input: 'Slackware.conf.in',
  output: 'Slackware.conf',
  configuration: slackware_config_data,
  install: true,
  install_dir: join_paths(get_option('sysconfdir'), 'PackageKit'),
)

install_data(
  'metadata.db',
  install_dir: join_paths(get_option('localstatedir'), 'cache', 'PackageKit', 'metadata'),
)