14 lines
517 B
Python
14 lines
517 B
Python
|
|
from SCons.Script import *
|
|
|
|
def cook(env: Environment, git_ref = 'master') -> dict:
|
|
lib_z = env.Cook('zlib')
|
|
repo = env.Cook('GitBranch', repo_name = 'libpng', remote_url = 'https://git.code.sf.net/p/libpng/code.git', git_ref = git_ref)
|
|
checkout_root = repo['checkout_root']
|
|
build_result = env.Cook('AutotoolsProject', checkout_root)
|
|
return {
|
|
'CPPPATH': build_result['CPPPATH'],
|
|
'LIBS': [env.FindLib('png16', paths=build_result['LIBPATH'])],
|
|
'DEPENDENCIES': [lib_z]
|
|
}
|