2020-02-13 07:58:43 +08:00
|
|
|
## # 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)
|
2017-02-10 01:13:52 +08:00
|
|
|
function(vcpkg_install_meson)
|
|
|
|
vcpkg_find_acquire_program(NINJA)
|
2017-02-10 01:15:57 +08:00
|
|
|
unset(ENV{DESTDIR}) # installation directory was already specified with '--prefix' option
|
|
|
|
|
2017-02-10 01:13:52 +08:00
|
|
|
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
|
|
|
|
)
|
2017-02-10 01:15:57 +08:00
|
|
|
|
2017-02-10 01:13:52 +08:00
|
|
|
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()
|