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

github.com/windirstat/windirstat.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Schneider <oliver@assarbad.net>2014-01-20 06:06:40 +0400
committerOliver Schneider <oliver@assarbad.net>2014-01-20 06:06:40 +0400
commit9944c73d49cd89731049c567b009b8638f268c47 (patch)
treefaab99a9dc0aae965b86d2318802b7042a3dcbf8 /premake4.lua
parent7dc3060452e975d54d3a412ee5c8646bb74dec5f (diff)
Making dependencies work again with dynamic (due to prefix) namesremove_obsolete
Diffstat (limited to 'premake4.lua')
-rw-r--r--premake4.lua25
1 files changed, 15 insertions, 10 deletions
diff --git a/premake4.lua b/premake4.lua
index 984ff36..90527de 100644
--- a/premake4.lua
+++ b/premake4.lua
@@ -99,10 +99,6 @@ local function transformMN(input) -- transform the macro names for older Visual
end
return input
end
-local function inc(inc_dir)
- include(inc_dir)
- create_luajit_projects(inc_dir, "wds_release_")
-end
newoption { trigger = "resources", description = "Also create projects for the resource DLLs." }
newoption { trigger = "sdk71", description = "Applies to VS 2005 and 2008. If you have the Windows 7 SP1\n SDK, use this to create projects for a feature-complete\n WinDirStat." }
newoption { trigger = "release", description = "Creates a solution suitable for a release build." }
@@ -110,14 +106,19 @@ if _OPTIONS["resources"] then
print "INFO: Creating projects for resource DLLs."
end
local release = false
+local slnname = "wds_release"
if _OPTIONS["release"] then
print "INFO: Creating release build solution."
_OPTIONS["resources"] = ""
_OPTIONS["sdk71"] = ""
release = true
end
+local function inc(inc_dir)
+ include(inc_dir)
+ create_luajit_projects(inc_dir, iif(release, slnname .. "_", ""))
+end
-solution (iif(release, "wds_release", "windirstat"))
+solution (iif(release, slnname, "windirstat"))
configurations (iif(release, {"Release"}, {"Debug", "Release"}))
platforms {"x32", "x64"}
location ('.')
@@ -126,7 +127,7 @@ solution (iif(release, "wds_release", "windirstat"))
inc("3rdparty\\lua")
-- Main WinDirStat project
- project (iif(release, "wds_release", "windirstat"))
+ project (iif(release, slnname, "windirstat"))
local int_dir = "intermediate/" .. action .. "_$(" .. transformMN("Platform") .. ")_$(" .. transformMN("Configuration") .. ")\\$(ProjectName)"
uuid ("BD11B94C-6594-4477-9FDF-2E24447D1F14")
language ("C++")
@@ -138,12 +139,16 @@ solution (iif(release, "wds_release", "windirstat"))
includedirs {".", "windirstat", "common", "windirstat/Controls", "windirstat/Dialogs", "3rdparty/lua/src"}
objdir (int_dir)
libdirs {"$(IntDir)"}
- links {"htmlhelp", "psapi", "delayimp"}
+ links {"htmlhelp", "psapi", "delayimp", iif(release, slnname .. "_luajit2", "luajit2")}
resoptions {"/nologo", "/l409"}
resincludedirs {".", "$(IntDir)"}
linkoptions {"/delayload:psapi.dll", "/pdbaltpath:%_PDB%"}
- links {"luajit2"}
-
+ if release then
+ postbuildcommands
+ {
+ "signtool.exe sign /v /a /ph /d \"WinDirStat\" /du \"http://windirstat.info\" /tr http://www.startssl.com/timestamp \"$(TargetPath)\""
+ }
+ end
files
{
"common/*.h",
@@ -243,7 +248,7 @@ solution (iif(release, "wds_release", "windirstat"))
}
for nm,guid in pairs(resource_dlls) do
premake.CurrentContainer = oldcurr
- prj = project(iif(release, "wds_release_" .. nm, nm))
+ prj = project(iif(release, slnname .. "_" .. nm, nm))
local int_dir = "intermediate/" .. action .. "_$(ProjectName)_" .. nm
uuid (guid)
language ("C++")