Fix icons

This commit is contained in:
def 2017-07-21 23:54:58 +02:00
parent 7d26c1fa38
commit 0db98b218b
4 changed files with 12 additions and 4 deletions

View file

@ -295,7 +295,11 @@ if(CLIENT)
) )
if(TARGET_OS STREQUAL "windows") if(TARGET_OS STREQUAL "windows")
set(CLIENT_ICON "other/icons/DDNet.rc") if(MSVC)
set(CLIENT_ICON "other/icons/DDNet_cl.rc")
else()
set(CLIENT_ICON "other/icons/DDNet_gcc.rc")
endif()
else() else()
set(CLIENT_ICON) set(CLIENT_ICON)
endif() endif()
@ -333,7 +337,11 @@ file(GLOB_RECURSE GAME_SERVER "src/game/server/*.cpp" "src/game/server/*.h")
set(GAME_GENERATED_SERVER "src/game/generated/server_data.cpp" "src/game/generated/server_data.h") set(GAME_GENERATED_SERVER "src/game/generated/server_data.cpp" "src/game/generated/server_data.h")
set(SERVER_SRC ${ENGINE_SERVER} ${GAME_SERVER} ${GAME_GENERATED_SERVER}) set(SERVER_SRC ${ENGINE_SERVER} ${GAME_SERVER} ${GAME_GENERATED_SERVER})
if(TARGET_OS STREQUAL "windows") if(TARGET_OS STREQUAL "windows")
set(SERVER_ICON "other/icons/DDNet-Server.rc") if(MSVC)
set(CLIENT_ICON "other/icons/DDNet-Server_cl.rc")
else()
set(CLIENT_ICON "other/icons/DDNet-Server_gcc.rc")
endif()
else() else()
set(SERVER_ICON) set(SERVER_ICON)
endif() endif()

View file

@ -164,10 +164,10 @@ if family == "windows" then
if config.compiler.driver == "cl" then if config.compiler.driver == "cl" then
client_link_other = {ResCompile("other/icons/DDNet_cl.rc")} client_link_other = {ResCompile("other/icons/DDNet_cl.rc")}
server_link_other = {ResCompile("other/icons/DDNet_srv_cl.rc")} server_link_other = {ResCompile("other/icons/DDNet-Server_cl.rc")}
elseif config.compiler.driver == "gcc" then elseif config.compiler.driver == "gcc" then
client_link_other = {ResCompile("other/icons/DDNet_gcc.rc")} client_link_other = {ResCompile("other/icons/DDNet_gcc.rc")}
server_link_other = {ResCompile("other/icons/DDNet_srv_gcc.rc")} server_link_other = {ResCompile("other/icons/DDNet-Server_gcc.rc")}
end end
end end