Fixed MSVC project files again.

This commit is contained in:
rude
2009-08-08 12:15:47 +02:00
parent b04b278cd0
commit f2adfd53f2
18 changed files with 142 additions and 117 deletions
+9 -4
View File
@@ -2,7 +2,7 @@
require("lfs")
math.randomseed(os.time())
math.randomseed(5000)
function scan(path)
local files = {}
@@ -134,14 +134,19 @@ end
function filter.defines(data, module)
local unique = string.upper(module) .."_EXPORTS"
local release = "WIN32;NDEBUG;_WINDOWS;_USRDLL;".. unique
local dbg = "WIN32;_DEBUG;_WINDOWS;_USRDLL;".. unique
local unique = string.upper(module) .."_EXPORTS;"
local release = "WIN32;NDEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;".. unique
local dbg = "WIN32;_DEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;".. unique
print(" Defines:")
print(" Debug: "..dbg)
print(" Release: "..release)
if module == "sound" then
dbg = dbg .. "FLAC__NO_DLL;"
release = release .. "FLAC__NO_DLL;"
end
local data = string.gsub(data, "{DEFINES_RELEASE}", release)
return string.gsub(data, "{DEFINES_DEBUG}", dbg)