From db28c65455b0343b9d65b713e81a73e8a42d50d1 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sat, 16 May 2020 14:08:46 +0200 Subject: [PATCH] adding the ngspice icon to the MINGW executable --- compile_min.sh | 4 ++++ src/Makefile.am | 4 ++++ src/ngicon.rc | 1 + src/ngspice.ico | Bin 0 -> 766 bytes 4 files changed, 9 insertions(+) create mode 100644 src/ngicon.rc create mode 100644 src/ngspice.ico diff --git a/compile_min.sh b/compile_min.sh index 4b4825bd1..1390a840c 100755 --- a/compile_min.sh +++ b/compile_min.sh @@ -70,6 +70,10 @@ echo "cleaning (see make_clean.log)" make clean 2>&1 -j8 | tee make_clean.log exitcode=${PIPESTATUS[0]} if [ $exitcode -ne 0 ]; then echo "make clean failed"; exit 1 ; fi +echo "compiling the icon" +windres ../src/ngicon.rc -O coff -o ./src/ngicon.o +exitcode=${PIPESTATUS[0]} +if [ $exitcode -ne 0 ]; then echo "compiling the icon failed"; exit 1 ; fi echo "compiling (see make.log)" make 2>&1 -j8 | tee make.log exitcode=${PIPESTATUS[0]} diff --git a/src/Makefile.am b/src/Makefile.am index 8364bb000..6412bbeae 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -192,6 +192,10 @@ ngspice_LDADD += frontend/help/libhlp.la endif endif +if WINGUI +ngspice_LDADD += ngicon.o +endif + if OLDAPPS ## nutmeg: diff --git a/src/ngicon.rc b/src/ngicon.rc new file mode 100644 index 000000000..5d2206e23 --- /dev/null +++ b/src/ngicon.rc @@ -0,0 +1 @@ +101 ICON ngspice.ico diff --git a/src/ngspice.ico b/src/ngspice.ico new file mode 100644 index 0000000000000000000000000000000000000000..74d3f39fbf29fd7e20d23672966372fb58604117 GIT binary patch literal 766 zcmc&xITFJl3|wc@J5_4RJR?u@)BFHt{Ed`;05fD)fMR^q5eT%pkOVMrh427y$L9t- zDZR*n{3Z|78`0KC-r_R4t7f*_q=b5(***0>PMCOu8IChj%2jddyw4t~VtfOm^ zqzyK-s%rOH#{+iTF