mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 12:05:35 +08:00
2496d23d41
* [vcpkg-gn] Adding gn as a host only port * Disable support for x86 and fix variable name usage. * [vcpkg-gn] Version information. * Updating documentation. Co-authored-by: David McCloskey <davmcclo@gmail.com>
32 lines
848 B
Markdown
32 lines
848 B
Markdown
# vcpkg_install_gn
|
|
|
|
**This function has been deprecated in favor of [`vcpkg_gn_install`](ports/vcpkg-gn/vcpkg_gn_install.md) from the vcpkg-gn port.**
|
|
|
|
The latest version of this document lives in the [vcpkg repo](https://github.com/Microsoft/vcpkg/blob/master/docs/maintainers/vcpkg_install_gn.md).
|
|
|
|
Installs a GN project.
|
|
|
|
In order to build a GN project without installing, use [`vcpkg_build_ninja()`].
|
|
|
|
## Usage:
|
|
```cmake
|
|
vcpkg_install_gn(
|
|
SOURCE_PATH <SOURCE_PATH>
|
|
[TARGETS <target>...]
|
|
)
|
|
```
|
|
|
|
## Parameters:
|
|
### SOURCE_PATH
|
|
The path to the source directory
|
|
|
|
### TARGETS
|
|
Only install the specified targets.
|
|
|
|
Note: includes must be handled separately
|
|
|
|
[`vcpkg_build_ninja()`]: vcpkg_build_ninja.md
|
|
|
|
## Source
|
|
[scripts/cmake/vcpkg\_install\_gn.cmake](https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_install_gn.cmake)
|