diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2018-06-12 20:10:04 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-06-14 14:06:51 -0300 |
| commit | c59b71fa871567878c156ccef35593917091da43 (patch) | |
| tree | 108d3bae26aaa2c5c7bf4c96fa1603a85dd571ae | |
| parent | c9185f42835c52956b4cb906d765d5b4e6bb3539 (diff) | |
| download | luarocks-c59b71fa871567878c156ccef35593917091da43.tar.gz luarocks-c59b71fa871567878c156ccef35593917091da43.tar.bz2 luarocks-c59b71fa871567878c156ccef35593917091da43.zip | |
Windows: find default system libraries
| -rw-r--r-- | src/luarocks/core/cfg.lua | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua index a17ca509..912a4028 100644 --- a/src/luarocks/core/cfg.lua +++ b/src/luarocks/core/cfg.lua | |||
| @@ -430,7 +430,7 @@ if cfg.platforms.windows then | |||
| 430 | defaults.external_lib_extension = "dll" | 430 | defaults.external_lib_extension = "dll" |
| 431 | defaults.static_lib_extension = "lib" | 431 | defaults.static_lib_extension = "lib" |
| 432 | defaults.obj_extension = "obj" | 432 | defaults.obj_extension = "obj" |
| 433 | defaults.external_deps_dirs = { "c:/external/" } | 433 | defaults.external_deps_dirs = { "c:/external", "c:/windows/system32" } |
| 434 | defaults.variables.LUA_BINDIR = site_config.LUA_BINDIR and site_config.LUA_BINDIR:gsub("\\", "/") or "c:/lua"..cfg.lua_version.."/bin" | 434 | defaults.variables.LUA_BINDIR = site_config.LUA_BINDIR and site_config.LUA_BINDIR:gsub("\\", "/") or "c:/lua"..cfg.lua_version.."/bin" |
| 435 | defaults.variables.LUA_INCDIR = site_config.LUA_INCDIR and site_config.LUA_INCDIR:gsub("\\", "/") or "c:/lua"..cfg.lua_version.."/include" | 435 | defaults.variables.LUA_INCDIR = site_config.LUA_INCDIR and site_config.LUA_INCDIR:gsub("\\", "/") or "c:/lua"..cfg.lua_version.."/include" |
| 436 | defaults.variables.LUA_LIBDIR = site_config.LUA_LIBDIR and site_config.LUA_LIBDIR:gsub("\\", "/") or "c:/lua"..cfg.lua_version.."/lib" | 436 | defaults.variables.LUA_LIBDIR = site_config.LUA_LIBDIR and site_config.LUA_LIBDIR:gsub("\\", "/") or "c:/lua"..cfg.lua_version.."/lib" |
| @@ -475,6 +475,18 @@ if cfg.platforms.windows then | |||
| 475 | end | 475 | end |
| 476 | defaults.local_cache = localappdata.."/LuaRocks/Cache" | 476 | defaults.local_cache = localappdata.."/LuaRocks/Cache" |
| 477 | defaults.web_browser = "start" | 477 | defaults.web_browser = "start" |
| 478 | |||
| 479 | defaults.external_deps_subdirs = site_config.LUAROCKS_EXTERNAL_DEPS_SUBDIRS or { | ||
| 480 | bin = {".", "bin"}, | ||
| 481 | lib = {".", "lib"}, | ||
| 482 | include = {".", "include"}, | ||
| 483 | } | ||
| 484 | defaults.runtime_external_deps_subdirs = site_config.LUAROCKS_RUNTIME_EXTERNAL_DEPS_SUBDIRS or { | ||
| 485 | bin = {".", "bin"}, | ||
| 486 | lib = {".", "lib"}, | ||
| 487 | include = {".", "include"}, | ||
| 488 | } | ||
| 489 | |||
| 478 | end | 490 | end |
| 479 | 491 | ||
| 480 | if cfg.platforms.mingw32 then | 492 | if cfg.platforms.mingw32 then |
