From a9a6f4149d083214390cdea3d06707ac0f895f91 Mon Sep 17 00:00:00 2001 From: nishi Date: Mon, 22 Jan 2024 00:06:13 +0000 Subject: [PATCH] icon git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@44 d27a3e52-49c5-7645-884c-6793ebffc270 --- Example/Makefile | 7 +++++-- Example/fetch.rc | 11 +++++++++++ Makefile | 4 +++- w3.ico | Bin 0 -> 9662 bytes 4 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 Example/fetch.rc create mode 100644 w3.ico diff --git a/Example/Makefile b/Example/Makefile index 5b11d93..4742441 100644 --- a/Example/Makefile +++ b/Example/Makefile @@ -1,8 +1,11 @@ # $Id$: .PHONY: clean install -./fetch: ./fetch.c - $(CC) -o $@ -I ../Library -L ../Library $< -lw3 +./fetch: ./fetch.c $(RESFILE) + $(CC) -o $@ -I ../Library -L ../Library $^ -lw3 + +./fetch.res: ./fetch.rc + $(WINDRES) $< -O coff -o $@ clean: rm -f fetch *.o *.so *.core *~ *.exe diff --git a/Example/fetch.rc b/Example/fetch.rc new file mode 100644 index 0000000..f3653e7 --- /dev/null +++ b/Example/fetch.rc @@ -0,0 +1,11 @@ +id ICON "../w3.ico" +VS_VERSION_INFO VERSIONINFO +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "041104B0" + BEGIN + VALUE "FileDescription", "LibW3 Fetch" + END + END +END diff --git a/Makefile b/Makefile index 6afceb6..29233ab 100644 --- a/Makefile +++ b/Makefile @@ -16,11 +16,13 @@ endif ifeq ($(WIN32),YES) CC := i686-w64-mingw32-gcc +WINDRES := i686-w64-mingw32-windres WINDOWS := YES endif ifeq ($(WIN64),YES) CC := x86_64-w64-mingw32-gcc +WINDRES := x86_64-w64-mingw32-windres WINDOWS := YES endif @@ -43,7 +45,7 @@ all: ./w3.pc ./Library/W3Version.h $(ALL) $(MAKE) -C ./Library CC=$(CC) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LIBS)" WINDOWS=YES ./Example/fetch.exe: ./Library/w3.dll - $(MAKE) -C ./Example CC=$(CC) fetch + $(MAKE) -C ./Example CC=$(CC) fetch RESFILE=./fetch.res WINDRES=$(WINDRES) ./Library/W3Version.h: m4 -DSUFFIX=\"W\" ./W3Version.h.p > $@ diff --git a/w3.ico b/w3.ico new file mode 100644 index 0000000000000000000000000000000000000000..a84c23d83e29fd39c1e98c0a18dc1e76bcf63edc GIT binary patch literal 9662 zcmd6rO>PrG5QQ7D2pbeuh}|Fo5-XG&WXURbK;jgv$N{|ZEw}}66CZ&cUI0Uvd%kqJ zr~1#H*bbV!?y6U>UbTB13Fn^pe>XSI|9srRbMC!=e8_$BkHmLBZ=HMdAv_^4 z|9y9NH_oGd5z(-oK9x51dcA(|t9!Op+pKT~U%YO7Ld@nb5ykszwR$+aLv>H>Uwaq- z$Ifs{|CaZ3hTy0D(^$fPPtT=hKqu#)eC;IQ1)Ul@wQjc2VZ+T&> z_MLl9BXBQe2K=NxOM7b0Jp(>UUUNBW&pCti&iSjwLv8#X;~mh*jQXxFxn9D*_`#?4 z&YIkkzR_CB|G8#3)PL?wiF5WE$#Hf|VAQPL_Wiun<@%$ky|X5ltCct$jWzzhyZTPF zYnsBrw?=%W^~BRU9ZzdyFZsIT$Ux81(lL12J8N?EXHVWjID%H6=&-y>>$O(8rf1EM zmCwb{)V+eIxo@~B>e||xTFZ~*a`9T7nM#4u_iB4Dd^uy*V^nJ*4_Q^>9;-L-*)e-X+(nThh@Q@GR84*0tyy>z!VB z%IT4xegg|ByHEN5 zQd;J)bc45?^AHc5w*L7ZZS|!&MBCCYyASU`>kPL3@!n;wL;cHq$M|opEuH--{Xf=c zVCjalsokKorgm#sdnwWT|RU-a4IuZBGygq!{i=&85nkoureb2`t* z+WPsI-nDbg(CeMEqwbua10L|yi_|YQ1A6ltl8?licz1}UXw3)5nt@ynwH}eK@q&+d{`jY(_RE^wC1B0}C3q}(;7n62)f}4p zJ#L55e{+4F@aKg06S~{&@Ym<>ht1X2iACEizr*qu-^6@?N{85^HoRB$&sot8?$6ok3$6@21`Qq{W);$*- Rx9&RNtJ{EsoVSnf@ISd+CEfr4 literal 0 HcmV?d00001 -- 2.43.0