summaryrefslogtreecommitdiffstats
path: root/test cases/common/164 dependency factory/meson.build
blob: 9488cd41af9fe21c7dae6751e5a8e2ac98dd54df (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
project('dependency factory', 'c', meson_version : '>=0.53')

dep = dependency('gl', method: 'pkg-config', required: false)
if dep.found()
  assert(dep.type_name() == 'pkgconfig')
  dep.get_pkgconfig_variable('prefix')
endif

dep = dependency('SDL2', method: 'pkg-config', required: false)
if dep.found()
  assert(dep.type_name() == 'pkgconfig')
  dep.get_pkgconfig_variable('prefix')
endif

dep = dependency('SDL2', method: 'config-tool', required: false)
if dep.found()
  assert(dep.type_name() == 'config-tool')
  dep.get_configtool_variable('prefix')
endif

dep = dependency('Vulkan', method: 'pkg-config', required: false)
if dep.found()
  assert(dep.type_name() == 'pkgconfig')
  dep.get_pkgconfig_variable('prefix')
endif

dep = dependency('pcap', method: 'pkg-config', required: false)
if dep.found()
  assert(dep.type_name() == 'pkgconfig')
  dep.get_pkgconfig_variable('prefix')
endif

dep = dependency('pcap', method: 'config-tool', required: false)
if dep.found()
  assert(dep.type_name() == 'config-tool')
  dep.get_configtool_variable('prefix')
endif

dep = dependency('cups', method: 'pkg-config', required: false)
if dep.found()
  assert(dep.type_name() == 'pkgconfig')
  dep.get_pkgconfig_variable('prefix')
endif

dep = dependency('cups', method: 'config-tool', required: false)
if dep.found()
  assert(dep.type_name() == 'config-tool')
  dep.get_configtool_variable('prefix')
endif

dep = dependency('libwmf', method: 'pkg-config', required: false)
if dep.found()
  assert(dep.type_name() == 'pkgconfig')
  dep.get_pkgconfig_variable('prefix')
endif

dep = dependency('libwmf', method: 'config-tool', required: false)
if dep.found()
  assert(dep.type_name() == 'config-tool')
  dep.get_configtool_variable('prefix')
endif

dep = dependency('boost', method: 'system', required: false)
if dep.found()
  assert(dep.type_name() == 'system')
endif