mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-06 05:52:49 +08:00
[vcpkg_from_github] Improve documentation to include PATCHES argument
This commit is contained in:
parent
50f45eb230
commit
393ac2880a
@ -10,6 +10,7 @@ vcpkg_from_github(
|
||||
[REF <v2.0.0>]
|
||||
[SHA512 <45d0d7f8cc350...>]
|
||||
[HEAD_REF <master>]
|
||||
[PATCHES <patch1.patch> <patch2.patch>...]
|
||||
)
|
||||
```
|
||||
|
||||
@ -23,7 +24,7 @@ This should be set to `SOURCE_PATH` by convention.
|
||||
The organization or user and repository on GitHub.
|
||||
|
||||
### REF
|
||||
A stable git commit-ish (ideally a tag) that will not change contents. **This should not be a branch.**
|
||||
A stable git commit-ish (ideally a tag or commit) that will not change contents. **This should not be a branch.**
|
||||
|
||||
For repositories without official releases, this can be set to the full commit id of the current latest master.
|
||||
|
||||
@ -39,6 +40,11 @@ The unstable git commit-ish (ideally a branch) to pull for `--head` builds.
|
||||
|
||||
For most projects, this should be `master`. The chosen branch should be one that is expected to be always buildable on all supported platforms.
|
||||
|
||||
### PATCHES
|
||||
A list of patches to be applied to the extracted sources.
|
||||
|
||||
Relative paths are based on the port directory.
|
||||
|
||||
## Notes:
|
||||
At least one of `REF` and `HEAD_REF` must be specified, however it is preferable for both to be present.
|
||||
|
||||
|
@ -10,6 +10,7 @@
|
||||
## [REF <v2.0.0>]
|
||||
## [SHA512 <45d0d7f8cc350...>]
|
||||
## [HEAD_REF <master>]
|
||||
## [PATCHES <patch1.patch> <patch2.patch>...]
|
||||
## )
|
||||
## ```
|
||||
##
|
||||
@ -23,7 +24,7 @@
|
||||
## The organization or user and repository on GitHub.
|
||||
##
|
||||
## ### REF
|
||||
## A stable git commit-ish (ideally a tag) that will not change contents. **This should not be a branch.**
|
||||
## A stable git commit-ish (ideally a tag or commit) that will not change contents. **This should not be a branch.**
|
||||
##
|
||||
## For repositories without official releases, this can be set to the full commit id of the current latest master.
|
||||
##
|
||||
@ -39,6 +40,11 @@
|
||||
##
|
||||
## For most projects, this should be `master`. The chosen branch should be one that is expected to be always buildable on all supported platforms.
|
||||
##
|
||||
## ### PATCHES
|
||||
## A list of patches to be applied to the extracted sources.
|
||||
##
|
||||
## Relative paths are based on the port directory.
|
||||
##
|
||||
## ## Notes:
|
||||
## At least one of `REF` and `HEAD_REF` must be specified, however it is preferable for both to be present.
|
||||
##
|
||||
|
Loading…
Reference in New Issue
Block a user