diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-10-23 17:07:25 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-10-23 17:07:25 +0000 |
| commit | 8764f6433d52c8f038be63adc9dc5f398a0f4f42 (patch) | |
| tree | 632ebd4658cc78bbb075ca5b356418dc5578b847 /default.bam | |
| parent | bd5b2b9f85522203609df18292df510dbb674246 (diff) | |
| download | zcatch-8764f6433d52c8f038be63adc9dc5f398a0f4f42.tar.gz zcatch-8764f6433d52c8f038be63adc9dc5f398a0f4f42.zip | |
fixed compile for osx
Diffstat (limited to 'default.bam')
| -rw-r--r-- | default.bam | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/default.bam b/default.bam index 48592965..1efa1288 100644 --- a/default.bam +++ b/default.bam @@ -11,6 +11,7 @@ function OptFindSDL(name, required) option.value = nil option.use_sdlconfig = nil option.use_win32sdl = nil + option.use_osxframework = nil option.lib_path = nil if ExecuteSilent("sdl-config") > 0 and ExecuteSilent("sdl-config --cflags") == 0 then @@ -25,6 +26,7 @@ function OptFindSDL(name, required) if platform == "macosx" then option.value = 1 + option.use_osxframework = 1 end end @@ -32,11 +34,11 @@ function OptFindSDL(name, required) if option.use_sdlconfig then settings.cc.flags = settings.cc.flags .. " -I/usr/include/SDL " settings.linker.flags = settings.linker.flags .. " `sdl-config --libs` " - else - if platform == "macosx" then - client_settings.linker.frameworks:add("SDL") - client_settings.cc.includes:add("/Library/Frameworks/SDL.framework/Headers") - end + end + + if option.use_osxframework then + client_settings.linker.frameworks:add("SDL") + client_settings.cc.includes:add("/Library/Frameworks/SDL.framework/Headers") end if option.use_win32sdl then @@ -51,16 +53,15 @@ function OptFindSDL(name, required) output:option(option, "value") output:option(option, "use_sdlconfig") output:option(option, "use_win32sdl") + output:option(option, "use_osxframework") end local display = function(option) if option.value then - if option.use_sdlconfig then - return "using sdl-config" - end - if option.use_win32sdl then - return "using supplied win32 libraries" - end + if option.use_sdlconfig then return "using sdl-config" end + if option.use_win32sdl then return "using supplied win32 libraries" end + if option.use_osxframework then return "using osx framework" end + return "using unknown method" else if option.required then return "not found (required)" |