driver list: move more driver presence conditions from build rules to source files
commit7a86ed6050b1b7be84bfdfe03419089a1e8fbaef
authorGerhard Sittig <gerhard.sittig@gmx.net>
Wed, 10 May 2023 17:05:27 +0000 (10 19:05 +0200)
committerGerhard Sittig <gerhard.sittig@gmx.net>
Wed, 10 May 2023 17:09:52 +0000 (10 19:09 +0200)
treeabc10c4d129c7b5320e6ce3e80bfd3f49fbd2749
parent9b7a5fe29eb563fc3804ad34d8ebb7ba28f4c013
driver list: move more driver presence conditions from build rules to source files

Move conditional inclusion of source files in the build process out of
build rules (automake, and cmake). Unconditionally build the files
instead. While internal checks in the source code determine whether to
register a driver.

This simplifies build rules. And better reflects what's happening in the
sigrok project sources. Build rules really need not be aware of, even
less duplicate internal details of the source code. That's what attempts
to automatically create the driver list try so hard to avoid.

Internal conditions whether to register a driver could be arbitrarily
complex. The implementation of drivers here is simple, the project's
focus is on the correct and portable construction of the drivers list.
CMakeLists.txt
Makefile.am
src/driver_1.c
src/driver_2.c
src/driver_3.c
src/driver_4.c
src/driver_5.c
src/driver_8.c