Skip to content

Commit

Permalink
windows: add icon and version informations
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed Feb 2, 2015
1 parent 1515e1c commit 5c22a0a
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 1 deletion.
7 changes: 7 additions & 0 deletions cpuminer.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@
<ClInclude Include="lyra2\Lyra2.h" />
<ClInclude Include="lyra2\Sponge.h" />
<ClInclude Include="miner.h" />
<ClInclude Include="res\resource.h" />
<ClInclude Include="scryptjane\scrypt-jane-chacha.h" />
<ClInclude Include="scryptjane\scrypt-jane-hash.h" />
<ClInclude Include="scryptjane\scrypt-jane-hash_keccak.h" />
Expand Down Expand Up @@ -336,6 +337,12 @@
<None Include="asm\scrypt-arm.S" />
<None Include="asm\sha2-arm.S" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\cpuminer.rc" />
</ItemGroup>
<ItemGroup>
<Image Include="res\cpuminer.ico" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<!-- Copy the required dlls -->
<Target Name="AfterBuild">
Expand Down
16 changes: 16 additions & 0 deletions cpuminer.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,9 @@
<ClInclude Include="crypto\int-util.h">
<Filter>crypto</Filter>
</ClInclude>
<ClInclude Include="res\resource.h">
<Filter>res</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Filter Include="sph">
Expand Down Expand Up @@ -453,6 +456,9 @@
<Filter Include="algo">
<UniqueIdentifier>{34f266e4-b48f-4721-ac34-474b65726498}</UniqueIdentifier>
</Filter>
<Filter Include="res">
<UniqueIdentifier>{5969f6d8-98c0-49c9-8e4c-51c54b5f0e16}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<None Include="asm\scrypt-arm.S">
Expand All @@ -462,4 +468,14 @@
<Filter>algo</Filter>
</None>
</ItemGroup>
<ItemGroup>
<Image Include="res\cpuminer.ico">
<Filter>res</Filter>
</Image>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\cpuminer.rc">
<Filter>res</Filter>
</ResourceCompile>
</ItemGroup>
</Project>
10 changes: 9 additions & 1 deletion mingw64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,17 @@ extracflags="-O3 -Wall -D_REENTRANT -fmerge-all-constants" # -funroll-loops -fva
CFLAGS="-DCURL_STATICLIB -DOPENSSL_NO_ASM -DUSE_ASM $extracflags"
# CPPFLAGS=""

./configure --build=x86_64-w64-mingw32 --with-crypto=$SSL_PREFIX --with-curl=$CURL_PREFIX CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS"
# icon
windres res/icon.rc icon.o

./configure --build=x86_64-w64-mingw32 --with-crypto=$SSL_PREFIX --with-curl=$CURL_PREFIX \
CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" LDFLAGS="icon.o"

make

strip -p --strip-debug --strip-unneeded cpuminer.exe

if [ -e sign.sh ] ; then
. sign.sh
fi

Binary file added res/cpuminer.ico
Binary file not shown.
Binary file added res/cpuminer.rc
Binary file not shown.
1 change: 1 addition & 0 deletions res/cpuminer.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions res/icon.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0 ICON cpuminer.ico
Binary file added res/resource.h
Binary file not shown.

0 comments on commit 5c22a0a

Please sign in to comment.