Closed marekjm closed 9 years ago
Viua libraries are by default looked for in the following directories:
.
- first search current working directory,~/.local/lib/viua
,~/.local/lib/viua/site
/usr/local/lib/viua
,/usr/local/lib/viua/site
/usr/lib/viua
,/usr/lib/viua/site
<empty>
- to allow specifying imports by absolute path (e.g link ::foo::bar::baz
),Duplicated paths (e.g. ~/.local/lib/viua
and ~/.local/lib/viua/site
) are present because apart from site
subdirectory, there is also the std
directory for standard libraries. Using std::string
will find ~/.local/lib/viua/std/string.vlib
.
Library hierarchy should be designed for Viua. It would contain guidelines for:
viua::core::string
- in$(LIB)/viua/core/string.vlib
?),foo
to prepend all its functions withfoo::
?),