📦 deps(standards): vendor playbook

This commit is contained in:
csh
2025-12-14 17:55:55 +08:00
49 changed files with 2756 additions and 0 deletions
@@ -0,0 +1,24 @@
# Linux (Clang)
#
# Profile naming convention (suggested):
# linux-<arch>-clang<major>
# If the repo only supports one clang version, you may omit the <major> suffix.
[settings]
os=Linux
arch=x86_64
compiler=clang
compiler.version=20
compiler.libcxx=libc++
compiler.cppstd=23
build_type=Release
[conf]
# Prefer pinning the exact compiler executables to avoid PATH drift.
tools.build:compiler_executables={"c": "/usr/bin/clang", "cpp": "/usr/bin/clang++"}
tools.cmake.cmaketoolchain:generator=Ninja
# Keep Conan's cmake_layout output stable and predictable.
tools.cmake.cmake_layout:build_folder=.
tools.cmake.cmake_layout:build_folder_vars=[]
@@ -0,0 +1,38 @@
# Windows target cross (Clang) from Linux host
#
# IMPORTANT:
# - This profile describes the *output platform* (target), so [settings] os=Windows.
# - Use a "windows-..." prefix to avoid misleading readers into thinking the output is Linux.
#
# Profile naming convention (suggested):
# windows-<arch>-clang<major>-cross
[settings]
os=Windows
arch=x86_64
compiler=clang
compiler.version=20
compiler.runtime=static
compiler.libcxx=libc++
compiler.cppstd=23
build_type=Release
[conf]
# Configure your cross clang executables here (do NOT hardcode a specific distro name in docs).
tools.build:compiler_executables={"c": "<TOOLCHAIN_ROOT>/bin/x86_64-w64-mingw32-clang", "cpp": "<TOOLCHAIN_ROOT>/bin/x86_64-w64-mingw32-clang++"}
# Tell Conan/CMake the target triple and platform.
tools.gnu:host_triplet=x86_64-w64-mingw32
tools.cmake.cmaketoolchain:generator=Ninja
tools.cmake.cmaketoolchain:system_name=Windows
tools.cmake.cmaketoolchain:system_processor=x86_64
tools.cmake.cmaketoolchain:system_version=11
# Keep Conan's cmake_layout output stable and predictable.
tools.cmake.cmake_layout:build_folder=.
tools.cmake.cmake_layout:build_folder_vars=[]
[buildenv]
# Resource compiler (optional; adjust if your toolchain uses a different windres name/path).
RC=x86_64-w64-mingw32-windres