forked from qtumproject/qtum
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added libbitcoin_qt and bitcoin-qt to the msbuild configuration.
- Loading branch information
1 parent
189c19e
commit 1619684
Showing
9 changed files
with
515 additions
and
1,062 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,12 +7,16 @@ clone_depth: 5 | |
environment: | ||
APPVEYOR_SAVE_CACHE_ON_ERROR: true | ||
CLCACHE_SERVER: 1 | ||
PACKAGES: berkeleydb boost-filesystem boost-signals2 boost-test libevent openssl rapidcheck zeromq | ||
PACKAGES: berkeleydb boost-filesystem boost-signals2 boost-test libevent openssl rapidcheck zeromq double-conversion | ||
PATH: 'C:\Python37-x64;C:\Python37-x64\Scripts;%PATH%' | ||
PYTHONUTF8: 1 | ||
QT_DOWNLOAD_URL: 'https://github.com/sipsorcery/qt_win_binary/releases/download/v1.0/Qt5.9.7_ssl_x64_static_vs2017.zip' | ||
QT_DOWNLOAD_HASH: 'D4D35B8112302B67E5610A03421BB3E43FE13F14D9A5F637C22AE60DCEC0E0F5' | ||
QT_LOCAL_PATH: 'C:\Qt5.9.7_ssl_x64_static_vs2017' | ||
cache: | ||
- C:\tools\vcpkg\installed -> .appveyor.yml | ||
- C:\tools\vcpkg\installed | ||
- C:\Users\appveyor\clcache -> .appveyor.yml, build_msvc\**, **\Makefile.am, **\*.vcxproj.in | ||
- C:\Qt5.9.7_ssl_x64_static_vs2017 | ||
install: | ||
- cmd: pip install --quiet git+https://github.com/frerich/[email protected] | ||
# Disable zmq test for now since python zmq library on Windows would cause Access violation sometimes. | ||
|
@@ -22,6 +26,23 @@ install: | |
- cmd: vcpkg install --triplet %PLATFORM%-windows-static %PACKAGES% > NUL | ||
before_build: | ||
- ps: clcache -M 536870912 | ||
- ps: | | ||
if(!(Test-Path -Path ($env:QT_LOCAL_PATH))) { | ||
Write-Host "Downloading Qt binaries."; | ||
Invoke-WebRequest -Uri $env:QT_DOWNLOAD_URL -Out qtdownload.zip; | ||
Write-Host "Qt binaries successfully downloaded, checking hash against $env:QT_DOWNLOAD_HASH..."; | ||
if((Get-FileHash qtdownload.zip).Hash -eq $env:QT_DOWNLOAD_HASH) { | ||
Expand-Archive qtdownload.zip -DestinationPath $env:QT_LOCAL_PATH; | ||
Write-Host "Qt binary download matched the expected hash."; | ||
} | ||
else { | ||
Write-Host "ERROR: Qt binary download did not match the expected hash."; | ||
Exit-AppveyorBuild; | ||
} | ||
} | ||
else { | ||
Write-Host "Qt binaries already present."; | ||
} | ||
- cmd: python build_msvc\msvc-autogen.py | ||
- ps: $files = (Get-ChildItem -Recurse | where {$_.extension -eq ".vcxproj"}).FullName | ||
- ps: for (${i} = 0; ${i} -lt ${files}.length; ${i}++) { | ||
|
@@ -37,10 +58,13 @@ build_script: | |
after_build: | ||
- ps: fsutil behavior set disablelastaccess 1 # Disable Access time feature on Windows (better performance) | ||
- ps: clcache -z | ||
#- 7z a bitcoin-%APPVEYOR_BUILD_VERSION%.zip %APPVEYOR_BUILD_FOLDER%\build_msvc\%platform%\%configuration%\*.exe | ||
test_script: | ||
- cmd: src\test_bitcoin.exe -k stdout -e stdout 2> NUL | ||
- cmd: src\bench_bitcoin.exe -evals=1 -scaling=0 > NUL | ||
- ps: python test\util\bitcoin-util-test.py | ||
- cmd: python test\util\rpcauth-test.py | ||
- cmd: python test\functional\test_runner.py --ci --quiet --combinedlogslen=4000 --failfast | ||
artifacts: | ||
#- path: bitcoin-%APPVEYOR_BUILD_VERSION%.zip | ||
deploy: off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,5 @@ packages/* | |
*.vcxproj.user | ||
*.vcxproj | ||
*/Win32 | ||
libbitcoin_qt/QtGeneratedFiles/* | ||
test_bitcoin-qt/QtGeneratedFiles/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="..\common.init.vcxproj" /> | ||
<Import Project="..\common.qt.init.vcxproj" /> | ||
<PropertyGroup Label="Globals"> | ||
<ProjectGuid>{7E99172D-7FF2-4CB6-B736-AC9B76ED412A}</ProjectGuid> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<ClCompile Include="..\..\src\qt\main.cpp" /> | ||
<ResourceCompile Include="..\..\src\qt\res\bitcoin-qt-res.rc" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\libbitcoinconsensus\libbitcoinconsensus.vcxproj"> | ||
<Project>{2b384fa8-9ee1-4544-93cb-0d733c25e8ce}</Project> | ||
</ProjectReference> | ||
<ProjectReference Include="..\libbitcoin_cli\libbitcoin_cli.vcxproj"> | ||
<Project>{0667528c-d734-4009-adf9-c0d6c4a5a5a6}</Project> | ||
</ProjectReference> | ||
<ProjectReference Include="..\libbitcoin_common\libbitcoin_common.vcxproj"> | ||
<Project>{7c87e378-df58-482e-aa2f-1bc129bc19ce}</Project> | ||
</ProjectReference> | ||
<ProjectReference Include="..\libbitcoin_crypto\libbitcoin_crypto.vcxproj"> | ||
<Project>{6190199c-6cf4-4dad-bfbd-93fa72a760c1}</Project> | ||
</ProjectReference> | ||
<ProjectReference Include="..\libbitcoin_qt\libbitcoin_qt.vcxproj"> | ||
<Project>{2b4abff8-d1fd-4845-88c9-1f3c0a6512bf}</Project> | ||
</ProjectReference> | ||
<ProjectReference Include="..\libbitcoin_server\libbitcoin_server.vcxproj"> | ||
<Project>{460fee33-1fe1-483f-b3bf-931ff8e969a5}</Project> | ||
</ProjectReference> | ||
<ProjectReference Include="..\libbitcoin_util\libbitcoin_util.vcxproj"> | ||
<Project>{b53a5535-ee9d-4c6f-9a26-f79ee3bc3754}</Project> | ||
</ProjectReference> | ||
<ProjectReference Include="..\libbitcoin_wallet\libbitcoin_wallet.vcxproj"> | ||
<Project>{93b86837-b543-48a5-a89b-7c87abb77df2}</Project> | ||
</ProjectReference> | ||
<ProjectReference Include="..\libbitcoin_zmq\libbitcoin_zmq.vcxproj"> | ||
<Project>{792d487f-f14c-49fc-a9de-3fc150f31c3f}</Project> | ||
</ProjectReference> | ||
<ProjectReference Include="..\libleveldb\libleveldb.vcxproj"> | ||
<Project>{18430fef-6b61-4c53-b396-718e02850f1b}</Project> | ||
</ProjectReference> | ||
<ProjectReference Include="..\libsecp256k1\libsecp256k1.vcxproj"> | ||
<Project>{bb493552-3b8c-4a8c-bf69-a6e7a51d2ea6}</Project> | ||
</ProjectReference> | ||
<ProjectReference Include="..\libunivalue\libunivalue.vcxproj"> | ||
<Project>{5724ba7d-a09a-4ba8-800b-c4c1561b3d69}</Project> | ||
</ProjectReference> | ||
</ItemGroup> | ||
|
||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<ClCompile> | ||
<AdditionalIncludeDirectories>$(QtIncludes);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
</ClCompile> | ||
<Link> | ||
<AdditionalDependencies>$(QtReleaseLibraries);%(AdditionalDependencies)</AdditionalDependencies> | ||
</Link> | ||
<ResourceCompile> | ||
<AdditionalIncludeDirectories>..\..\src;</AdditionalIncludeDirectories> | ||
<PreprocessorDefinitions>HAVE_CONFIG_H;_UNICODE;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
</ResourceCompile> | ||
</ItemDefinitionGroup> | ||
|
||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<ClCompile> | ||
<AdditionalIncludeDirectories>$(QtIncludes);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
</ClCompile> | ||
<Link> | ||
<AdditionalDependencies>$(QtDebugLibraries);%(AdditionalDependencies)</AdditionalDependencies> | ||
</Link> | ||
<ResourceCompile> | ||
<AdditionalIncludeDirectories>..\..\src;</AdditionalIncludeDirectories> | ||
<PreprocessorDefinitions>HAVE_CONFIG_H;_UNICODE;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
</ResourceCompile> | ||
</ItemDefinitionGroup> | ||
|
||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.