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

View File

@@ -33,9 +33,15 @@ def cook(env: Environment, project_root: str, generate_args: 'list[str]' = [], b
run_cmd(['cmake', '--install', *install_args, cmd_quote(build_dir)])
pathlib.Path(install_dir, _BUILT_STAMPFILE).touch()
libpath = []
for lib_folder in ('lib', 'lib64'):
full_path = os.path.join(install_dir, lib_folder)
if os.path.exists(full_path):
libpath.append(full_path)
return {
'install_dir': install_dir,
'LIBPATH': [os.path.join(install_dir, 'lib')],
'LIBPATH': libpath,
'CPPPATH': [os.path.join(install_dir, 'include')]
}