Skip to content

Commit

Permalink
add windows program (.exe) icon
Browse files Browse the repository at this point in the history
  • Loading branch information
laanwj committed Jul 24, 2011
1 parent 1a925b8 commit 8a13456
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions bitcoin-qt.pro
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions scripts/make_windows_icon.py
Original file line number Diff line number Diff line change
@@ -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 change: 1 addition & 0 deletions src/qt/res/bitcoin-qt.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
IDI_ICON1 ICON DISCARDABLE "icons/bitcoin.ico"
Binary file added src/qt/res/icons/bitcoin.ico
Binary file not shown.

0 comments on commit 8a13456

Please sign in to comment.