Merge pull request #836 from heinrich5991/pr_ddnet_unify_icons

Unify icons for gcc and MSVC, fix server icon
This commit is contained in:
Dennis Felsing 2017-09-16 11:18:40 +02:00 committed by GitHub
commit f60eb5658f
8 changed files with 5 additions and 28 deletions

View file

@ -679,11 +679,7 @@ if(CLIENT)
)
if(TARGET_OS STREQUAL "windows")
if(MSVC)
set(CLIENT_ICON "other/icons/DDNet_cl.rc")
else()
set(CLIENT_ICON "other/icons/DDNet_gcc.rc")
endif()
set(CLIENT_ICON "other/icons/DDNet.rc")
else()
set(CLIENT_ICON)
endif()
@ -786,11 +782,7 @@ set(GAME_GENERATED_SERVER
)
set(SERVER_SRC ${ENGINE_SERVER} ${GAME_SERVER} ${GAME_GENERATED_SERVER})
if(TARGET_OS STREQUAL "windows")
if(MSVC)
set(CLIENT_ICON "other/icons/DDNet-Server_cl.rc")
else()
set(CLIENT_ICON "other/icons/DDNet-Server_gcc.rc")
endif()
set(SERVER_ICON "other/icons/DDNet-Server.rc")
else()
set(SERVER_ICON)
endif()

View file

@ -162,13 +162,8 @@ if family == "windows" then
table.insert(server_sql_depends, CopyToDirectory(".", "ddnet-libs/mysql/windows/mysqlcppconn.dll"))
table.insert(server_sql_depends, CopyToDirectory(".", "ddnet-libs/mysql/windows/libmysql.dll"))
if config.compiler.driver == "cl" then
client_link_other = {ResCompile("other/icons/DDNet_cl.rc")}
server_link_other = {ResCompile("other/icons/DDNet-Server_cl.rc")}
elseif config.compiler.driver == "gcc" then
client_link_other = {ResCompile("other/icons/DDNet_gcc.rc")}
server_link_other = {ResCompile("other/icons/DDNet-Server_gcc.rc")}
end
client_link_other = {ResCompile("other/icons/DDNet.rc")}
server_link_other = {ResCompile("other/icons/DDNet-Server.rc")}
end
function Intermediate_Output(settings, input)

View file

@ -1 +0,0 @@
50h ICON "DDNet-Server.ico"

View file

@ -1,7 +0,0 @@
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" >
<asmv3:application>
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
<dpiAware>true/PM</dpiAware>
</asmv3:windowsSettings>
</asmv3:application>
</assembly>

1
other/icons/DDNet.rc Normal file
View file

@ -0,0 +1 @@
ID ICON "DDNet.ico"

View file

@ -1 +0,0 @@
50h ICON "DDNet.ico"

View file

@ -1,2 +0,0 @@
ID ICON "DDNet.ico"
1 24 "DDNet.exe.manifest"