dub icon indicating copy to clipboard operation
dub copied to clipboard

targetType does not support platform customization.

Open Ryhon0 opened this issue 4 years ago • 1 comments

I am creating a multi-platform application and one of the platforms is Android. Since it's a GUI application, it needs to be a shared library and a function must be called from Java. I've added "targetType-android": "dynamicLibrary" to dub.json but I'm getting the following message when building: targetType does not support platform customization. However I've found a workaround for this: adding a configuration and specifying it using -c. However this might be an issue if I decide the program needs to have multiple configurations. It would be nice if you could customize the target type or the output path and determining the target type from it

Ryhon0 avatar Jan 30 '22 20:01 Ryhon0

determining the target path (using type + path) is currently done in a bunch of places in the code base and not standardized / using a unified API. The code for this would be needed to be cleaned to behave the same everywhere (and with that handle special cases like unittest changing the targetType to executable with special compilation flags) AND support configurations at the same time.

WebFreak001 avatar Jan 31 '22 11:01 WebFreak001