wings icon indicating copy to clipboard operation
wings copied to clipboard

Root directory required to be named "wings"

Open MIvanchev opened this issue 1 year ago • 2 comments

Hey, I was building the package for Void Linux and noticed currently Wings expects the code to be located in a directory called wings. This is visible for instance here https://github.com/dgud/wings/blob/master/src/wings_outliner.erl#L26. This is an unusual requirement and IMHO it makes sense to change the code to be independent of the extraction dir's name.

MIvanchev avatar Feb 09 '24 10:02 MIvanchev

While I`m not completely knowledgeable of all the specifics arrived to in the way the directories have been organized as I am mostly a plugin maker, I could be mistaken but I think the -include_lib() convention is used for e3d and intl_tools so they can be used for plugin development. The other include files more likely are intended for wings alone so they use -include() instead.

Personally when I develop plugins for wings I have ERL_COMPILER_OPTIONS set to include the wings parent directory so I can build plugins outside the wings directory.

elblake avatar Feb 16 '24 12:02 elblake

This is the same #429 I guess. Erlang expects applications to be in "AppName[-Version]/substructure". Handling include paths with a version to the application is trouble some which is why include_lib is used which handles that automaticly. Now wings is a bit special since it since a standalone application instead of an ordinary erlang library.

99% percent builds wings from a git repo with the default name and works. If you want some other way supply a PR.

dgud avatar Feb 16 '24 12:02 dgud