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

使用“ DESTDIR ”变量分离二进制文件 #57

Merged

Conversation

pzhlkj6612
Copy link
Member

@pzhlkj6612 pzhlkj6612 commented Feb 13, 2020

本 PR 拆分至 #35 ,经过 #54 的尝试,最后由 #35 (comment) 定好方向。


无论是否有debug_and_releasedebug_and_release_target标志,也不管是否启用 Shadow build ,输出的文件始终都位于$${OUT_PWD}/[ debug | release ]_bin文件夹,方便后续的操作(例如使用 windeployqt 部署 Qt 库或使用 Inno Setup 提取文件)。

经测试,debug_and_release_target的作用会被$$DESTDIR覆盖。


本 PR 已在以下环境通过测试:

  • Qt 5.14.1 (macOS 10.15, Windows 10 1903, Windows 10 1909, Ubuntu 18.04.3 and Ubuntu 18.04.4)
  • Qt 5.13.2 (macOS 10.14)
  • Qt 5.9.8 (Windows 10 1903 and Ubuntu 18.04.3)

一些有序或者杂乱的资料:

@pzhlkj6612 pzhlkj6612 force-pushed the qmake_separate_folder_for_binary branch 3 times, most recently from e85ec2a to 478d0ba Compare February 23, 2020 03:36
1. Add "$$DESTDIR" to put the binaries into `[ debug | release ]_bin` folders in the dictionary of output.
2. Update README.md .
@pzhlkj6612 pzhlkj6612 force-pushed the qmake_separate_folder_for_binary branch from 478d0ba to ce907f9 Compare February 23, 2020 03:59
@pzhlkj6612 pzhlkj6612 merged commit 4ad293c into BesLyric-for-X:master Feb 23, 2020
@pzhlkj6612 pzhlkj6612 deleted the qmake_separate_folder_for_binary branch February 23, 2020 04:31
@pzhlkj6612 pzhlkj6612 added this to the Next Release milestone Feb 24, 2020
@BensonLaur BensonLaur mentioned this pull request Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant