Otok public index

apotocki/boost

apotocki/boost 1.92.0 (r1, apple)

Library
boost
Variant
apple, target apple
Channel
stable
Published
2026-11-07
Recipe source
https://github.com/otok-dev/recipes
32756a87cf5bd189ca4c9825159bf0713ea8cf5e in recipes/boost/1.92/apple/
Recipe SHA-256
041045e2f730d85bc0c8529fe4ef72b6b0ffe3e2e96747ad250204e4338f9e6e

Recipe files changed

Inputs

source.mirrors["https://sourceforge.net/projects/boost/files/boost/1.92.0/boost_1_92_0.tar.bz2"]
source.sha2565c1d40cb8e19adbf740a4ec2da35b3e58f3f5804b1dce44deb53df72193cbc6c
source.urlhttps://archives.boost.io/release/1.92.0/source/boost_1_92_0.tar.bz2

Platforms

ios, iossim, macosx, catalyst, tvos, tvossim, watchos, watchossim, xros, xrossim

Options

OptionTypeDefaultDescription
icu bool false ICU (the icu4c recipe) as the backend of Boost.Locale and for the Unicode support of Boost.Regex (boost/regex/icu.hpp). The products of Boost then hold ICU's libraries, which a static link takes only as far as it uses them.
librariesadditive list of ["atomic", "charconv", "chrono", "cobalt", "container", "context", "contract", "coroutine", "date_time", "exception", "fiber", "filesystem", "graph", "iostreams", "json", "locale", "log", "math", "nowide", "process", "program_options", "random", "regex", "serialization", "stacktrace", "test", "thread", "timer", "type_erasure", "url", "wave"] [] The compiled libraries to build (b2 --with-<library>); each becomes a product. Without any, Boost is its headers.

Dependencies

LibraryVersionRecipeDetails
icu4c >= 70 apotocki/icu4c when = { option = "icu" }

Recipe files

build.lua 2670 bytes · raw
-- Boost's own b2 build. build_tools builds b2 for the build machine once; every slice runs it with
-- the slice's toolchain (otok.b2), for the libraries the project selects.

function build_tools(slice, options, deps)
    -- bootstrap finds the build machine's compiler
    otok.run{"./bootstrap.sh"}
    otok.copy(slice.source .. "/b2", slice.prefix .. "/bin/b2")
end

-- Apple's platforms but macOS have no fork, exec or the process information Boost.Process uses; tvOS and
-- watchOS no sigaltstack, which Boost.Test's execution monitor uses unless told not to
local no_processes = { ios = true, iossim = true, catalyst = true, tvos = true, tvossim = true, watchos = true, watchossim = true, xros = true, xrossim = true }
local no_alt_stack = { tvos = true, tvossim = true, watchos = true, watchossim = true }

-- stacktrace backends b2 builds only where it finds what they need (addr2line on macOS alone), which no
-- product offers: every slice returns the same libraries
local unoffered = { stacktrace_addr2line = true, stacktrace_dump = true, stacktrace_from_exception = true }

