From e89c62f2dbcf3c8c2088a6f8d5b0aa5810c0ec50 Mon Sep 17 00:00:00 2001 From: bluisblu <53455507+bluisblu@users.noreply.github.com> Date: Fri, 19 Jun 2026 16:55:51 -0400 Subject: [PATCH] Configure libpng --- configure.py | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/configure.py b/configure.py index f9a8d28..aff00b2 100755 --- a/configure.py +++ b/configure.py @@ -274,9 +274,11 @@ def Rel(lib_name: str, objects: List[Object]) -> Dict[str, Any]: } -Matching = True # Object matches and should be linked -NonMatching = False # Object does not match and should not be linked -Equivalent = config.non_matching # Object should be linked when configured with --non-matching +Matching = True # Object matches and should be linked +NonMatching = False # Object does not match and should not be linked +Equivalent = ( + config.non_matching +) # Object should be linked when configured with --non-matching # Object is only matching for specific versions @@ -297,6 +299,24 @@ def MatchingFor(*versions): Object(NonMatching, "Runtime.PPCEABI.H/__init_cpp_exceptions.cpp"), ], }, + { + "lib": "libpng", + "mw_version": config.linker_version, + "cflags": cflags_runtime, + "progress_category": "libpng", # str | List[str] + "objects": [ + Object(NonMatching, "Pure3d/development/lib/libpng/png.c"), + Object(NonMatching, "Pure3d/development/lib/libpng/pngerror.c"), + Object(NonMatching, "Pure3d/development/lib/libpng/pngget.c"), + Object(NonMatching, "Pure3d/development/lib/libpng/pngmem.c"), + Object(NonMatching, "Pure3d/development/lib/libpng/pngread.c"), + Object(NonMatching, "Pure3d/development/lib/libpng/pngrio.c"), + Object(NonMatching, "Pure3d/development/lib/libpng/pngrtran.c"), + Object(NonMatching, "Pure3d/development/lib/libpng/pngrutil.c"), + Object(NonMatching, "Pure3d/development/lib/libpng/pngset.c"), + Object(NonMatching, "Pure3d/development/lib/libpng/pngtrans.c"), + ], + }, DolphinLib( "base", [ @@ -459,6 +479,7 @@ def link_order_callback(module_id: int, objects: List[str]) -> List[str]: config.progress_categories = [ ProgressCategory("game", "Game Code"), ProgressCategory("sdk", "SDK Code"), + ProgressCategory("libpng", "Libpng Code"), ] config.progress_each_module = args.verbose # Optional extra arguments to `objdiff-cli report generate`