2014-06-06 08:14:01 +00:00
|
|
|
require "tundra.syntax.glob"
|
|
|
|
local native = require('tundra.native')
|
|
|
|
|
|
|
|
local win32 = {
|
|
|
|
Env = {
|
|
|
|
GENERATE_PDB = "1",
|
|
|
|
CCOPTS = {
|
|
|
|
"/FS",
|
|
|
|
"/W4",
|
2014-06-06 12:38:52 +00:00
|
|
|
"/WX", "/I.", "/D_CRT_SECURE_NO_WARNINGS",
|
2014-06-06 08:14:01 +00:00
|
|
|
{ "/Od"; Config = "*-*-debug" },
|
|
|
|
{ "/O2"; Config = "*-*-release" },
|
|
|
|
},
|
|
|
|
|
|
|
|
PROGOPTS = {
|
|
|
|
"/INCREMENTAL:NO"-- Disable incremental linking. It doesn't work properly in our use case (nearly all code in libs) and causes log spam.
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
local macosx = {
|
|
|
|
Env = {
|
|
|
|
CCOPTS = {
|
|
|
|
"-Wpedantic", "-Werror", "-Wall",
|
|
|
|
{ "-O0", "-g"; Config = "*-*-debug" },
|
|
|
|
{ "-O3"; Config = "*-*-release" },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
Frameworks = { "Cocoa" },
|
|
|
|
}
|
|
|
|
|
|
|
|
Build {
|
2014-06-06 12:38:52 +00:00
|
|
|
IdeGenerationHints = {
|
|
|
|
Msvc = {
|
|
|
|
PlatformMappings = {
|
|
|
|
['win32-msvc'] = 'Win32',
|
|
|
|
['win32-msvc'] = 'Win64',
|
|
|
|
},
|
|
|
|
FullMappings = {
|
|
|
|
['win32-msvc-debug-default'] = { Config='Debug', Platform='Win32' },
|
|
|
|
['win32-msvc-production-default'] = { Config='Production', Platform='Win32' },
|
|
|
|
['win32-msvc-release-default'] = { Config='Release', Platform='Win32' },
|
|
|
|
['win64-msvc-debug-default'] = { Config='Debug', Platform='Win64' },
|
|
|
|
['win64-msvc-production-default'] = { Config='Production', Platform='Win64' },
|
|
|
|
['win64-msvc-release-default'] = { Config='Release', Platform='Win64' },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
MsvcSolutions = { ['minfb.sln'] = { } },
|
|
|
|
},
|
|
|
|
|
2014-06-06 08:14:01 +00:00
|
|
|
Configs = {
|
|
|
|
Config { Name = "win32-msvc", Inherit = win32, Tools = { "msvc" }, SupportedHosts = { "windows" }, },
|
|
|
|
Config { Name = "win64-msvc", Inherit = win32, Tools = { "msvc" }, SupportedHosts = { "windows" }, },
|
|
|
|
Config { Name = "macosx-clang", Inherit = macosx, Tools = { "clang-osx" }, SupportedHosts = { "macosx" },},
|
2014-06-06 13:58:48 +00:00
|
|
|
Config { Name = "linux-gcc", Tools = { "gcc" }, SupportedHosts = { "linux" },},
|
2014-06-06 08:14:01 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
Units = {
|
|
|
|
"units.lua",
|
|
|
|
},
|
|
|
|
}
|