Changed linux to x11 in order to support other x11 compatible OSes (like FreeBSD)

This commit is contained in:
Daniel Collin 2014-06-06 17:50:41 +02:00
parent 60342adbea
commit e672d8a7ac
2 changed files with 10 additions and 2 deletions

View File

@ -31,6 +31,11 @@ local macosx = {
Frameworks = { "Cocoa" }, Frameworks = { "Cocoa" },
} }
local x11 = {
Env = { CPPPATH = { "/usr/include", }, },
}
Build { Build {
IdeGenerationHints = { IdeGenerationHints = {
Msvc = { Msvc = {
@ -54,7 +59,8 @@ Build {
Config { Name = "win32-msvc", Inherit = win32, Tools = { "msvc" }, SupportedHosts = { "windows" }, }, Config { Name = "win32-msvc", Inherit = win32, Tools = { "msvc" }, SupportedHosts = { "windows" }, },
Config { Name = "win64-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" },}, Config { Name = "macosx-clang", Inherit = macosx, Tools = { "clang-osx" }, SupportedHosts = { "macosx" },},
Config { Name = "linux-gcc", Tools = { "gcc" }, SupportedHosts = { "linux" },}, Config { Name = "x11-gcc", Inherit = x11, Tools = { "gcc" }, SupportedHosts = { "linux", "freebsd" },},
-- Config { Name = "x11-clang", Inherit = x11, Tools = { "clang" }, SupportedHosts = { "linux", "freebsd" },},
}, },
Units = { Units = {

View File

@ -10,7 +10,7 @@ StaticLibrary {
Filters = { Filters = {
{ Pattern = "[/\\]windows[/\\]"; Config = { "win32-*", "win64-*" } }, { Pattern = "[/\\]windows[/\\]"; Config = { "win32-*", "win64-*" } },
{ Pattern = "[/\\]macosx[/\\]"; Config = "mac*-*" }, { Pattern = "[/\\]macosx[/\\]"; Config = "mac*-*" },
{ Pattern = "[/\\]unix[/\\]"; Config = { "freebsd*-*", "linux*-*" } }, { Pattern = "[/\\]x11[/\\]"; Config = { "x11-*" } },
}, },
Recursive = true, Recursive = true,
@ -35,6 +35,8 @@ Program {
Depends = { "minifb" }, Depends = { "minifb" },
Sources = { "tests/noise.c" }, Sources = { "tests/noise.c" },
Libs = { "X11"; Config = "x11-*" },
} }
Default "noise" Default "noise"