On Aug 18, 2015 3:17 PM, "Tangent 128" <[email protected]> wrote: > > 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.
>From your descriptions, I'm afraid your already aware of the full extent of customizability that LuaRocks currently offers for these situations... Isn't "typical Linux" typical enough? Maybe Ignacio's suggestion of handling Windows and OSX separately would work well... In any case, thank you for the feedback, this is definitely an area for improvement. -- Hisham
------------------------------------------------------------------------------
_______________________________________________ Luarocks-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/luarocks-developers
