mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
[libuv] Add branching for dynamic/static building
This commit is contained in:
parent
de9728cfe1
commit
f04288b88f
@ -53,16 +53,22 @@ endif()
|
||||
set(ENV{GYP_MSVS_VERSION} 2015)
|
||||
set(ENV{PYTHON} ${PYTHON2})
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
set(LIBUV_LINKAGE shared)
|
||||
else()
|
||||
set(LIBUV_LINKAGE static)
|
||||
endif()
|
||||
|
||||
if(TRIPLET_SYSTEM_ARCH MATCHES "x86|x64")
|
||||
message(STATUS "Building Release")
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND cmd /c vcbuild.bat release ${TRIPLET_SYSTEM_ARCH} shared
|
||||
COMMAND cmd /c vcbuild.bat release ${TRIPLET_SYSTEM_ARCH} ${LIBUV_LINKAGE}
|
||||
WORKING_DIRECTORY ${SOURCE_PATH}
|
||||
LOGNAME ${TARGET_TRIPLET}-build-rel
|
||||
)
|
||||
message(STATUS "Building Debug")
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND cmd /c vcbuild.bat debug ${TRIPLET_SYSTEM_ARCH} shared
|
||||
COMMAND cmd /c vcbuild.bat debug ${TRIPLET_SYSTEM_ARCH} ${LIBUV_LINKAGE}
|
||||
WORKING_DIRECTORY ${SOURCE_PATH}
|
||||
LOGNAME ${TARGET_TRIPLET}-build-dbg
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user