mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 13:03:01 +08:00
Build boost.python
This commit is contained in:
parent
99a8d74549
commit
481128e979
@ -1,4 +1,4 @@
|
||||
Source: boost
|
||||
Version: 1.65-1
|
||||
Description: Peer-reviewed portable C++ source libraries
|
||||
Build-Depends: zlib, bzip2, icu [windows]
|
||||
Build-Depends: zlib, bzip2, icu [windows], python3 [windows]
|
||||
|
@ -6,6 +6,9 @@ using msvc : 14.1 : cl.exe :
|
||||
<setup>echo
|
||||
;
|
||||
|
||||
using python : @PYTHON_VERSION@ : : @PYTHON_INCLUDE_PATH@ : @PYTHONLIBS_RELEASE@ ;
|
||||
using python : @PYTHON_VERSION@ : : @PYTHON_INCLUDE_PATH@ : @PYTHONLIBS_DEBUG@ : <python-debugging>on ;
|
||||
|
||||
project user-config ;
|
||||
lib advapi32 ;
|
||||
lib icuuc : : <search>@CURRENT_INSTALLED_DIR@/lib : :
|
||||
|
@ -90,7 +90,6 @@ set(B2_OPTIONS
|
||||
--hash
|
||||
-q
|
||||
|
||||
--without-python
|
||||
threading=multi
|
||||
)
|
||||
|
||||
@ -147,6 +146,7 @@ if(VCPKG_CMAKE_SYSTEM_NAME MATCHES "WindowsStore")
|
||||
--without-thread
|
||||
--without-iostreams
|
||||
--without-container
|
||||
--without-python
|
||||
)
|
||||
if(VCPKG_PLATFORM_TOOLSET MATCHES "v141")
|
||||
find_path(PATH_TO_CL cl.exe)
|
||||
@ -165,6 +165,11 @@ if(VCPKG_CMAKE_SYSTEM_NAME MATCHES "WindowsStore")
|
||||
configure_file(${CMAKE_CURRENT_LIST_DIR}/uwp/user-config.jam ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/user-config.jam ESCAPE_QUOTES @ONLY)
|
||||
configure_file(${CMAKE_CURRENT_LIST_DIR}/uwp/user-config.jam ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/user-config.jam ESCAPE_QUOTES @ONLY)
|
||||
else()
|
||||
# Find Python. Can't use find_package here, but we already know where everything is
|
||||
file(GLOB PYTHON_INCLUDE_PATH "${CURRENT_INSTALLED_DIR}/include/python[0-9.]*")
|
||||
set(PYTHONLIBS_RELEASE "${CURRENT_INSTALLED_DIR}/lib")
|
||||
set(PYTHONLIBS_DEBUG "${CURRENT_INSTALLED_DIR}/debug/lib")
|
||||
string(REGEX REPLACE ".*python([0-9\.]+)$" "\\1" PYTHON_VERSION ${PYTHON_INCLUDE_PATH})
|
||||
configure_file(${CMAKE_CURRENT_LIST_DIR}/desktop/user-config.jam ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/user-config.jam @ONLY)
|
||||
configure_file(${CMAKE_CURRENT_LIST_DIR}/desktop/user-config.jam ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/user-config.jam @ONLY)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user