~tristan957/tllt-cp

f418d8fe42a323d10651dc31e3abf284eff819a5 — Tristan Partin 1 year, 6 months ago 73fb3d2
Conditionally compile the tests
2 files changed, 6 insertions(+), 6 deletions(-)

M tests/driver/meson.build
M tests/meson.build
M tests/driver/meson.build => tests/driver/meson.build +2 -5
@@ 1,17 1,14 @@
c_args = [
	'-DTLLT_CP_COMPILATION',
	'-DTLLT_WITH_WIRINGPI',
]

dependencies = [
	libgio_dep,
	libtllt_dep,
	libwiringPi_dep,
]

if libwiringPi_dep.found()
	c_args += '-DTLLT_WITH_WIRINGPI'
	dependencies += libwiringPi_dep
endif

test_thermistor = executable(
	'test-thermistor',
	[

M tests/meson.build => tests/meson.build +4 -1
@@ 1,2 1,5 @@
subdir('driver')
if libwiringPi_dep.found() and get_option('with-wiringPi')
	subdir('driver')
endif

subdir('lib')