12 lines
465 B
Python
12 lines
465 B
Python
|
|
from SCons.Script import *
|
|
|
|
def cook(env: Environment, git_ref = 'main') -> dict:
|
|
repo = env.Cook('GitBranch', repo_name = 'libjpeg-turbo', remote_url = 'https://github.com/libjpeg-turbo/libjpeg-turbo.git', git_ref = git_ref)
|
|
checkout_root = repo['checkout_root']
|
|
build_result = env.Cook('CMakeProject', checkout_root)
|
|
return {
|
|
'CPPPATH': build_result['CPPPATH'],
|
|
'LIBS': [env.FindLib('jpeg', paths=build_result['LIBPATH'])],
|
|
}
|