2014-06-06 08:14:01 +00:00
|
|
|
|
|
|
|
StaticLibrary {
|
|
|
|
Name = "minifb",
|
|
|
|
|
|
|
|
Env = { CPPPATH = { "include", }, },
|
|
|
|
|
|
|
|
Sources = FGlob {
|
|
|
|
Dir = "src",
|
|
|
|
Extensions = { ".cpp", ".c", ".h", ".s", ".m" },
|
|
|
|
Filters = {
|
2014-06-06 13:58:48 +00:00
|
|
|
{ Pattern = "[/\\]windows[/\\]"; Config = { "win32-*", "win64-*" } },
|
2014-06-06 08:14:01 +00:00
|
|
|
{ Pattern = "[/\\]macosx[/\\]"; Config = "mac*-*" },
|
2014-06-06 15:50:41 +00:00
|
|
|
{ Pattern = "[/\\]x11[/\\]"; Config = { "x11-*" } },
|
2017-01-24 19:14:11 +00:00
|
|
|
{ Pattern = "[/\\]wayland[/\\]"; Config = { "wayland-*" } },
|
2014-06-06 08:14:01 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
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" },
|
2014-06-06 15:50:41 +00:00
|
|
|
|
2017-01-24 19:14:11 +00:00
|
|
|
Libs = {
|
|
|
|
{ "X11"; Config = "x11-*" },
|
|
|
|
{ "wayland-client", "wayland-cursor"; Config = "wayland-*" },
|
|
|
|
},
|
2014-06-06 08:14:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Default "noise"
|