File: meson.build

package info (click to toggle)
vali 0.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 288 kB
  • sloc: ansic: 3,980; makefile: 3
file content (23 lines) | stat: -rw-r--r-- 715 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
test_gen = custom_target(
	'test_gen',
	command: [tool, 'generate', '--prefix=test', '@INPUT@', '@OUTPUT0@', '@OUTPUT1@'],
	input: 'test.varlink',
	output: ['test-gen.h', 'test-gen.c'],
)

test_basic = executable('basic', ['basic.c', test_gen], dependencies: vali)
test('basic', test_basic)

certification_gen = custom_target(
	'certification_gen',
	command: [tool, 'generate', '--prefix=cert', '@INPUT@', '@OUTPUT0@', '@OUTPUT1@'],
	input: 'org.varlink.certification.varlink',
	output: ['certification-gen.h', 'certification-gen.c'],
)

certification = executable(
	'certification',
	['certification.c', certification_gen],
	dependencies: [vali, jsonc],
)
test('certification', certification, args: ['self-test'])