Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Copy appropriate MSVC build output to src/qt automatically #22917

Closed
wants to merge 1 commit into from

Conversation

hebasto
Copy link
Member

@hebasto hebasto commented Sep 8, 2021

This functionality is already present for non-qt output since #16308, and it was skipped to add in #15529.

Not finding bitcoin-qt.exe and test_bitcoin-qt.exe in the src\qt\ folder could confuse users.

This PR fixes that issue in the same way like #16308 did.

This functionality is already present for non-qt output since bitcoin#16308.
@hebasto
Copy link
Member Author

hebasto commented Sep 8, 2021

<Copy SourceFiles="@(BuildArtifacts)" SkipUnchangedFiles="true" DestinationFolder="..\..\src\qt\" Condition="'$(OutDir)' != ''"></Copy>
</Target>
<Import Project="common.qt.vcxproj.user" Condition="Exists('common.qt.vcxproj.user')" />
</Project>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do the Qt exe's need to be copied to src\qt for any paricular reason? Is that where the test scripts look for them? I believe Nicolas originally added the common.vcxproj config to copy the exe's to the src directory for conveniece. Perhaps it's sufficient here as well and avoids the need for the new common.qt.vcxproj file?

Copy link
Member Author

@hebasto hebasto Sep 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No test script uses bitcoin-qt.exe. The only reason is my confusion:

Not finding bitcoin-qt.exe ... in the src\qt\ folder could confuse users.

Probably, it is just my biased personal opinion.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the test scripts don't need it in src\qt then I would recommend just including common.vcxproj and not bothering with the new common.qt.vcxproj file. Windows devs will normally look in the default output directory of build_msvc\x64\Release directory.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Windows devs will normally look in the default output directory of build_msvc\x64\Release directory.

Agree. Going to close this.

@hebasto hebasto closed this Sep 8, 2021
@bitcoin bitcoin locked and limited conversation to collaborators Oct 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants