From 791c4232861dc97f021aed2172107c543cdad017 Mon Sep 17 00:00:00 2001 From: Nishi Date: Wed, 18 Sep 2024 10:14:25 +0000 Subject: [PATCH] add resources git-svn-id: file:///raid/svn-personal/tewi/trunk@48 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Platform/win32.mk | 2 ++ Platform/win64.mk | 2 ++ Server/Makefile | 5 ++++- Server/tewi.ico | Bin 0 -> 16958 bytes Server/tewi.rc | 11 +++++++++++ 5 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 Server/tewi.ico create mode 100644 Server/tewi.rc diff --git a/Platform/win32.mk b/Platform/win32.mk index 2b0f554..d40fb64 100644 --- a/Platform/win32.mk +++ b/Platform/win32.mk @@ -4,8 +4,10 @@ PREFIX = C:/Tewi CC = i686-w64-mingw32-gcc AR = i686-w64-mingw32-ar +WINDRES = i686-w64-mingw32-windres CFLAGS = -g -std=c99 -DPREFIX=\"$(PREFIX)\" -I $(PWD)/Common -fPIC LDFLAGS = LIBS = -lws2_32 EXEC = .exe LIB = .dll +PREOBJS = tewi.res diff --git a/Platform/win64.mk b/Platform/win64.mk index f3faf76..187462a 100644 --- a/Platform/win64.mk +++ b/Platform/win64.mk @@ -4,8 +4,10 @@ PREFIX = C:/Tewi CC = x86_64-w64-mingw32-gcc AR = x86_64-w64-mingw32-ar +WINDRES = x86_64-w64-mingw32-windres CFLAGS = -g -std=c99 -DPREFIX=\"$(PREFIX)\" -I $(PWD)/Common -fPIC LDFLAGS = LIBS = -lws2_32 EXEC = .exe LIB = .dll +PREOBJS = tewi.res diff --git a/Server/Makefile b/Server/Makefile index 78109d9..c746f1d 100644 --- a/Server/Makefile +++ b/Server/Makefile @@ -5,7 +5,7 @@ include $(PWD)/Platform/$(PLATFORM).mk .PHONY: all clean .SUFFIXES: .c .o -OBJS = version.o main.o config.o server.o http.o module.o strptime.o $(EXTOBJS) +OBJS = version.o main.o config.o server.o http.o module.o strptime.o $(EXTOBJS) $(PREOBJS) all: tewi$(EXEC) @@ -15,5 +15,8 @@ tewi$(EXEC): $(OBJS) ../Common/common.a .c.o: $(CC) $(CFLAGS) $(EXTCFLAGS) -c -o $@ $< +tewi.res: tewi.rc tewi.ico + $(WINDRES) tewi.rc -O coff -o $@ + clean: rm -f *.o tewi *.exe diff --git a/Server/tewi.ico b/Server/tewi.ico new file mode 100644 index 0000000000000000000000000000000000000000..0d2abef13e24edadfc33140769ec76f355b2e0c2 GIT binary patch literal 16958 zcmeHPcT`tbw)U-Av(~&>@6DT;%-D^+QbaHsjV6l57#%gSn?$3*h>k>2>;fuEQw)em zvmjPf>_}`BDFR|cu@@{@5RooH-&)^0-?^U4(r^!PLQ}%XR#n&mw$R`gYn=0PJRKMQYwyrJz9*?V+FXL zoQv3$^4I80$`cf?Nk!S}6iKB4DL6Ja45{G>c=6~3UOxEOQs#x*aGvOj_%+8+6rV4t zIIa+-aV02=E|jF>GGHVw{+^vwC^1!a53jvE@vFSAH0l{L(h4f!k2_tC)XYNUhGppZ zDTk*)Nmw`48&9r2`Iq6RY-9E(!fBxouAP2@q9b`IK9H+pR@gbdh<#q6+bU#Ga4fIN z-<3@Gyqb@)&5M7EJ3?+Lm&=fJw+va4=PKc+4IFmajHBC+{LAp~jQj=57Ww1cgHlO% zF6Zk!D!!>Zk~%jX`J1u>)896kK5|b!1?~2F`d!?-@&ri&|HX?>K|g(0JVtCaIaW6C;7X~~ ze@1o@ve%!kgr7d(G1e8uStajP26Lw^#o=?e@%VD7)OA5p9tu-SaP4*p&fY5n{ge8s z369#{qwqhvTqN<+2k%B^fS6St;27;3j`YLn?+yRy_zQ4fwO+1yHB*b<^k3?mIg0V0 zJnnvs%1UzOH;yjkVQnO`oIOpC2p6 z#oL+<+&%da#lh*7^v@XJYw!8q>VWjOUYLe z5xNf#&*w-#SGKR~&{SXVa9)-!YJr3@iHq~9xnCw~d7qe{AIL#L*aeh@XqXEEE9zcj z+%q1hd+kHi#)Iz#|IL#(u-i1Wez@Sh<+_rCk5RhulEhXVehCGeF5}r| z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?4J{JawJUA!w|gO4F%>2?H)IOG45k4`?*mm_@XR$SbdDZkt0J6k_z zfBpG)S=;np+WiXg{cBOGc>nh5U9ZAlnxcIJz&e2OPx=A-qvAYy%SnWLtbZ>&@co^i z$SoylVm*F$z|pX#zP8W}d0;*cofGhz?45F;zpQfhlXg$6)GglwEBwY$)n!&`x9?%+%$s-uD}EtK%wp z684g^F$v3NyNh=MPik!ox31h1_8eRz+)5Tth($ literal 0 HcmV?d00001 diff --git a/Server/tewi.rc b/Server/tewi.rc new file mode 100644 index 0000000..e021640 --- /dev/null +++ b/Server/tewi.rc @@ -0,0 +1,11 @@ +id ICON "./tewi.ico" +VS_VERSION_INFO VERSIONINFO +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904E4" + BEGIN + VALUE "ProductName", "Tewi HTTPd\0" + END + END +END -- 2.43.0