41 lines
713 B
Lua
41 lines
713 B
Lua
|
|
||
|
StaticLibrary {
|
||
|
Name = "minifb",
|
||
|
|
||
|
Env = { CPPPATH = { "include", }, },
|
||
|
|
||
|
Sources = FGlob {
|
||
|
Dir = "src",
|
||
|
Extensions = { ".cpp", ".c", ".h", ".s", ".m" },
|
||
|
Filters = {
|
||
|
{ Pattern = "[/\\]win32[/\\]"; Config = "win32-*" },
|
||
|
{ Pattern = "[/\\]macosx[/\\]"; Config = "mac*-*" },
|
||
|
{ Pattern = "[/\\]unix[/\\]"; Config = { "freebsd*-*", "linux*-*" } },
|
||
|
},
|
||
|
|
||
|
Recursive = true,
|
||
|
},
|
||
|
|
||
|
Propagate = {
|
||
|
Libs = {
|
||
|
"user32.lib"; Config = "win32-*",
|
||
|
"ws2_32.lib"; Config = "win32-*",
|
||
|
"gdi32.lib"; Config = "win32-*",
|
||
|
},
|
||
|
|
||
|
Frameworks = { "Cocoa" },
|
||
|
},
|
||
|
}
|
||
|
|
||
|
Program {
|
||
|
|
||
|
Name = "noise",
|
||
|
|
||
|
Env = { CPPPATH = { "include", }, },
|
||
|
|
||
|
Depends = { "minifb" },
|
||
|
Sources = { "tests/noise.c" },
|
||
|
}
|
||
|
|
||
|
Default "noise"
|