Simplify meson sources

This commit is contained in:
Mario Daniel Ruiz Saavedra 2023-08-14 16:29:04 -05:00
parent 06cd74a237
commit d790f7cfe1

View file

@ -17,106 +17,24 @@ sources = files(
'include/rd_mouse.cpp',
'include/rd_mouse.h',
'include/rd_mouse_wireless.cpp',
'include/rd_mouse_wireless.h',
'include/generic/constructor.cpp',
'include/generic/data.cpp',
'include/generic/getters.cpp',
'include/generic/helpers.cpp',
'include/generic/mouse_generic.h',
'include/generic/readers.cpp',
'include/generic/setters.cpp',
'include/generic/writers.cpp',
'include/m607/constructor.cpp',
'include/m607/data.cpp',
'include/m607/getters.cpp',
'include/m607/helpers.cpp',
'include/m607/mouse_m607.h',
'include/m607/readers.cpp',
'include/m607/setters.cpp',
'include/m607/writers.cpp',
'include/m686/constructor.cpp',
'include/m686/data.cpp',
'include/m686/getters.cpp',
'include/m686/helpers.cpp',
'include/m686/mouse_m686.h',
'include/m686/readers.cpp',
'include/m686/setters.cpp',
'include/m686/writers.cpp',
'include/m709/constructor.cpp',
'include/m709/data.cpp',
'include/m709/getters.cpp',
'include/m709/helpers.cpp',
'include/m709/mouse_m709.h',
'include/m709/readers.cpp',
'include/m709/setters.cpp',
'include/m709/writers.cpp',
'include/m711/constructor.cpp',
'include/m711/data.cpp',
'include/m711/getters.cpp',
'include/m711/helpers.cpp',
'include/m711/mouse_m711.h',
'include/m711/readers.cpp',
'include/m711/setters.cpp',
'include/m711/writers.cpp',
'include/m715/constructor.cpp',
'include/m715/data.cpp',
'include/m715/getters.cpp',
'include/m715/helpers.cpp',
'include/m715/mouse_m715.h',
'include/m715/readers.cpp',
'include/m715/setters.cpp',
'include/m715/writers.cpp',
'include/m719/constructor.cpp',
'include/m719/data.cpp',
'include/m719/getters.cpp',
'include/m719/helpers.cpp',
'include/m719/mouse_m719.h',
'include/m719/readers.cpp',
'include/m719/setters.cpp',
'include/m719/writers.cpp',
'include/m721/constructor.cpp',
'include/m721/data.cpp',
'include/m721/getters.cpp',
'include/m721/helpers.cpp',
'include/m721/mouse_m721.h',
'include/m721/readers.cpp',
'include/m721/setters.cpp',
'include/m721/writers.cpp',
'include/m908/constructor.cpp',
'include/m908/data.cpp',
'include/m908/getters.cpp',
'include/m908/helpers.cpp',
'include/m908/mouse_m908.h',
'include/m908/readers.cpp',
'include/m908/setters.cpp',
'include/m908/writers.cpp',
'include/m913/constructor.cpp',
'include/m913/data.cpp',
'include/m913/getters.cpp',
'include/m913/helpers.cpp',
'include/m913/mouse_m913.h',
'include/m913/readers.cpp',
'include/m913/setters.cpp',
'include/m913/writers.cpp',
'include/m990/constructor.cpp',
'include/m990/data.cpp',
'include/m990/getters.cpp',
'include/m990/helpers.cpp',
'include/m990/mouse_m990.h',
'include/m990/readers.cpp',
'include/m990/setters.cpp',
'include/m990/writers.cpp',
'include/m990chroma/constructor.cpp',
'include/m990chroma/data.cpp',
'include/m990chroma/getters.cpp',
'include/m990chroma/helpers.cpp',
'include/m990chroma/mouse_m990chroma.h',
'include/m990chroma/readers.cpp',
'include/m990chroma/setters.cpp',
'include/m990chroma/writers.cpp'
'include/rd_mouse_wireless.h'
)
devices = ['generic', 'm607', 'm686', 'm709', 'm711', 'm715', 'm719', 'm721', 'm908', 'm913', 'm990', 'm990chroma']
foreach device : devices
sources += files(
f'include/@device@/constructor.cpp',
f'include/@device@/data.cpp',
f'include/@device@/getters.cpp',
f'include/@device@/helpers.cpp',
f'include/@device@/mouse_@device@.h',
f'include/@device@/readers.cpp',
f'include/@device@/setters.cpp',
f'include/@device@/writers.cpp'
)
endforeach
udev_dep = dependency('udev')
udev_rules_dir = udev_dep.get_variable(pkgconfig:'udevdir')