ESP Core 3.1 added support for specification of global defines for a build (see esp8266/Arduino#8504). This feature is similar to MySystem.h approach, but is supported with a build-time script. If this would work as expected, it could allow making ESP-DS-System a true Arduino library.