mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 13:13:34 +08:00
Build boost.python
This commit is contained in:
parent
99a8d74549
commit
481128e979
@ -1,4 +1,4 @@
|
|||||||
Source: boost
|
Source: boost
|
||||||
Version: 1.65-1
|
Version: 1.65-1
|
||||||
Description: Peer-reviewed portable C++ source libraries
|
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
|
<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 ;
|
project user-config ;
|
||||||
lib advapi32 ;
|
lib advapi32 ;
|
||||||
lib icuuc : : <search>@CURRENT_INSTALLED_DIR@/lib : :
|
lib icuuc : : <search>@CURRENT_INSTALLED_DIR@/lib : :
|
||||||
|
@ -90,7 +90,6 @@ set(B2_OPTIONS
|
|||||||
--hash
|
--hash
|
||||||
-q
|
-q
|
||||||
|
|
||||||
--without-python
|
|
||||||
threading=multi
|
threading=multi
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -147,6 +146,7 @@ if(VCPKG_CMAKE_SYSTEM_NAME MATCHES "WindowsStore")
|
|||||||
--without-thread
|
--without-thread
|
||||||
--without-iostreams
|
--without-iostreams
|
||||||
--without-container
|
--without-container
|
||||||
|
--without-python
|
||||||
)
|
)
|
||||||
if(VCPKG_PLATFORM_TOOLSET MATCHES "v141")
|
if(VCPKG_PLATFORM_TOOLSET MATCHES "v141")
|
||||||
find_path(PATH_TO_CL cl.exe)
|
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}-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)
|
configure_file(${CMAKE_CURRENT_LIST_DIR}/uwp/user-config.jam ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/user-config.jam ESCAPE_QUOTES @ONLY)
|
||||||
else()
|
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}-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)
|
configure_file(${CMAKE_CURRENT_LIST_DIR}/desktop/user-config.jam ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/user-config.jam @ONLY)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user