daedalus/Source/third_party/webby/tundra.lua
salvy 831be5b995 Debug build fixes
*Fixed debug build when DAEDALUS_DEBUG_DISPLAYLIST its defined, also I enabled it for debug builds
*Fixed ptr->u32 cast in DLParser_DumpVtxInfoDKR, it was causing a compilation error for me)
*Removed unsused zlib from third_party, also added webby
2020-05-13 19:39:20 -07:00

41 lines
886 B
Lua

local CFiles = { ".c", ".h" }
Build {
Configs = {
Config {
Name = "generic-gcc",
DefaultOnHost = "linux",
Tools = { "gcc" },
},
Config {
Name = "macosx-gcc",
DefaultOnHost = "macosx",
Tools = { "gcc-osx" },
Env = {
CCOPTS = {
{ '-Wall', '-Werror' },
{ '-g'; Config = "*-*-debug" },
{ '-O2'; Config = "*-*-release" },
},
},
},
Config {
Name = "win64-msvc",
DefaultOnHost = "windows",
Tools = { "msvc-winsdk"; TargetPlatform = "x64" },
Env = {
CPPDEFS = { "_CRT_SECURE_NO_WARNINGS" },
CCOPTS = { '/W4', '/wd4127', '/wd4100' },
{ GENERATE_PDB = 1; Config = "*-*-debug" },
},
},
},
Units = function()
require "tundra.syntax.glob"
local demo = Program {
Name = "webbydemo",
Sources = { "demo.c", "webby.c" },
Libs = { { "ws2_32.lib"; Config = "win64-msvc" } },
}
Default(demo)
end,
}