mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 06:59:07 +08:00
[vcpkg] Small fixes to vcpkg_build_make (#21296)
* vcpkg_build_make: doc sync Change-Id: I44c39663c397cbdeadf1b875ee7e6e1c781add05 * vcpkg_build_make: fix typo Change-Id: I1f401256b2f4e600a1216de499f044ea3c5a2130
This commit is contained in:
parent
d0ce2aa08b
commit
e0201341c9
@ -7,16 +7,22 @@ Build a linux makefile project.
|
||||
## Usage:
|
||||
```cmake
|
||||
vcpkg_build_make([BUILD_TARGET <target>]
|
||||
[INSTALL_TARGET <target>]
|
||||
[ADD_BIN_TO_PATH]
|
||||
[ENABLE_INSTALL]
|
||||
[MAKEFILE <makefileName>]
|
||||
[LOGFILE_ROOT <logfileroot>])
|
||||
[LOGFILE_ROOT <logfileroot>]
|
||||
[DISABLE_PARALLEL]
|
||||
[SUBPATH <path>])
|
||||
```
|
||||
|
||||
### BUILD_TARGET
|
||||
The target passed to the make build command (`./make <target>`). If not specified, the 'all' target will
|
||||
be passed.
|
||||
|
||||
### INSTALL_TARGET
|
||||
The target passed to the make build command (`./make <target>`) if `ENABLE_INSTALL` is used. Defaults to 'install'.
|
||||
|
||||
### 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.
|
||||
|
||||
@ -26,11 +32,8 @@ IF the port supports the install target use vcpkg_install_make() instead of vcpk
|
||||
### MAKEFILE
|
||||
Specifies the Makefile as a relative path from the root of the sources passed to `vcpkg_configure_make()`
|
||||
|
||||
### BUILD_TARGET
|
||||
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'.
|
||||
### LOGFILE_ROOT
|
||||
Specifies a log file prefix.
|
||||
|
||||
### DISABLE_PARALLEL
|
||||
The underlying buildsystem will be instructed to not parallelize
|
||||
|
@ -6,16 +6,22 @@ Build a linux makefile project.
|
||||
## Usage:
|
||||
```cmake
|
||||
vcpkg_build_make([BUILD_TARGET <target>]
|
||||
[INSTALL_TARGET <target>]
|
||||
[ADD_BIN_TO_PATH]
|
||||
[ENABLE_INSTALL]
|
||||
[MAKEFILE <makefileName>]
|
||||
[LOGFILE_ROOT <logfileroot>])
|
||||
[LOGFILE_ROOT <logfileroot>]
|
||||
[DISABLE_PARALLEL]
|
||||
[SUBPATH <path>])
|
||||
```
|
||||
|
||||
### BUILD_TARGET
|
||||
The target passed to the make build command (`./make <target>`). If not specified, the 'all' target will
|
||||
be passed.
|
||||
|
||||
### INSTALL_TARGET
|
||||
The target passed to the make build command (`./make <target>`) if `ENABLE_INSTALL` is used. Defaults to 'install'.
|
||||
|
||||
### 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.
|
||||
|
||||
@ -25,11 +31,8 @@ IF the port supports the install target use vcpkg_install_make() instead of vcpk
|
||||
### MAKEFILE
|
||||
Specifies the Makefile as a relative path from the root of the sources passed to `vcpkg_configure_make()`
|
||||
|
||||
### BUILD_TARGET
|
||||
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'.
|
||||
### LOGFILE_ROOT
|
||||
Specifies a log file prefix.
|
||||
|
||||
### DISABLE_PARALLEL
|
||||
The underlying buildsystem will be instructed to not parallelize
|
||||
@ -104,6 +107,7 @@ function(vcpkg_build_make)
|
||||
string(REGEX REPLACE [[([a-zA-Z]):/]] [[/\1/]] vcpkg_package_prefix "${vcpkg_package_prefix}")
|
||||
vcpkg_list(SET install_opts -j ${VCPKG_CONCURRENCY} --trace -f ${arg_MAKEFILE} ${arg_INSTALL_TARGET} DESTDIR=${vcpkg_package_prefix})
|
||||
#TODO: optimize for install-data (release) and install-exec (release/debug)
|
||||
|
||||
else()
|
||||
if(VCPKG_HOST_IS_OPENBSD)
|
||||
find_program(Z_VCPKG_MAKE gmake REQUIRED)
|
||||
@ -132,7 +136,7 @@ function(vcpkg_build_make)
|
||||
set(path_suffix "")
|
||||
endif()
|
||||
|
||||
set(working_directory "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}${short_buildtype}${arg_SUBPATH}")
|
||||
set(working_directory "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}${short_buildtype}/${arg_SUBPATH}")
|
||||
message(STATUS "Building ${TARGET_TRIPLET}${short_buildtype}")
|
||||
|
||||
z_vcpkg_extract_cpp_flags_and_set_cflags_and_cxxflags("${cmake_buildtype}")
|
||||
|
Loading…
Reference in New Issue
Block a user