pre_args += '-DHAVE_GALLIUM_EXTRA_HUD=1'
endif
+_sensors = get_option('lmsensors')
+if _sensors != 'false'
+ dep_lmsensors = cc.find_library('libsensors', required : _sensors == 'true')
+ if dep_lmsensors.found()
+ pre_args += '-DHAVE_LIBSENSORS=1'
+ endif
+else
+ dep_lmsensors = []
+endif
+
+
# TODO: nine
# TODO: clover
choices : ['auto', 'true', 'false'],
description : 'Use libunwind for stack-traces'
)
+option(
+ 'lmsensors',
+ type : 'combo',
+ value : 'auto',
+ choices : ['auto', 'true', 'false'],
+ description : 'Enable HUD lmsensors support.'
+)
option(
'build-tests',
type : 'boolean',
'etnaviv_compiler_cmdline.c',
include_directories : [inc_include, inc_src, inc_gallium, inc_gallium_aux],
link_with : [libmesa_util, libgallium, libetnaviv],
- dependencies : dep_libdrm_etnaviv,
+ dependencies : [dep_libdrm_etnaviv, dep_lmsensors],
build_by_default : false,
)
dep_libdrm,
dep_libdrm_freedreno,
dependency('threads'),
+ dep_lmsensors,
],
link_with : [
libfreedreno,
'nouveau_compiler',
'nouveau_compiler.c',
include_directories : [inc_src, inc_include, inc_gallium, inc_gallium_aux],
- dependencies : [dep_libdrm, dep_libdrm_nouveau],
+ dependencies : [dep_libdrm, dep_libdrm_nouveau, dep_lmsensors],
link_with : [libnouveau, libgallium, libmesa_util],
build_by_default : false,
)
include_directories('compiler'),
],
link_with : [libr300, libgallium, libmesa_util],
- dependencies : [dep_m, dep_clock, dep_dl, dep_thread, dep_unwind],
+ dependencies : [
+ dep_m, dep_clock, dep_dl, dep_thread, dep_unwind, dep_lmsensors,
+ ],
)
)
endif
],
dependencies : [
gallium_dri_depends, dep_selinux, dep_expat, dep_libdrm, dep_llvm,
- dep_thread,
+ dep_thread, dep_lmsensors,
],
)