-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
add vcpkg-qmake for qt6 #20963
add vcpkg-qmake for qt6 #20963
Conversation
ccc0fed
to
fd16572
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 2169ab765b49cfc5cd7eddfc8ff3e579326776f8 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/baseline.json b/versions/baseline.json
index 08c5a89..3d3816e 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -6972,6 +6972,10 @@
"baseline": "2021-04-02",
"port-version": 1
},
+ "vcpkg-qmake": {
+ "baseline": "2021-10-23",
+ "port-version": 0
+ },
"vcpkg-tool-nodejs": {
"baseline": "14.17.4",
"port-version": 0
This comment has been minimized.
This comment has been minimized.
@MehdiChinoune |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 2169ab765b49cfc5cd7eddfc8ff3e579326776f8 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/baseline.json b/versions/baseline.json
index 08c5a89..3d3816e 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -6972,6 +6972,10 @@
"baseline": "2021-04-02",
"port-version": 1
},
+ "vcpkg-qmake": {
+ "baseline": "2021-10-23",
+ "port-version": 0
+ },
"vcpkg-tool-nodejs": {
"baseline": "14.17.4",
"port-version": 0
qwt: vcpkg_from_sourceforge(
OUT_SOURCE_PATH SOURCE_PATH
REPO qwt/qwt
REF 6.2.0
FILENAME "qwt-6.2.0.zip"
SHA512 a3946c6e23481b5a2193819a1c1298db5a069d514ca60de54accb3a249403f5acd778172ae6fae24fae252767b1e58deba524de6225462f1bafd7c947996aae9
)
vcpkg_qmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
if (VCPKG_TARGET_IS_WINDOWS)
vcpkg_install_qmake(
RELEASE_TARGETS sub-src-release_ordered
DEBUG_TARGETS sub-src-debug_ordered
)
else ()
vcpkg_install_qmake(
RELEASE_TARGETS sub-src-all-ordered
DEBUG_TARGETS sub-src-all-ordered
)
endif()
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()
#Install the header files
file(GLOB HEADER_FILES "${SOURCE_PATH}/src/*.h")
file(INSTALL ${HEADER_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}")
# Handle copyright
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) vcpkg.json: {
"name": "qwt",
"version-semver": "6.2.0",
"port-version": 1,
"description": "qt widgets library for technical applications",
"homepage": "https://sourceforge.net/projects/qwt",
"dependencies": [
{
"name": "vcpkg-qmake",
"host": true,
"default-features": false
},
{
"name": "qtbase",
"default-features": false
},
"qtsvg",
"qttools"
]
} |
What's the different between vcpkg-qmake and vcpkg_*_qmake? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
All manifest files must be formatted
./vcpkg format-manifest ports/*/vcpkg.json
Diff
diff --git a/ports/qwt/vcpkg.json b/ports/qwt/vcpkg.json
index 96dca1b..862195e 100644
--- a/ports/qwt/vcpkg.json
+++ b/ports/qwt/vcpkg.json
@@ -5,16 +5,16 @@
"description": "qt widgets library for technical applications",
"homepage": "https://sourceforge.net/projects/qwt",
"dependencies": [
- {
- "name": "vcpkg-qmake",
- "host": true,
- "default-features": false
- },
{
"name": "qtbase",
"default-features": false
},
"qtsvg",
- "qttools"
+ "qttools",
+ {
+ "name": "vcpkg-qmake",
+ "host": true,
+ "default-features": false
+ }
]
-}
\ No newline at end of file
+}
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 2169ab765b49cfc5cd7eddfc8ff3e579326776f8 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/baseline.json b/versions/baseline.json
index 08c5a89..d426982 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -5762,7 +5762,7 @@
},
"qwt": {
"baseline": "6.2.0",
- "port-version": 0
+ "port-version": 1
},
"qwtw": {
"baseline": "3.1.0",
@@ -6972,6 +6972,10 @@
"baseline": "2021-04-02",
"port-version": 1
},
+ "vcpkg-qmake": {
+ "baseline": "2021-10-23",
+ "port-version": 0
+ },
"vcpkg-tool-nodejs": {
"baseline": "14.17.4",
"port-version": 0
diff --git a/versions/q-/qwt.json b/versions/q-/qwt.json
index 21451b5..34545e3 100644
--- a/versions/q-/qwt.json
+++ b/versions/q-/qwt.json
@@ -1,5 +1,10 @@
{
"versions": [
+ {
+ "git-tree": "cbbcd74a4148208919161e2e3152d7d407f8869b",
+ "version-semver": "6.2.0",
+ "port-version": 1
+ },
{
"git-tree": "e7204097fda082c43e704e356702fd77aa3c9a52",
"version-semver": "6.2.0",
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
All manifest files must be formatted
./vcpkg format-manifest ports/*/vcpkg.json
Diff
diff --git a/ports/qwt/vcpkg.json b/ports/qwt/vcpkg.json
index 96dca1b..862195e 100644
--- a/ports/qwt/vcpkg.json
+++ b/ports/qwt/vcpkg.json
@@ -5,16 +5,16 @@
"description": "qt widgets library for technical applications",
"homepage": "https://sourceforge.net/projects/qwt",
"dependencies": [
- {
- "name": "vcpkg-qmake",
- "host": true,
- "default-features": false
- },
{
"name": "qtbase",
"default-features": false
},
"qtsvg",
- "qttools"
+ "qttools",
+ {
+ "name": "vcpkg-qmake",
+ "host": true,
+ "default-features": false
+ }
]
-}
\ No newline at end of file
+}
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 2169ab765b49cfc5cd7eddfc8ff3e579326776f8 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/baseline.json b/versions/baseline.json
index 08c5a89..d426982 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -5762,7 +5762,7 @@
},
"qwt": {
"baseline": "6.2.0",
- "port-version": 0
+ "port-version": 1
},
"qwtw": {
"baseline": "3.1.0",
@@ -6972,6 +6972,10 @@
"baseline": "2021-04-02",
"port-version": 1
},
+ "vcpkg-qmake": {
+ "baseline": "2021-10-23",
+ "port-version": 0
+ },
"vcpkg-tool-nodejs": {
"baseline": "14.17.4",
"port-version": 0
diff --git a/versions/q-/qwt.json b/versions/q-/qwt.json
index 21451b5..34545e3 100644
--- a/versions/q-/qwt.json
+++ b/versions/q-/qwt.json
@@ -1,5 +1,10 @@
{
"versions": [
+ {
+ "git-tree": "cbbcd74a4148208919161e2e3152d7d407f8869b",
+ "version-semver": "6.2.0",
+ "port-version": 1
+ },
{
"git-tree": "e7204097fda082c43e704e356702fd77aa3c9a52",
"version-semver": "6.2.0",
@MehdiChinoune could you fix the static build issues? It seems like your dependencies in |
The dependencies are the same as before, I have just replaced the qt5-* with qt* . |
qt6 has a lot more features than qt5 which are off by default. |
cc @strega-nil-ms please check scripts for cmake guidelines |
Can this replace my PR #20322? |
No, this PR is only about Qt6 and not Qt5. You could copy the code over and change it to use Qt5 though. |
… vcpkg-qmake # Conflicts: # versions/q-/qtbase.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
PRs must add only one version and must not modify any published versions
When making any changes to a library, the version or port-version in vcpkg.json
or CONTROL
must be modified.
Error: Local changes detected for qtbase but no changes to version or port version.
-- Version: 6.2.1
-- Old SHA: 85405a7d213571f8da152112d436292099c5a4ab
-- New SHA: 5a3585832a53ae3c6dda810dc921e9ff33fde98c
-- Did you remember to update the version or port version?
-- Pass `--overwrite-version` to bypass this check.
***No files were updated.***
Any news? |
@@ -0,0 +1,23 @@ | |||
Copyright (c) Microsoft Corporation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may want to just provide a file that says "This helper port is part of vcpkg and is under the vcpkg license terms" instead of a duplicate license.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is just copied over from vcpkg-cmake. I don't even now why you require this for the vcpkg scripts. (just touch the file vcpkg-tool wants to see)
ports/vcpkg-qmake/vcpkg.json
Outdated
"dependencies": [ | ||
{ | ||
"name": "pkgconf", | ||
"host": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might make sense to make all these dependencies non-host and require this port to always be natively compiled. Then, you know you can use relative paths for host dependencies and ${CURRENT_INSTALLED_DIR}
for target dependencies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the command paths still need to be absolute. (Or i need to calculate the relative path from the working dir to the executable - wherever that might be.)
include_guard(GLOBAL) | ||
function(vcpkg_qmake_configure) | ||
cmake_parse_arguments(PARSE_ARGV 0 arg "" "SOURCE_PATH" "QMAKE_OPTIONS;QMAKE_OPTIONS_RELEASE;QMAKE_OPTIONS_DEBUG;OPTIONS;OPTIONS_RELEASE;OPTIONS_DEBUG") | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming the dependencies are converted to native dependencies, it might make sense to calculate a "QMAKE_HOST_DIR" from ${CMAKE_CURRENT_LIST_DIR}
and use that for all host dependencies in this function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get the added benefit of that. CURRENT_HOST_INSTALLED_DIR
and QMAKE_HOST_DIR
will point to the same directory however it is calculated
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
PRs must add only one version and must not modify any published versions
When making any changes to a library, the version or port-version in vcpkg.json
or CONTROL
must be modified.
Error: Local changes detected for vcpkg-qmake but no changes to version or port version.
-- Version: 2021-10-23
-- Old SHA: 2cd969cb31fe15b86008720c8539be521f07e1c6
-- New SHA: 98523aed5a3e3367fee4e5d54fc663da90e76dbc
-- Did you remember to update the version or port version?
-- Pass `--overwrite-version` to bypass this check.
***No files were updated.***
Ping @ras0219-msft for response. |
LGTM, thanks for making the changes! |
QMake for Qt6 (
untested since no dependent port so far.)