On 08/18/2015 09:39 AM, Ignacio Burgueño wrote: > Have you tried to use a "platforms" override in "external_dependencies" ? > Something like: > external_dependencies = { > platforms = { > windows = { > LIBSDL2 = { > header = "SDL_scancode.h" > } > } > }, > LIBSDL2 = { > header = "SDL2/SDL_scancode.h" > } > } > > Where you have default values for all platforms but Windows.
The problem there: Say Windows places your files in c:\SDL2\include; then SDL2_INCDIR will end up as "c:\SDL2\include". While on most Linuxes, SDL2_INCDIR will end up as "/usr/include/" So the build recipe for Windows requires: indirs = {"$(SDL2_INCDIR)", "(other paths)"} But on (average) Linux: indirs = {"$(SDL2_INCDIR)/SDL2", "(other paths)"} Overrides *would* make it possible to customize the path on Windows & OSX, where you would have to manually locate them anyways. So I can do that as a stopgap if I have to. However, I would still like to allow customizing the path on Linux, without breaking "automatic" building on typical systems. Thanks, ~Joseph Wallace ------------------------------------------------------------------------------ _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers