File: meson.build

package info (click to toggle)
libtypec 0.6.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 432 kB
  • sloc: ansic: 4,991; makefile: 4
file content (58 lines) | stat: -rw-r--r-- 1,439 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
57
58
project('libtypec_utils','c',
license: 'MIT',
version: '0.6.0',
default_options : [
	'warning_level=0'])

conf_data = configuration_data()
split = meson.project_version().split('.')
conf_data.set('libtypec_utils_VERSION_MAJOR', split[0])
conf_data.set('libtypec_utils_VERSION_MINOR', split[1])
conf_data.set('libtypec_utils_VERSION_PATCH', split[2])

configure_file(input : 'libtypec_utils_config.h.in', output : 'libtypec_utils_config.h', configuration : conf_data)

# Include current build dir for the above generated file
inc_dir = include_directories('.')

cc = meson.get_compiler('c')

dep = declare_dependency(
	dependencies : cc.find_library('typec')
)

udev_dep = meson.get_compiler('c').find_library('udev')
gtk3_dep = dependency('gtk+-3.0')

executable(
	'lstypec',
	'lstypec.c', 'names.c',
	dependencies: [dep, udev_dep],
	include_directories: inc_dir,
	install: true,
	install_dir: get_option('bindir')
)
executable(
	'typecstatus',
	'typecstatus.c', 'names.c',
	dependencies: [dep, udev_dep],
	include_directories: inc_dir,
	install: true,
	install_dir: get_option('bindir')
)
executable(
	'ucsicontrol',
	'ucsicontrol.c', 'names.c',
	dependencies: [dep, udev_dep],
	include_directories: inc_dir,
	install: true,
	install_dir: get_option('bindir')
)
executable(
	'usbcview',
	'usbcview.c', 'names.c',
	dependencies: [dep, gtk3_dep,udev_dep],
	include_directories: inc_dir,
	install: true,
	install_dir: get_option('bindir')
)