mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 05:39:40 +08:00
5deea3b975
* [vcpkg-docs] Add documentation for `vcpkg_configure_meson()`, `vcpkg_install_meson()`, `vcpkg_fixup_cmake_targts()`, and `vcpkg_prettify_command()` * [docs] Address code review comments. Reformat docs for vcpkg_fail_port_install.
32 lines
1.0 KiB
CMake
32 lines
1.0 KiB
CMake
## # vcpkg_install_meson
|
|
##
|
|
## Builds a meson project previously configured with `vcpkg_configure_meson()`.
|
|
##
|
|
## ## Usage
|
|
## ```cmake
|
|
## vcpkg_install_meson()
|
|
## ```
|
|
##
|
|
## ## Examples
|
|
##
|
|
## * [fribidi](https://github.com/Microsoft/vcpkg/blob/master/ports/fribidi/portfile.cmake)
|
|
## * [libepoxy](https://github.com/Microsoft/vcpkg/blob/master/ports/libepoxy/portfile.cmake)
|
|
function(vcpkg_install_meson)
|
|
vcpkg_find_acquire_program(NINJA)
|
|
unset(ENV{DESTDIR}) # installation directory was already specified with '--prefix' option
|
|
|
|
message(STATUS "Package ${TARGET_TRIPLET}-rel")
|
|
vcpkg_execute_required_process(
|
|
COMMAND ${NINJA} install -v
|
|
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel
|
|
LOGNAME package-${TARGET_TRIPLET}-rel
|
|
)
|
|
|
|
message(STATUS "Package ${TARGET_TRIPLET}-dbg")
|
|
vcpkg_execute_required_process(
|
|
COMMAND ${NINJA} install -v
|
|
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg
|
|
LOGNAME package-${TARGET_TRIPLET}-dbg
|
|
)
|
|
endfunction()
|