From 6302d61d42326b3768368d636d227d9a21334a7a Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Sat, 3 Aug 2024 21:31:34 +0200 Subject: [PATCH] Added recipe for libpng. --- recipes/libpng/recipe.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 recipes/libpng/recipe.py diff --git a/recipes/libpng/recipe.py b/recipes/libpng/recipe.py new file mode 100644 index 0000000..764bb39 --- /dev/null +++ b/recipes/libpng/recipe.py @@ -0,0 +1,12 @@ + +from SCons.Script import * + +def cook(env: Environment, git_ref = 'master') -> dict: + 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 { + 'LIBPATH': build_result['LIBPATH'], + 'CPPPATH': build_result['CPPPATH'], + 'LIBS': ['png'] + }