-
Notifications
You must be signed in to change notification settings - Fork 20
libdirs
Home > [Scripting Reference](Scripting Reference) > libdirs
The libdirs function specifies the library search paths.
#!lua
libdirs { "paths" }
Library search directories are not well supported by the .NET tools. Visual Studio will change relative paths to absolute, making it difficult to share the generated project. MonoDevelop and SharpDevelop do not support search directories at all, using only the GAC. In general, it is better to include the full (relative) path to the assembly in links instead. C/C++ projects do not have this limitation.
If a project includes multiple calls to libdirs the lists are concatenated, in the order in which they appear in the script.
Solutions, projects, and configurations.
paths specifies a list of library search directories. Paths should be specified relative to the currently running script file.
Define two library file search paths.
#!lua
libdirs { "../lua/libs", "../zlib" }
You can also use wildcards to match multiple directories. The * will match against a single directory, ** will recurse into subdirectories as well.
#!lua
libdirs { "../libs/**" }