9 Commits

Author SHA1 Message Date
gerard-ryan-immersaview
6db51d86a9
[vcpkg_replace_string] warn unchanged by call (#34719)
If a call to `vcpkg_replace_string` makes no changes i.e doesn't
effectively replace a string, A warning is logged.

This should also help identify ports that no longer need these calls to
fix things in `.pc` files etc.
2024-06-19 14:07:05 -07:00
Kai Pastor
47633daa65
[vcpkg-scripts] Catch use of ambiguous cmake vars (#34546)
Avoid wrong use of popular but ambiguous variables (`WIN32` etc.) in
scripts and portfiles by detection in CI.

Sometimes the variables are used wrongly, and sometimes this isn't
caught in PR review. This PR tries to catch those variables (when in the
active code path in script mode). [This can happen to every
contributor](https://github.com/microsoft/vcpkg/pull/34356#discussion_r1360074122),
even if he/she knows the rules ... vcpkg is raising the bar higher than
usual, having to deal with targets and hosts even in script mode.

(`b2-options.cmake` (boost fragment) shows where we get if we don't pay
attention: the same code being used in script mode (`WIN32` meaning
host) and in project mode (`WIN32` meaning target).)

The new check doesn't break any user builds because it relies on command
line options. However it changes the ABI hashes.
2024-06-14 11:40:01 -07:00
JonLiu1993
c4c8038caa
[vcpkg-qmake] Remove unnecessary directory (#37752)
Recently when I was using vcpkg-qmake, I found that a function in the
`ports/vcpkg-qmake/vcpkg_qmake_configure.cmake` file was repeated:

be9eb66945/ports/vcpkg-qmake/vcpkg_qmake_configure.cmake (L143)
By running this line of code, we will configure the generated `qt.conf`
file. At the same time, if the
`${CURRENT_BUILDTREES_DIR}/${config_triplet}/` path does not exist, we
will also generate it.
Then we back up the environment variables and run the code
be9eb66945/ports/vcpkg-qmake/vcpkg_qmake_configure.cmake (L149)
to generate the existing path above.
2024-03-28 12:37:50 -07:00
مهدي شينون (Mehdi Chinoune)
84df5613f7
[qscintilla] build against Qt6 (#30307)
* [vcpkg-qmake] set QMAKE_MACOSX_DEPLOYMENT_TARGET based on Qt version

* qscintilla: build against Qt6
2023-03-28 11:52:15 -07:00
Alexander Neumann
3776224fd2
[qwt|vcpkg-qmake] Update and switch to Qt6 (#22012) 2022-11-17 00:35:23 -08:00
Robert Schumacher
7d2449c346
[docs] Delete embedded documentation in favor of docs/ (#25096)
* [docs] Delete embedded documentation in favor of docs/

Drive-by for the helper ports:
1. "documentation": "https://vcpkg.io/en/docs/README.html"
2. "license": "MIT"
3. Use `include_guard(GLOBAL)` in all script files
4. Make sure any persistent variables are saved to the cache

* [docs] Restore empty regenerate.ps1 to satisfy Azure Pipelines

* [docs] PR comments
2022-06-07 16:26:51 -07:00
Alexander Neumann
bae8f8c7d8
[world rebuild] Move vcpkg-cmake-get-vars to its own port (#24636)
* move vcpkg-cmake-get-vars to its own helper port

* manifest format

* version stuff

* doc and version stuff

* add missing include

* version bump

* remove coypright copying.

* version stuff

Co-authored-by: Alexander Neumann <you@example.com>
2022-05-11 16:51:06 -07:00
Robert Schumacher
54951282f3
[boost-modular-build-helper] Pass flags more correctly into b2 (#23001)
* [vcpkg-cmake][boost-modular-build-helper] Rework vcpkg_cmake_get_vars to produce fully cooked flags

* [ffmpeg] Fix arm-uwp builds

* [ffmpeg] Fix arm-uwp builds

* [ffmpeg] Fix arm64-windows

* [ffmpeg] Fix arm64-windows

* [ffmpeg] Update version after merge

* [boost-modular-build-helper] Add <linkflags> to requirements

* Address PR comments

Co-authored-by: PhoebeHui <20694052+PhoebeHui@users.noreply.github.com>
Co-authored-by: Victor Romero <viromer@microsoft.com>
2022-03-30 14:52:25 -07:00
Alexander Neumann
64e658f3e7
[vcpkg-qmake] initial add for qt6 (#20963)
* add vcpkg-qmake

* add missing ,

* format manifest

* fix silly $( mistake

* fix syntax issues

* fix if since cmake port seems to b e out of sync

* add qwt test port

* wip transfer commit

* fix remaining issues. add docs.

* enable verbose output

* fix qt.conf and prl files

* [skip actions] add missing ()

* disable debug flag

* prl files are not only in /lib

* bump qtbase version

* version stuff

* more prl fixes.

* update version

* revert qwt update

* version stuff

* revert changes to qtbase

* make vcpkg-cmake a direct dependency

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>

* add supports native. remove host deps.

* remove comment

* format manifest

* overwrite version

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2021-11-23 11:41:33 -08:00