Browse Source

add windows program (.exe) icon

miguelfreitas
Wladimir J. van der Laan 14 years ago
parent
commit
8a13456f3a
  1. 1
      bitcoin-qt.pro
  2. 9
      scripts/make_windows_icon.py
  3. 1
      src/qt/res/bitcoin-qt.rc
  4. BIN
      src/qt/res/icons/bitcoin.ico

1
bitcoin-qt.pro

@ -11,6 +11,7 @@ macx:DEFINES += __WXMAC_OSX__ MSG_NOSIGNAL=0 BOOST_FILESYSTEM_VERSION=3 @@ -11,6 +11,7 @@ macx:DEFINES += __WXMAC_OSX__ MSG_NOSIGNAL=0 BOOST_FILESYSTEM_VERSION=3
macx:LIBS += -lboost_thread-mt -lboost_system-mt -lboost_filesystem-mt -lboost_program_options-mt
windows:DEFINES += __WXMSW__
windows:LIBS += -lssl -lcrypto -lboost_system-mgw44-mt-1_43 -lboost_filesystem-mgw44-mt-1_43 -lboost_program_options-mgw44-mt-1_43 -lboost_thread-mgw44-mt-1_43 -ldb_cxx -lws2_32 -lgdi32
windows:RC_FILE = src/qt/res/bitcoin-qt.rc
# for extra security against potential buffer overflows
QMAKE_CXXFLAGS += -fstack-protector

9
scripts/make_windows_icon.py

@ -0,0 +1,9 @@ @@ -0,0 +1,9 @@
#!/bin/bash
# create multiresolution windows icon
ICON_SRC=../src/qt/res/icons/bitcoin.png
ICON_DST=../src/qt/res/icons/bitcoin.ico
convert ${ICON_SRC} -resize 16x16 bitcoin-16.png
convert ${ICON_SRC} -resize 32x32 bitcoin-32.png
convert ${ICON_SRC} -resize 48x48 bitcoin-48.png
convert bitcoin-16.png bitcoin-32.png bitcoin-48.png ${ICON_DST}

1
src/qt/res/bitcoin-qt.rc

@ -0,0 +1 @@ @@ -0,0 +1 @@
IDI_ICON1 ICON DISCARDABLE "icons/bitcoin.ico"

BIN
src/qt/res/icons/bitcoin.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Loading…
Cancel
Save