Browse Source

adding the ngspice icon to the MINGW executable

pre-master-46
Holger Vogt 6 years ago
parent
commit
db28c65455
  1. 4
      compile_min.sh
  2. 4
      src/Makefile.am
  3. 1
      src/ngicon.rc
  4. BIN
      src/ngspice.ico

4
compile_min.sh

@ -70,6 +70,10 @@ echo "cleaning (see make_clean.log)"
make clean 2>&1 -j8 | tee make_clean.log make clean 2>&1 -j8 | tee make_clean.log
exitcode=${PIPESTATUS[0]} exitcode=${PIPESTATUS[0]}
if [ $exitcode -ne 0 ]; then echo "make clean failed"; exit 1 ; fi 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)" echo "compiling (see make.log)"
make 2>&1 -j8 | tee make.log make 2>&1 -j8 | tee make.log
exitcode=${PIPESTATUS[0]} exitcode=${PIPESTATUS[0]}

4
src/Makefile.am

@ -192,6 +192,10 @@ ngspice_LDADD += frontend/help/libhlp.la
endif endif
endif endif
if WINGUI
ngspice_LDADD += ngicon.o
endif
if OLDAPPS if OLDAPPS
## nutmeg: ## nutmeg:

1
src/ngicon.rc

@ -0,0 +1 @@
101 ICON ngspice.ico

BIN
src/ngspice.ico

Loading…
Cancel
Save