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 000000000..74d3f39fb Binary files /dev/null and b/src/ngspice.ico differ