Skip to content

Commit 56539ee

Browse files
committed
v4l2: conditionnaly compile v4l2 test
1 parent a6f4c2c commit 56539ee

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/meson.build

+6-1
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,14 @@ if get_option('tests')
9292
['time-test', 'timetest.c'],
9393
['load-http-test', 'loadhttptest.c'],
9494
['cpp-test', 'cpp.cc'],
95-
['v4l2-test', 'v4l2test.c']
9695
]
9796

97+
if v4l2_dep.found()
98+
examples += [
99+
['v4l2-test', 'v4l2test.c'],
100+
]
101+
endif
102+
98103
if host_machine.system()=='linux'
99104
examples+=[['realtime-test','realtimetest.c']] # uses Linux RT API unavailable on other platforms
100105
endif

0 commit comments

Comments
 (0)