update build file

This commit is contained in:
jussi 2020-01-17 16:54:23 +02:00
parent cf65380175
commit d44d326a06

View File

@ -21,3 +21,17 @@ if all_nvidia_linux_libs
install_dir : get_option('libdir') / 'tuxclocker' / 'modules' / 'readable',
install : true)
endif
# AMD modules
libdrm_amdgpu = cc.find_library('libdrm_amdgpu', required : false)
libdrm_dep = dependency('libdrm')
if libdrm_amdgpu.found()
shared_library('amdgpu', 'amdgpu.c',
include_directories : incdir,
dependencies : [libdrm_amdgpu, libdrm_dep],
link_with : libtuxclocker,
install_dir : get_option('libdir') / 'tuxclocker' / 'modules' / 'readable',
install : true)
endif