More recipes (libjpeg, libz, imagemagick).

This commit is contained in:
2024-08-04 12:53:07 +02:00
parent abc72895e6
commit bbfec6c98a
6 changed files with 69 additions and 5 deletions

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

@@ -0,0 +1,12 @@
import os
from SCons.Script import *
def cook(env: Environment, git_ref: str = 'master') -> dict:
repo = env.Cook('GitBranch', repo_name = 'zlib', remote_url = 'https://github.com/madler/zlib.git', git_ref = git_ref)
extracted_root = repo['checkout_root']
build_result = env.Cook('CMakeProject', project_root=extracted_root)
return {
'CPPPATH': [os.path.join(build_result['install_dir'], 'install')],
'LIBS': [env.FindLib('z', paths=build_result['LIBPATH'])]
}