early-access version 2853
This commit is contained in:
75
externals/vcpkg/ports/boost-build/0001-don-t-skip-install-targets.patch
vendored
Executable file
75
externals/vcpkg/ports/boost-build/0001-don-t-skip-install-targets.patch
vendored
Executable file
@@ -0,0 +1,75 @@
|
||||
From 78fd284a42caabe8815cb0870b46e5567872e75b Mon Sep 17 00:00:00 2001
|
||||
From: Dmitry <grisumbras@gmail.com>
|
||||
Date: Sat, 11 Dec 2021 16:58:23 +0300
|
||||
Subject: [PATCH] Don't skip install targets if there's <build>no in ureqs
|
||||
(#113)
|
||||
|
||||
---
|
||||
src/tools/stage.jam | 4 ++++
|
||||
test/install_build_no.py | 26 ++++++++++++++++++++++++++
|
||||
test/test_all.py | 1 +
|
||||
3 files changed, 31 insertions(+)
|
||||
create mode 100755 test/install_build_no.py
|
||||
|
||||
diff --git a/src/tools/stage.jam b/src/tools/stage.jam
|
||||
index c5f02e3b..325129dc 100644
|
||||
--- a/src/tools/stage.jam
|
||||
+++ b/src/tools/stage.jam
|
||||
@@ -478,6 +478,10 @@ class install-target-class : basic-target
|
||||
return [ sequence.unique $(result2) ] ;
|
||||
}
|
||||
|
||||
+ rule skip-from-usage-requirements ( )
|
||||
+ {
|
||||
+ }
|
||||
+
|
||||
# Returns true iff 'type' is subtype of some element of 'types-to-include'.
|
||||
#
|
||||
local rule include-type ( type : types-to-include * )
|
||||
diff --git a/test/install_build_no.py b/test/install_build_no.py
|
||||
new file mode 100755
|
||||
index 00000000..0ccf3c5c
|
||||
--- /dev/null
|
||||
+++ b/test/install_build_no.py
|
||||
@@ -0,0 +1,26 @@
|
||||
+#!/usr/bin/python
|
||||
+
|
||||
+# Copyright 2021 Dmitry Arkhipov (grisumbras@gmail.com)
|
||||
+# Distributed under the Boost Software License, Version 1.0.
|
||||
+# (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)
|
||||
+
|
||||
+# Check that <build>no in usage-requirements of dependencies does not affect
|
||||
+# install rule, i.e. a skipped installed target does not affect insallation of
|
||||
+# other targets.
|
||||
+
|
||||
+import BoostBuild
|
||||
+
|
||||
+t = BoostBuild.Tester()
|
||||
+
|
||||
+t.write("a.cpp", "int main() {}\n")
|
||||
+
|
||||
+t.write("jamroot.jam", """
|
||||
+make x : : maker : <build>no ;
|
||||
+exe a : a.cpp ;
|
||||
+install install : x a ;
|
||||
+""")
|
||||
+
|
||||
+t.run_build_system()
|
||||
+t.expect_addition("install/a.exe")
|
||||
+
|
||||
+t.cleanup()
|
||||
diff --git a/test/test_all.py b/test/test_all.py
|
||||
index b7ef5ad7..9ed729d0 100644
|
||||
--- a/test/test_all.py
|
||||
+++ b/test/test_all.py
|
||||
@@ -250,6 +250,7 @@ tests = ["abs_workdir",
|
||||
"inherit_toolset",
|
||||
"inherited_dependency",
|
||||
"inline",
|
||||
+ "install_build_no",
|
||||
"libjpeg",
|
||||
"liblzma",
|
||||
"libpng",
|
||||
--
|
||||
2.34.1.windows.1
|
||||
|
||||
13
externals/vcpkg/ports/boost-build/0002-fix-get-version.patch
vendored
Executable file
13
externals/vcpkg/ports/boost-build/0002-fix-get-version.patch
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
diff --git a/src/tools/clang-linux.jam b/src/tools/clang-linux.jam
|
||||
index 949e277..8934787 100644
|
||||
--- a/src/tools/clang-linux.jam
|
||||
+++ b/src/tools/clang-linux.jam
|
||||
@@ -97,7 +97,7 @@ rule init ( version ? : command * : options * ) {
|
||||
|
||||
rule get-full-version ( command-string )
|
||||
{
|
||||
- return [ common.match-command-output version : "version ([0-9.]+)"
|
||||
+ return [ common.match-command-output version : "([0-9]+.[0-9]+.[0-9]+)"
|
||||
: "$(command-string) --version" ] ;
|
||||
}
|
||||
|
||||
75
externals/vcpkg/ports/boost-build/portfile.cmake
vendored
Executable file
75
externals/vcpkg/ports/boost-build/portfile.cmake
vendored
Executable file
@@ -0,0 +1,75 @@
|
||||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
||||
|
||||
if(CMAKE_HOST_WIN32 AND VCPKG_CMAKE_SYSTEM_NAME AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "MinGW")
|
||||
return()
|
||||
endif()
|
||||
|
||||
set(BOOST_VERSION 1.79.0)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO boostorg/build
|
||||
REF boost-${BOOST_VERSION}
|
||||
SHA512 638f2883b9c49265d5566eadc8c93d16cb351edeb941110bad8a17871ea7d53df8eb13c80aaefb94f354b71a22454958af1ecb9a441686dbaa9631e33682a9f2
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
0001-don-t-skip-install-targets.patch
|
||||
0002-fix-get-version.patch
|
||||
)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://raw.githubusercontent.com/boostorg/boost/boost-${BOOST_VERSION}/LICENSE_1_0.txt"
|
||||
FILENAME "boost_LICENSE_1_0.txt"
|
||||
SHA512 d6078467835dba8932314c1c1e945569a64b065474d7aced27c9a7acc391d52e9f234138ed9f1aa9cd576f25f12f557e0b733c14891d42c16ecdc4a7bd4d60b8
|
||||
)
|
||||
|
||||
vcpkg_download_distfile(BOOSTCPP_ARCHIVE
|
||||
URLS "https://raw.githubusercontent.com/boostorg/boost/boost-${BOOST_VERSION}/boostcpp.jam"
|
||||
FILENAME "boost-${BOOST_VERSION}-boostcpp.jam"
|
||||
SHA512 0daa0dd315f7e426e7b9ada9cc4dad03da2eb257456e551de3fb3b2a8244f0117ed41d9d1ff77b5a3eee7a3c5fb466d345b9bb2af46004fc630209043d4862e3
|
||||
)
|
||||
|
||||
# https://github.com/boostorg/boost/pull/206
|
||||
# do not add version suffix for android
|
||||
file(READ "${BOOSTCPP_ARCHIVE}" _contents)
|
||||
string(REPLACE "aix &&" "aix android &&" _contents "${_contents}")
|
||||
file(WRITE "${SOURCE_PATH}/boostcpp.jam" "${_contents}")
|
||||
|
||||
file(INSTALL ${ARCHIVE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/boost-build RENAME copyright)
|
||||
|
||||
# This fixes the lib path to use desktop libs instead of uwp -- TODO: improve this with better "host" compilation
|
||||
string(REPLACE "\\store\\;" "\\;" LIB "$ENV{LIB}")
|
||||
set(ENV{LIB} "${LIB}")
|
||||
|
||||
file(COPY
|
||||
${SOURCE_PATH}/
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/tools/boost-build
|
||||
)
|
||||
|
||||
file(READ "${CURRENT_PACKAGES_DIR}/tools/boost-build/src/tools/msvc.jam" _contents)
|
||||
string(REPLACE " /ZW /EHsc " "" _contents "${_contents}")
|
||||
string(REPLACE "-nologo" "" _contents "${_contents}")
|
||||
string(REPLACE "/nologo" "" _contents "${_contents}")
|
||||
string(REPLACE "/Zm800" "" _contents "${_contents}")
|
||||
string(REPLACE "<define>_WIN32_WINNT=0x0602" "" _contents "${_contents}")
|
||||
file(WRITE "${CURRENT_PACKAGES_DIR}/tools/boost-build/src/tools/msvc.jam" "${_contents}")
|
||||
|
||||
message(STATUS "Bootstrapping...")
|
||||
if(CMAKE_HOST_WIN32)
|
||||
if(VCPKG_TARGET_IS_MINGW)
|
||||
set(TOOLSET mingw)
|
||||
else()
|
||||
set(TOOLSET msvc)
|
||||
endif()
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND "${CURRENT_PACKAGES_DIR}/tools/boost-build/bootstrap.bat" ${TOOLSET}
|
||||
WORKING_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/boost-build
|
||||
LOGNAME bootstrap-${TARGET_TRIPLET}
|
||||
)
|
||||
else()
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND "${CURRENT_PACKAGES_DIR}/tools/boost-build/bootstrap.sh"
|
||||
WORKING_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/boost-build
|
||||
LOGNAME bootstrap-${TARGET_TRIPLET}
|
||||
)
|
||||
endif()
|
||||
10
externals/vcpkg/ports/boost-build/vcpkg.json
vendored
Executable file
10
externals/vcpkg/ports/boost-build/vcpkg.json
vendored
Executable file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "boost-build",
|
||||
"version": "1.79.0",
|
||||
"description": "Boost.Build",
|
||||
"homepage": "https://github.com/boostorg/build",
|
||||
"license": "BSL-1.0",
|
||||
"dependencies": [
|
||||
"boost-uninstall"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user