function build(slice, options, deps)
    local selected = options.libraries
    if #selected > 0 then
        -- the project's C++ standard, else 20
        local args = { "cxxstd=" .. (slice.cxx_standard or 20), "--layout=system" }
        for _, l in ipairs(selected) do
            if l == "process" and no_processes[slice.platform] then
                error("Boost.Process needs fork and exec, which " .. slice.platform .. " does not have: select it only for macosx")
            end
            args[#args + 1] = "--with-" .. l
        end
        if no_alt_stack[slice.platform] then args[#args + 1] = "define=BOOST_TEST_DISABLE_ALT_STACK" end
        -- ICU only when asked for: b2 would take any ICU it finds (has_icu), so it is turned off otherwise
        if deps.icu4c then
            args[#args + 1] = "-sICU_PATH=" .. deps.icu4c.prefix
            args[#args + 1] = "boost.locale.icu=on"
        else
            args[#args + 1] = "boost.locale.icu=off"
            args[#args + 1] = "--disable-icu"
        end
        otok.b2{ b2 = slice.tools.prefix .. "/bin/b2", args = args, targets = { "stage" } }
    end
    -- the headers, without b2 install copying 16000 files one by one
    otok.copy(slice.source .. "/boost", slice.prefix .. "/include/boost")

    local libraries = {}
    for _, file in ipairs(otok.glob("lib/libboost_*.a", slice.prefix)) do
        libraries[file:match("/libboost_([%w_]+)%.a$")] = file
    end
    for name in pairs(unoffered) do libraries[name] = nil end
    return { libraries = libraries, headers = slice.prefix .. "/include" }
end
patches/0001-context-arm64_32.patch 14949 bytes · raw
Boost.Context for arm64_32 (watchOS): the arm64 Mach-O assembly with 32-bit pointers. arm64_32 passes
and returns transfer_t, two 32-bit pointers, packed in X0 (as clang does for any such struct), and
pointers arrive in W registers; the context switch itself is the arm64 one. The 32-bit ARM Mach-O
assembly it replaces in the Jamfile was for armv7 and armv7k, which Xcode no longer builds for.

diff --git a/libs/context/build/Jamfile.v2 b/libs/context/build/Jamfile.v2
index 3b04ce9..21908bc 100644
--- a/libs/context/build/Jamfile.v2
+++ b/libs/context/build/Jamfile.v2
@@ -88,11 +88,11 @@ alias asm_sources
      <toolset>qcc
    ;
 
-# ARM/AAPCS/MACH-O
+# ARM/AAPCS/MACH-O: arm64_32 (watchOS), the only 32-bit ARM of Apple that Xcode still builds for
 alias asm_sources
-   : asm/make_arm_aapcs_macho_gas.S
-     asm/jump_arm_aapcs_macho_gas.S
-     asm/ontop_arm_aapcs_macho_gas.S
+   : asm/make_arm64_32_aapcs_macho_gas.S
+     asm/jump_arm64_32_aapcs_macho_gas.S
+     asm/ontop_arm64_32_aapcs_macho_gas.S
    : <abi>aapcs
      <address-model>32
      <architecture>arm
@@ -101,9 +101,9 @@ alias asm_sources
    ;
 
 alias asm_sources
-   : asm/make_arm_aapcs_macho_gas.S
-     asm/jump_arm_aapcs_macho_gas.S
-     asm/ontop_arm_aapcs_macho_gas.S
+   : asm/make_arm64_32_aapcs_macho_gas.S
+     asm/jump_arm64_32_aapcs_macho_gas.S
+     asm/ontop_arm64_32_aapcs_macho_gas.S
    : <abi>aapcs
      <address-model>32
      <architecture>arm
diff --git a/libs/context/src/asm/jump_arm64_32_aapcs_macho_gas.S b/libs/context/src/asm/jump_arm64_32_aapcs_macho_gas.S
new file mode 100644
index 0000000..ffcb482
--- /dev/null
+++ b/libs/context/src/asm/jump_arm64_32_aapcs_macho_gas.S
@@ -0,0 +1,112 @@
+/*
+         Copyright Edward Nevill + Oliver Kowalke 2015
+   Distributed under the Boost Software License, Version 1.0.
+      (See accompanying file LICENSE_1_0.txt or copy at
+          http://www.boost.org/LICENSE_1_0.txt)
+*/
+/*******************************************************
+ *                                                     *
+ *  -------------------------------------------------  *
+ *  |  0  |  1  |  2  |  3  |  4  |  5  |  6  |  7  |  *
+ *  -------------------------------------------------  *
+ *  | 0x0 | 0x4 | 0x8 | 0xc | 0x10| 0x14| 0x18| 0x1c|  *
+ *  -------------------------------------------------  *
+ *  |    d8     |    d9     |    d10    |    d11    |  *
+ *  -------------------------------------------------  *
+ *  -------------------------------------------------  *
+ *  |  8  |  9  |  10 |  11 |  12 |  13 |  14 |  15 |  *
+ *  -------------------------------------------------  *
+ *  | 0x20| 0x24| 0x28| 0x2c| 0x30| 0x34| 0x38| 0x3c|  *
+ *  -------------------------------------------------  *
+ *  |    d12    |    d13    |    d14    |    d15    |  *
+ *  -------------------------------------------------  *
+ *  -------------------------------------------------  *
+ *  |  16 |  17 |  18 |  19 |  20 |  21 |  22 |  23 |  *
+ *  -------------------------------------------------  *
+ *  | 0x40| 0x44| 0x48| 0x4c| 0x50| 0x54| 0x58| 0x5c|  *
+ *  -------------------------------------------------  *
+ *  |    x19    |    x20    |    x21    |    x22    |  *
+ *  -------------------------------------------------  *
+ *  -------------------------------------------------  *
+ *  |  24 |  25 |  26 |  27 |  28 |  29 |  30 |  31 |  *
+ *  -------------------------------------------------  *
+ *  | 0x60| 0x64| 0x68| 0x6c| 0x70| 0x74| 0x78| 0x7c|  *
+ *  -------------------------------------------------  *
+ *  |    x23    |    x24    |    x25    |    x26    |  *
+ *  -------------------------------------------------  *
+ *  -------------------------------------------------  *
+ *  |  32 |  33 |  34 |  35 |  36 |  37 |  38 |  39 |  *
+ *  -------------------------------------------------  *
+ *  | 0x80| 0x84| 0x88| 0x8c| 0x90| 0x94| 0x98| 0x9c|  *
+ *  -------------------------------------------------  *
+ *  |    x27    |    x28    |    FP     |     LR    |  *
+ *  -------------------------------------------------  *
+ *  -------------------------------------------------  *
+ *  |  40 |  41 |  42 | 43  |           |           |  *
+ *  -------------------------------------------------  *
+ *  | 0xa0| 0xa4| 0xa8| 0xac|           |           |  *
+ *  -------------------------------------------------  *
+ *  |     PC    |   align   |           |           |  *
+ *  -------------------------------------------------  *
+ *                                                     *
+ *******************************************************/
+
+.text
+.private_extern _jump_fcontext
+.globl _jump_fcontext
+.balign 16
+_jump_fcontext:
+    ; arm64_32: the AArch64 code of arm64 with 32-bit pointers; FCTX arrives in w0, DATA in w1
+    ; prepare stack for GP + FPU
+    sub  sp, sp, #0xb0
+
+    ; save d8 - d15
+    stp  d8,  d9,  [sp, #0x00]
+    stp  d10, d11, [sp, #0x10]
+    stp  d12, d13, [sp, #0x20]
+    stp  d14, d15, [sp, #0x30]
+
+    ; save x19-x30
+    stp  x19, x20, [sp, #0x40]
+    stp  x21, x22, [sp, #0x50]
+    stp  x23, x24, [sp, #0x60]
+    stp  x25, x26, [sp, #0x70]
+    stp  x27, x28, [sp, #0x80]
+    stp  fp,  lr,  [sp, #0x90]
+
+    ; save LR as PC
+    str  lr, [sp, #0xa0]
+
+    ; store RSP (pointing to context-data) in X0
+    mov  x4, sp
+
+    ; restore RSP (pointing to context-data) from W0, zero-extended
+    mov  w0, w0
+    mov  sp, x0
+
+    ; load d8 - d15
+    ldp  d8,  d9,  [sp, #0x00]
+    ldp  d10, d11, [sp, #0x10]
+    ldp  d12, d13, [sp, #0x20]
+    ldp  d14, d15, [sp, #0x30]
+
+    ; load x19-x30
+    ldp  x19, x20, [sp, #0x40]
+    ldp  x21, x22, [sp, #0x50]
+    ldp  x23, x24, [sp, #0x60]
+    ldp  x25, x26, [sp, #0x70]
+    ldp  x27, x28, [sp, #0x80]
+    ldp  fp,  lr,  [sp, #0x90]
+
+    ; return transfer_t from jump, and pass it as first arg in context function:
+    ; arm64_32 passes the 8-byte struct in X0, FCTX in the low half, DATA in the high one
+    mov  w0, w4
+    orr  x0, x0, x1, lsl #32
+
+    ; load pc
+    ldr  x4, [sp, #0xa0]
+
+    ; restore stack from GP + FPU
+    add  sp, sp, #0xb0
+
+    ret x4
diff --git a/libs/context/src/asm/make_arm64_32_aapcs_macho_gas.S b/libs/context/src/asm/make_arm64_32_aapcs_macho_gas.S
new file mode 100644
index 0000000..53b1691
--- /dev/null
+++ b/libs/context/src/asm/make_arm64_32_aapcs_macho_gas.S
@@ -0,0 +1,88 @@
+/*
+            Copyright Edward Nevill + Oliver Kowalke 2015
+   Distributed under the Boost Software License, Version 1.0.
+      (See accompanying file LICENSE_1_0.txt or copy at
+          http://www.boost.org/LICENSE_1_0.txt)
+*/
+/*******************************************************
+ *                                                     *
+ *  -------------------------------------------------  *
+ *  |  0  |  1  |  2  |  3  |  4  |  5  |  6  |  7  |  *
+ *  -------------------------------------------------  *
+ *  | 0x0 | 0x4 | 0x8 | 0xc | 0x10| 0x14| 0x18| 0x1c|  *
+ *  -------------------------------------------------  *
+ *  |    d8     |    d9     |    d10    |    d11    |  *
+ *  -------------------------------------------------  *
+ *  -------------------------------------------------  *
+ *  |  8  |  9  |  10 |  11 |  12 |  13 |  14 |  15 |  *
+ *  -------------------------------------------------  *
+ *  | 0x20| 0x24| 0x28| 0x2c| 0x30| 0x34| 0x38| 0x3c|  *
+ *  -------------------------------------------------  *
+ *  |    d12    |    d13    |    d14    |    d15    |  *
+ *  -------------------------------------------------  *
+ *  -------------------------------------------------  *
+ *  |  16 |  17 |  18 |  19 |  20 |  21 |  22 |  23 |  *
+ *  -------------------------------------------------  *
+ *  | 0x40| 0x44| 0x48| 0x4c| 0x50| 0x54| 0x58| 0x5c|  *
+ *  -------------------------------------------------  *
+ *  |    x19    |    x20    |    x21    |    x22    |  *
+ *  -------------------------------------------------  *
+ *  -------------------------------------------------  *
+ *  |  24 |  25 |  26 |  27 |  28 |  29 |  30 |  31 |  *
+ *  -------------------------------------------------  *
+ *  | 0x60| 0x64| 0x68| 0x6c| 0x70| 0x74| 0x78| 0x7c|  *
+ *  -------------------------------------------------  *
+ *  |    x23    |    x24    |    x25    |    x26    |  *
+ *  -------------------------------------------------  *
+ *  -------------------------------------------------  *
+ *  |  32 |  33 |  34 |  35 |  36 |  37 |  38 |  39 |  *
+ *  -------------------------------------------------  *
+ *  | 0x80| 0x84| 0x88| 0x8c| 0x90| 0x94| 0x98| 0x9c|  *
+ *  -------------------------------------------------  *
+ *  |    x27    |    x28    |    FP     |     LR    |  *
+ *  -------------------------------------------------  *
+ *  -------------------------------------------------  *
+ *  |  40 |  41 |  42 | 43  |           |           |  *
+ *  -------------------------------------------------  *
+ *  | 0xa0| 0xa4| 0xa8| 0xac|           |           |  *
+ *  -------------------------------------------------  *
+ *  |     PC    |   align   |           |           |  *
+ *  -------------------------------------------------  *
+ *                                                     *
+ *******************************************************/
+
+.text
+.private_extern _make_fcontext
+.globl _make_fcontext
+.balign 16
+
+_make_fcontext:
+    ; arm64_32: 32-bit pointers arrive in w0 (stack) and w2 (context-function), zero-extended here
+    mov  w0, w0
+    mov  w2, w2
+
+    ; shift address in x0 (allocated stack) to lower 16 byte boundary
+    and x0, x0, ~0xF
+
+    ; reserve space for context-data on context-stack
+    sub  x0, x0, #0xb0
+
+    ; third arg of make_fcontext() == address of context-function
+    ; store address as a PC to jump in
+    str  x2, [x0, #0xa0]
+
+    adr  x1, finish
+
+    ; save address of finish as return-address for context-function
+    ; will be entered after context-function returns (LR register)
+    str  x1, [x0, #0x98]
+
+    ret  lr ; return pointer to context-data (x0)
+
+finish:
+    ; exit code is zero
+    mov  x0, #0
+    ; exit application
+    bl  __exit
+
+
diff --git a/libs/context/src/asm/ontop_arm64_32_aapcs_macho_gas.S b/libs/context/src/asm/ontop_arm64_32_aapcs_macho_gas.S
new file mode 100644
index 0000000..998cd3f
--- /dev/null
+++ b/libs/context/src/asm/ontop_arm64_32_aapcs_macho_gas.S
@@ -0,0 +1,113 @@
+/*
+       Copyright Edward Nevill + Oliver Kowalke 2015
+   Distributed under the Boost Software License, Version 1.0.
+      (See accompanying file LICENSE_1_0.txt or copy at
+          http://www.boost.org/LICENSE_1_0.txt)
+*/
+/*******************************************************
+ *                                                     *
+ *  -------------------------------------------------  *
+ *  |  0  |  1  |  2  |  3  |  4  |  5  |  6  |  7  |  *
+ *  -------------------------------------------------  *
+ *  | 0x0 | 0x4 | 0x8 | 0xc | 0x10| 0x14| 0x18| 0x1c|  *
+ *  -------------------------------------------------  *
+ *  |    d8     |    d9     |    d10    |    d11    |  *
+ *  -------------------------------------------------  *
+ *  -------------------------------------------------  *
+ *  |  8  |  9  |  10 |  11 |  12 |  13 |  14 |  15 |  *
+ *  -------------------------------------------------  *
+ *  | 0x20| 0x24| 0x28| 0x2c| 0x30| 0x34| 0x38| 0x3c|  *
+ *  -------------------------------------------------  *
+ *  |    d12    |    d13    |    d14    |    d15    |  *
+ *  -------------------------------------------------  *
+ *  -------------------------------------------------  *
+ *  |  16 |  17 |  18 |  19 |  20 |  21 |  22 |  23 |  *
+ *  -------------------------------------------------  *
+ *  | 0x40| 0x44| 0x48| 0x4c| 0x50| 0x54| 0x58| 0x5c|  *
+ *  -------------------------------------------------  *
+ *  |    x19    |    x20    |    x21    |    x22    |  *
+ *  -------------------------------------------------  *
+ *  -------------------------------------------------  *
+ *  |  24 |  25 |  26 |  27 |  28 |  29 |  30 |  31 |  *
+ *  -------------------------------------------------  *
+ *  | 0x60| 0x64| 0x68| 0x6c| 0x70| 0x74| 0x78| 0x7c|  *
+ *  -------------------------------------------------  *
+ *  |    x23    |    x24    |    x25    |    x26    |  *
+ *  -------------------------------------------------  *
+ *  -------------------------------------------------  *
+ *  |  32 |  33 |  34 |  35 |  36 |  37 |  38 |  39 |  *
+ *  -------------------------------------------------  *
+ *  | 0x80| 0x84| 0x88| 0x8c| 0x90| 0x94| 0x98| 0x9c|  *
+ *  -------------------------------------------------  *
+ *  |    x27    |    x28    |    FP     |     LR    |  *
+ *  -------------------------------------------------  *
+ *  -------------------------------------------------  *
+ *  |  40 |  41 |  42 | 43  |           |           |  *
+ *  -------------------------------------------------  *
+ *  | 0xa0| 0xa4| 0xa8| 0xac|           |           |  *
+ *  -------------------------------------------------  *
+ *  |     PC    |   align   |           |           |  *
+ *  -------------------------------------------------  *
+ *                                                     *
+ *******************************************************/
+
+.text
+.private_extern _ontop_fcontext
+.global _ontop_fcontext
+.balign 16
+_ontop_fcontext:
+    ; arm64_32: the AArch64 code of arm64 with 32-bit pointers; FCTX arrives in w0, DATA in w1, the
+    ; ontop-function in w2
+    mov  w2, w2
+    ; prepare stack for GP + FPU
+    sub  sp, sp, #0xb0
+
+    ; save d8 - d15
+    stp  d8,  d9,  [sp, #0x00]
+    stp  d10, d11, [sp, #0x10]
+    stp  d12, d13, [sp, #0x20]
+    stp  d14, d15, [sp, #0x30]
+
+    ; save x19-x30
+    stp  x19, x20, [sp, #0x40]
+    stp  x21, x22, [sp, #0x50]
+    stp  x23, x24, [sp, #0x60]
+    stp  x25, x26, [sp, #0x70]
+    stp  x27, x28, [sp, #0x80]
+    stp  x29, x30, [sp, #0x90]
+
+    ; save LR as PC
+    str  x30, [sp, #0xa0]
+
+    ; store RSP (pointing to context-data) in X5
+    mov  x4, sp
+
+    ; restore RSP (pointing to context-data) from W0, zero-extended
+    mov  w0, w0
+    mov  sp, x0
+
+    ; load d8 - d15
+    ldp  d8,  d9,  [sp, #0x00]
+    ldp  d10, d11, [sp, #0x10]
+    ldp  d12, d13, [sp, #0x20]
+    ldp  d14, d15, [sp, #0x30]
+
+    ; load x19-x30
+    ldp  x19, x20, [sp, #0x40]
+    ldp  x21, x22, [sp, #0x50]
+    ldp  x23, x24, [sp, #0x60]
+    ldp  x25, x26, [sp, #0x70]
+    ldp  x27, x28, [sp, #0x80]
+    ldp  x29, x30, [sp, #0x90]
+
+    ; pass transfer_t as first arg to the ontop-function, whose result returns from jump:
+    ; arm64_32 passes the 8-byte struct in X0, FCTX in the low half, DATA in the high one
+    mov  w0, w4
+    orr  x0, x0, x1, lsl #32
+
+    ; skip pc
+    ; restore stack from GP + FPU
+    add  sp, sp, #0xb0
+
+    ; jump to ontop-function
+    ret x2
patches/0004-serialization-codecvt-null-once.patch 648 bytes · raw
Boost.Serialization's Jamfile builds codecvt_null.cpp into both serialization and wserialization, which links
serialization: two archives defining codecvt_null<wchar_t>, an overlap in one image (otok-toml.md 4.5). Boost's CMake
builds it into serialization alone; so does b2 with this.

diff --git a/libs/serialization/build/Jamfile.v2 b/libs/serialization/build/Jamfile.v2
index 50fcce7..80cbb53 100644
--- a/libs/serialization/build/Jamfile.v2
+++ b/libs/serialization/build/Jamfile.v2
@@ -117,7 +117,6 @@ WSOURCES =
     xml_woarchive
     polymorphic_xml_wiarchive
     polymorphic_xml_woarchive
-    codecvt_null
 ;
 
 lib boost_serialization
privacy/all.xcprivacy 1058 bytes · raw
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>NSPrivacyTracking</key>
	<false/>
	<key>NSPrivacyTrackingDomains</key>
	<array/>
	<key>NSPrivacyCollectedDataTypes</key>
	<array/>
	<key>NSPrivacyAccessedAPITypes</key>
	<array>
		<dict>
			<key>NSPrivacyAccessedAPIType</key>
			<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
			<key>NSPrivacyAccessedAPITypeReasons</key>
			<array>
				<string>C617.1</string>
				<string>0A2A.1</string>
			</array>
		</dict>
		<dict>
			<key>NSPrivacyAccessedAPIType</key>
			<string>NSPrivacyAccessedAPICategoryDiskSpace</string>
			<key>NSPrivacyAccessedAPITypeReasons</key>
			<array>
				<string>E174.1</string>
			</array>
		</dict>
		<dict>
			<key>NSPrivacyAccessedAPIType</key>
			<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
			<key>NSPrivacyAccessedAPITypeReasons</key>
			<array>
				<string>35F9.1</string>
			</array>
		</dict>
	</array>
</dict>
</plist>
privacy/boot.xcprivacy 600 bytes · raw
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>NSPrivacyTracking</key>
	<false/>
	<key>NSPrivacyTrackingDomains</key>
	<array/>
	<key>NSPrivacyCollectedDataTypes</key>
	<array/>
	<key>NSPrivacyAccessedAPITypes</key>
	<array>
		<dict>
			<key>NSPrivacyAccessedAPIType</key>
			<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
			<key>NSPrivacyAccessedAPITypeReasons</key>
			<array>
				<string>35F9.1</string>
			</array>
		</dict>
	</array>
</dict>
</plist>
privacy/timestamps-disk.xcprivacy 840 bytes · raw
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>NSPrivacyTracking</key>
	<false/>
	<key>NSPrivacyTrackingDomains</key>
	<array/>
	<key>NSPrivacyCollectedDataTypes</key>
	<array/>
	<key>NSPrivacyAccessedAPITypes</key>
	<array>
		<dict>
			<key>NSPrivacyAccessedAPIType</key>
			<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
			<key>NSPrivacyAccessedAPITypeReasons</key>
			<array>
				<string>C617.1</string>
				<string>0A2A.1</string>
			</array>
		</dict>
		<dict>
			<key>NSPrivacyAccessedAPIType</key>
			<string>NSPrivacyAccessedAPICategoryDiskSpace</string>
			<key>NSPrivacyAccessedAPITypeReasons</key>
			<array>
				<string>E174.1</string>
			</array>
		</dict>
	</array>
</dict>
</plist>
privacy/timestamps.xcprivacy 627 bytes · raw
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>NSPrivacyTracking</key>
	<false/>
	<key>NSPrivacyTrackingDomains</key>
	<array/>
	<key>NSPrivacyCollectedDataTypes</key>
	<array/>
	<key>NSPrivacyAccessedAPITypes</key>
	<array>
		<dict>
			<key>NSPrivacyAccessedAPIType</key>
			<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
			<key>NSPrivacyAccessedAPITypeReasons</key>
			<array>
				<string>C617.1</string>
				<string>0A2A.1</string>
			</array>
		</dict>
	</array>
</dict>
</plist>
recipe.toml 9480 bytes · raw
# The otok recipe of Boost (docs/PLAN.md decision 36): the headers as one product, the compiled
# libraries the project selects as products of their own (recipe-toml.md 11.1).
[recipe]
api = 1
library = "boost"
name = "boost"
version = "1.92.0"
revision = 1
license = "BSL-1.0"
license-files = ["LICENSE_1_0.txt"]
homepage = "https://www.boost.org"
documentation = "https://www.boost.org/doc/libs/1_92_0/"
description = "Boost C++ libraries: the headers, and the compiled libraries a project selects."
keywords = ["boost", "cpp"]
linkage = ["static"]
cxx-standard = ">= 11"

[source]
url = "https://archives.boost.io/release/1.92.0/source/boost_1_92_0.tar.bz2"
mirrors = ["https://sourceforge.net/projects/boost/files/boost/1.92.0/boost_1_92_0.tar.bz2"]
sha256 = "5c1d40cb8e19adbf740a4ec2da35b3e58f3f5804b1dce44deb53df72193cbc6c"
# Boost.Context has no assembly for arm64_32 (watchOS): the arm64 one with 32-bit pointers; codecvt_null in serialization
# alone, as Boost's CMake builds it
patches = ["patches/0001-context-arm64_32.patch", "patches/0004-serialization-codecvt-null-once.patch"]

[platforms]
supported = ["ios", "iossim", "macosx", "catalyst", "tvos", "tvossim", "watchos", "watchossim", "xros", "xrossim"]
build-on = ["macos/xcode"]

[options.libraries]
type = "list"
values = ["atomic", "charconv", "chrono", "cobalt", "container", "context", "contract", "coroutine", "date_time", "exception", "fiber", "filesystem", "graph", "iostreams", "json", "locale", "log", "math", "nowide", "process", "program_options", "random", "regex", "serialization", "stacktrace", "test", "thread", "timer", "type_erasure", "url", "wave"]
default = []
additive = true
doc = "The compiled libraries to build (b2 --with-<library>); each becomes a product. Without any, Boost is its headers."

[options.icu]
type = "bool"
default = false
doc = "ICU (the icu4c recipe) as the backend of Boost.Locale and for the Unicode support of Boost.Regex (boost/regex/icu.hpp). The products of Boost then hold ICU's libraries, which a static link takes only as far as it uses them."

[deps.icu4c]
version = ">= 70"
default-recipe = "apotocki/icu4c"
when = { option = "icu" }

[[product]]
name = "Boost"
libraries = []
link = { runtime = "c++" }
apple = { privacy-manifest = "none" }

[[product]]
name = "BoostAtomic"
libraries = ["atomic"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "atomic" }

[[product]]
name = "BoostCharconv"
libraries = ["charconv"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "charconv" }

[[product]]
name = "BoostChrono"
libraries = ["chrono"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "chrono" }
apple = { privacy-manifest = "privacy/boot.xcprivacy" }

[[product]]
name = "BoostCobalt"
libraries = ["cobalt", "cobalt_io", "container", "context", "date_time", "exception"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "cobalt" }
apple = { privacy-manifest = "privacy/timestamps.xcprivacy" }

[[product]]
name = "BoostContainer"
libraries = ["container"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "container" }

[[product]]
name = "BoostContext"
libraries = ["context"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "context" }

[[product]]
name = "BoostContract"
libraries = ["contract", "atomic", "chrono", "container", "date_time", "exception", "thread"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "contract" }
apple = { privacy-manifest = "privacy/boot.xcprivacy" }

[[product]]
name = "BoostCoroutine"
libraries = ["coroutine", "context", "exception"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "coroutine" }

[[product]]
name = "BoostDateTime"
libraries = ["date_time", "container", "exception"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "date_time" }

[[product]]
name = "BoostException"
libraries = ["exception"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "exception" }

[[product]]
name = "BoostFiber"
libraries = ["fiber", "context", "exception", "filesystem"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "fiber" }
apple = { privacy-manifest = "privacy/timestamps-disk.xcprivacy" }

[[product]]
name = "BoostFilesystem"
libraries = ["filesystem"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "filesystem" }
apple = { privacy-manifest = "privacy/timestamps-disk.xcprivacy" }

[[product]]
name = "BoostGraph"
libraries = ["graph", "atomic", "chrono", "container", "date_time", "exception", "math_c99", "math_c99f", "math_c99l", "math_tr1", "math_tr1f", "math_tr1l", "random", "serialization", "thread", "wserialization"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "graph" }
apple = { privacy-manifest = "privacy/boot.xcprivacy" }

[[product]]
name = "BoostIostreams"
libraries = ["iostreams", "random"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "iostreams" }
apple = { privacy-manifest = "privacy/timestamps.xcprivacy" }

[[product]]
name = "BoostJson"
libraries = ["json", "container"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "json" }

[[product]]
name = "BoostLocale"
libraries = ["locale", "atomic", "charconv", "chrono", "container", "date_time", "exception", "thread"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "locale" }
apple = { privacy-manifest = "privacy/boot.xcprivacy" }

[[product]]
name = "BoostLog"
libraries = ["log", "log_setup", "atomic", "chrono", "container", "date_time", "exception", "filesystem", "serialization", "thread", "wserialization"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "log" }
apple = { privacy-manifest = "privacy/all.xcprivacy" }

[[product]]
name = "BoostMath"
libraries = ["math_c99", "math_c99f", "math_c99l", "math_tr1", "math_tr1f", "math_tr1l", "container", "random"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "math" }

[[product]]
name = "BoostNowide"
libraries = ["nowide"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "nowide" }

[[product]]
name = "BoostProcess"
libraries = ["process", "container", "context", "date_time", "exception", "filesystem"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "process" }
apple = { privacy-manifest = "privacy/timestamps-disk.xcprivacy" }

[[product]]
name = "BoostProgramOptions"
libraries = ["program_options", "container"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "program_options" }

[[product]]
name = "BoostRandom"
libraries = ["random"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "random" }

[[product]]
name = "BoostRegex"
libraries = ["regex"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "regex" }

[[product]]
name = "BoostSerialization"
libraries = ["serialization", "wserialization", "atomic", "chrono", "container", "date_time", "exception", "thread"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "serialization" }
apple = { privacy-manifest = "privacy/boot.xcprivacy" }

[[product]]
name = "BoostStacktraceBasic"
libraries = ["stacktrace_basic"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "stacktrace" }
alternatives = "stacktrace"

[[product]]
name = "BoostStacktraceNoop"
libraries = ["stacktrace_noop"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "stacktrace" }
alternatives = "stacktrace"

[[product]]
name = "BoostUnitTestFramework"
libraries = ["unit_test_framework", "exception"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "test" }
alternatives = "test"
apple = { privacy-manifest = "privacy/boot.xcprivacy" }

[[product]]
name = "BoostPrgExecMonitor"
libraries = ["prg_exec_monitor"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "test" }
alternatives = "test"

[[product]]
name = "BoostTestExecMonitor"
libraries = ["test_exec_monitor", "exception"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "test" }
alternatives = "test"
apple = { privacy-manifest = "privacy/boot.xcprivacy" }

[[product]]
name = "BoostThread"
libraries = ["thread", "atomic", "chrono", "container", "date_time", "exception"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "thread" }
apple = { privacy-manifest = "privacy/boot.xcprivacy" }

[[product]]
name = "BoostTimer"
libraries = ["timer"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "timer" }

[[product]]
name = "BoostTypeErasure"
libraries = ["type_erasure", "atomic", "chrono", "container", "date_time", "exception", "thread"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "type_erasure" }
apple = { privacy-manifest = "privacy/boot.xcprivacy" }

[[product]]
name = "BoostUrl"
libraries = ["url"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "url" }

[[product]]
name = "BoostWave"
libraries = ["wave", "atomic", "chrono", "container", "date_time", "exception", "filesystem", "serialization", "thread", "wserialization"]
headers = false
depends = ["Boost"]
when = { option = "libraries", has = "wave" }
apple = { privacy-manifest = "privacy/all.xcprivacy" }