2019-10-05 22:51:07 +08:00
|
|
|
# vcpkg_build_make
|
|
|
|
|
2021-03-11 01:56:07 +08:00
|
|
|
The latest version of this document lives in the [vcpkg repo](https://github.com/Microsoft/vcpkg/blob/master/docs/maintainers/vcpkg_build_make.md).
|
2021-03-01 05:17:19 +08:00
|
|
|
|
2019-10-05 22:51:07 +08:00
|
|
|
Build a linux makefile project.
|
|
|
|
|
|
|
|
## Usage:
|
|
|
|
```cmake
|
2020-07-14 04:43:39 +08:00
|
|
|
vcpkg_build_make([BUILD_TARGET <target>]
|
|
|
|
[ADD_BIN_TO_PATH]
|
2020-12-02 05:37:26 +08:00
|
|
|
[ENABLE_INSTALL]
|
2020-11-21 02:29:25 +08:00
|
|
|
[MAKEFILE <makefileName>]
|
2020-07-14 04:43:39 +08:00
|
|
|
[LOGFILE_ROOT <logfileroot>])
|
2019-10-05 22:51:07 +08:00
|
|
|
```
|
|
|
|
|
2020-07-14 04:43:39 +08:00
|
|
|
### BUILD_TARGET
|
|
|
|
The target passed to the make build command (`./make <target>`). If not specified, the 'all' target will
|
2019-10-05 22:51:07 +08:00
|
|
|
be passed.
|
|
|
|
|
|
|
|
### ADD_BIN_TO_PATH
|
|
|
|
Adds the appropriate Release and Debug `bin\` directories to the path during the build such that executables can run against the in-tree DLLs.
|
|
|
|
|
2020-07-14 04:43:39 +08:00
|
|
|
### ENABLE_INSTALL
|
|
|
|
IF the port supports the install target use vcpkg_install_make() instead of vcpkg_build_make()
|
|
|
|
|
2020-11-21 02:29:25 +08:00
|
|
|
### MAKEFILE
|
|
|
|
Specifies the Makefile as a relative path from the root of the sources passed to `vcpkg_configure_make()`
|
|
|
|
|
2020-07-14 04:43:39 +08:00
|
|
|
### BUILD_TARGET
|
2020-12-19 04:00:45 +08:00
|
|
|
The target passed to the make build command (`./make <target>`). Defaults to 'all'.
|
|
|
|
|
|
|
|
### INSTALL_TARGET
|
|
|
|
The target passed to the make build command (`./make <target>`) if `ENABLE_INSTALL` is used. Defaults to 'install'.
|
2020-07-14 04:43:39 +08:00
|
|
|
|
2020-11-21 02:29:25 +08:00
|
|
|
### DISABLE_PARALLEL
|
|
|
|
The underlying buildsystem will be instructed to not parallelize
|
|
|
|
|
|
|
|
### SUBPATH
|
|
|
|
Additional subdir to invoke make in. Useful if only parts of a port should be built.
|
|
|
|
|
2019-10-05 22:51:07 +08:00
|
|
|
## Notes:
|
|
|
|
This command should be preceeded by a call to [`vcpkg_configure_make()`](vcpkg_configure_make.md).
|
2021-01-06 04:37:19 +08:00
|
|
|
You can use the alias [`vcpkg_install_make()`](vcpkg_install_make.md) function if your makefile supports the
|
2019-10-05 22:51:07 +08:00
|
|
|
"install" target
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
* [x264](https://github.com/Microsoft/vcpkg/blob/master/ports/x264/portfile.cmake)
|
|
|
|
* [tcl](https://github.com/Microsoft/vcpkg/blob/master/ports/tcl/portfile.cmake)
|
|
|
|
* [freexl](https://github.com/Microsoft/vcpkg/blob/master/ports/freexl/portfile.cmake)
|
|
|
|
* [libosip2](https://github.com/Microsoft/vcpkg/blob/master/ports/libosip2/portfile.cmake)
|
|
|
|
|
|
|
|
## Source
|
2021-03-01 05:17:19 +08:00
|
|
|
[scripts/cmake/vcpkg\_build\_make.cmake](https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_build_make.cmake)
|