Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstarkos <none@none>2009-01-06 01:35:57 +0300
committerstarkos <none@none>2009-01-06 01:35:57 +0300
commitdc9903a94f9568efef158571379fa51dbb76e0e1 (patch)
tree15300f39e24f309ca9a08c22f9f6a9ef8ed097a5 /src/base/project.lua
parent43660bcca529e492688a3e147a4245c12bba593e (diff)
Enable Windows linking to shared libraries even with NoImportLib flag set (just in case)
Diffstat (limited to 'src/base/project.lua')
-rw-r--r--src/base/project.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/base/project.lua b/src/base/project.lua
index 2b2fd7f..c11f156 100644
--- a/src/base/project.lua
+++ b/src/base/project.lua
@@ -276,6 +276,11 @@
local prefix = ""
local suffix = ""
+ -- If using an import library and "NoImportLib" flag is set, library will be in objdir
+ if cfg.kind == "SharedLib" and kind == "StaticLib" and cfg.flags.NoImportLib then
+ dir = cfg.objectsdir
+ end
+
if style == "windows" then
if kind == "ConsoleApp" or kind == "WindowedApp" then
suffix = ".exe"
@@ -306,6 +311,8 @@
result.fullpath = path.join(result.directory, result.name)
return result
end
+
+
--
-- Walk the list of source code files, breaking them into "groups" based
-- on the directory hierarchy.