On 12/24/25 12:50, andy pugh wrote:
I have re-written hal_gpio for libgpiod3 (or gpiod v2.x. Yes it's confusing)
It's a major re-arrangement of how things are done to suit a different
API paradigm.
As such, I don't think conditional compilation of sections will work.
I could put all of both source files in the same file, with a massive #IF
Or I could try to be clever, and do some magic in the makefile /
config such that the correct source file is chosen.
Does anyone know how to do that?
Or, maybe I could have both files present and symlink one or the other
depending on the libgpiod version.
Thoughts?
I wouldn't consider myself an expert, or even a spurt at this late stage
of my life's game, Andy. But somehow the latter symlink idea seems
to make more sense. Silent and automatic at install time.
If its doable at all. The tradeoff seems to be the potentially increased
code size in the install .deb.
Merry Christmas everybody.
Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
Don't poison our oceans, interdict drugs at the src.
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers