Added recipe for boost.

This commit is contained in:
2024-08-04 02:31:31 +02:00
parent 6302d61d42
commit abc72895e6
3 changed files with 86 additions and 0 deletions

12
recipes/boost/recipe.py Normal file
View File

@@ -0,0 +1,12 @@
import os
from SCons.Script import *
def cook(env: Environment, version: str = "1.85.0") -> dict:
# TODO: build binaries?
url = f'https://archives.boost.io/release/{version}/source/boost_{version.replace(".", "_")}.tar.gz'
repo = env.Cook('DownloadAndExtract', f'boost_{version}', url = url, skip_folders = 1)
checkout_root = repo['extracted_root']
return {
'CPPPATH': [checkout_root]
}