diff options
| author | Sworddragon <sworddragon2@aol.com> | 2010-11-14 12:50:23 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-11-16 17:48:29 +0100 |
| commit | 96a1b130fa0aaea68e453c8e17cf8d3cbe097ae3 (patch) | |
| tree | 95dd870eab641001e339a29a1ea2818a1d4d4d53 | |
| parent | 0cfcb1c0c2ce8ed439f4d3cab88ff79e63fe8ee2 (diff) | |
| download | zcatch-96a1b130fa0aaea68e453c8e17cf8d3cbe097ae3.tar.gz zcatch-96a1b130fa0aaea68e453c8e17cf8d3cbe097ae3.zip | |
Fixed missing teeworlds icon for gcc
| -rw-r--r-- | bam.lua | 18 | ||||
| -rw-r--r-- | other/icons/teeworlds_cl.rc (renamed from other/icons/teeworlds.rc) | 0 | ||||
| -rw-r--r-- | other/icons/teeworlds_gcc.rc | 1 |
3 files changed, 13 insertions, 6 deletions
diff --git a/bam.lua b/bam.lua index 6891894b..79b72944 100644 --- a/bam.lua +++ b/bam.lua @@ -55,8 +55,13 @@ DuplicateDirectoryStructure("src", "src", "objs") function ResCompile(scriptfile) scriptfile = Path(scriptfile) - output = PathBase(scriptfile) .. ".res" - AddJob(output, "rc " .. scriptfile, "rc /fo " .. output .. " " .. scriptfile) + if config.compiler.driver == "cl" then + output = PathBase(scriptfile) .. ".res" + AddJob(output, "rc " .. scriptfile, "rc /fo " .. output .. " " .. scriptfile) + elseif config.compiler.driver == "gcc" then + output = PathBase(scriptfile) .. ".coff" + AddJob(output, "windres " .. scriptfile, "windres -i " .. scriptfile .. " -o " .. output) + end AddDependency(output, scriptfile) return output end @@ -108,11 +113,12 @@ client_depends = {} if family == "windows" then table.insert(client_depends, CopyToDirectory(".", "other\\sdl\\vc2005libs\\SDL.dll")) -end - -if config.compiler.driver == "cl" then - client_link_other = {ResCompile("other/icons/teeworlds.rc")} + if config.compiler.driver == "cl" then + client_link_other = {ResCompile("other/icons/teeworlds_cl.rc")} + elseif config.compiler.driver == "gcc" then + client_link_other = {ResCompile("other/icons/teeworlds_gcc.rc")} + end end function Intermediate_Output(settings, input) diff --git a/other/icons/teeworlds.rc b/other/icons/teeworlds_cl.rc index a4eab1f9..a4eab1f9 100644 --- a/other/icons/teeworlds.rc +++ b/other/icons/teeworlds_cl.rc diff --git a/other/icons/teeworlds_gcc.rc b/other/icons/teeworlds_gcc.rc new file mode 100644 index 00000000..aa5dcb44 --- /dev/null +++ b/other/icons/teeworlds_gcc.rc @@ -0,0 +1 @@ +ID ICON "teeworlds.ico" |