configure.py: Store source complete in the library listings instead of separately

This commit is contained in:
Phillip Stephens 2022-10-09 16:48:42 -07:00
parent cfe317dce9
commit d13e0eeb2c
1 changed files with 156 additions and 272 deletions

View File

@ -21,149 +21,14 @@ if os.name != "nt" and not "_NT-" in os.uname().sysname:
parser.add_argument('--wine', dest='wine', help='path to wine (or wibo)') parser.add_argument('--wine', dest='wine', help='path to wine (or wibo)')
args = parser.parse_args() args = parser.parse_args()
# Completed c/cpp files to link
COMPLETE_OBJECTS = [
"MetroTRK/mslsupp",
"MetroidPrime/CAxisAngle",
"MetroidPrime/CEntity",
"MetroidPrime/CArchMsgParmUserInput",
"MetroidPrime/CArchMsgParmInt32",
"MetroidPrime/CArchMsgParmInt32Int32VoidPtr",
"MetroidPrime/CArchMsgParmNull",
"MetroidPrime/CArchMsgParmReal32",
"MetroidPrime/CArchMsgParmControllerStatus",
"MetroidPrime/TCastTo",
"MetroidPrime/UserNames",
"MetroidPrime/CPhysicsState",
"MetroidPrime/CMemoryDrawEnum",
"MetroidPrime/HUD/CHUDMemoParms",
"MetroidPrime/ScriptObjects/CScriptDebugCameraWaypoint",
"MetroidPrime/ScriptObjects/CScriptPickup",
"MetroidPrime/ScriptObjects/CScriptSwitch",
"MetroidPrime/CIOWin",
"WorldFormat/CCollisionSurface",
"Weapons/IWeaponRenderer",
"Collision/CMaterialList",
"Collision/CMaterialFilter",
"Collision/CCollisionInfo",
"Collision/CMRay",
"Kyoto/Basics/CStopwatch",
"Kyoto/Basics/COsContextDolphin",
"Kyoto/Basics/CSWDataDolphin",
"Kyoto/Audio/CSfxHandle",
"Kyoto/Graphics/CLight",
"Kyoto/Graphics/CGX",
"Kyoto/Particles/CIntElement",
"Kyoto/Particles/CWarp",
"Kyoto/Math/CPlane",
"Kyoto/Math/CUnitVector3f",
"Kyoto/Math/CVector2f",
"Kyoto/Math/CVector2i",
"Kyoto/Math/CVector3d",
"Kyoto/Math/CVector3i",
"Kyoto/Math/CloseEnough",
"Kyoto/Math/CSphere",
"Kyoto/CRandom16",
"Kyoto/CCrc32",
"Kyoto/Alloc/CCircularBuffer",
"Kyoto/Alloc/IAllocator",
"Kyoto/Streams/CInputStream",
"Kyoto/Streams/CMemoryInStream",
"Kyoto/zlib/adler32",
"Kyoto/zlib/infblock",
"Kyoto/zlib/infcodes",
"Kyoto/zlib/inffast",
"Kyoto/zlib/inflate",
"Kyoto/zlib/inftrees",
"Kyoto/zlib/infutil",
"Kyoto/zlib/zutil",
"Kyoto/Graphics/CColor",
"Kyoto/Input/CFinalInput",
"Kyoto/Input/RumbleAdsr",
"Kyoto/Input/DolphinIController",
"Kyoto/Input/CDolphinController",
"Kyoto/Alloc/CSmallAllocPool",
"Kyoto/Text/CStringTable",
"Kyoto/CTimeProvider",
"Kyoto/Text/CFontImageDef",
"Kyoto/Graphics/DolphinCColor",
"Kyoto/Audio/g721",
"Kyoto/IObj",
"Dolphin/PPCArch",
"Dolphin/dsp/dsp_debug",
"Dolphin/os/__start",
"Dolphin/os/OSAudioSystem",
"Dolphin/os/__ppc_eabi_init",
"Runtime/__mem",
"Runtime/abort_exit",
"Runtime/ctype",
"Runtime/locale",
"Runtime/mem",
"Runtime/mem_funcs",
"Runtime/misc_io",
"Runtime/rand",
"Runtime/wchar_io",
"Runtime/e_acos",
"Runtime/e_asin",
"Runtime/e_atan2",
"Runtime/e_fmod",
"Runtime/e_log",
"Runtime/e_rem_pio2",
"Runtime/k_cos",
"Runtime/k_sin",
"Runtime/k_tan",
"Runtime/s_copysign",
"Runtime/s_cos",
"Runtime/s_floor",
"Runtime/s_frexp",
"Runtime/s_ldexp",
"Runtime/s_modf",
"Runtime/s_nextafter",
"Runtime/s_sin",
"Runtime/s_tan",
"Runtime/w_acos",
"Runtime/w_asin",
"Runtime/w_atan2",
"Runtime/w_exp",
"Runtime/w_fmod",
"Runtime/w_log",
"Runtime/w_pow",
"Runtime/math_ppc",
"musyx/seq_api",
"musyx/synth_ac",
"musyx/synth_dbtab",
"musyx/snd_init",
"musyx/snd_service",
"musyx/dsp_import",
"musyx/hw_memory",
"musyx/creverb_fx",
"musyx/reverb_fx",
"musyx/delay_fx",
"Dolphin/pad/PadClamp",
#"Dolphin/pad/pad",
"Dolphin/dtk",
"Dolphin/card/CARDUnlock",
"Dolphin/card/CARDRdwr",
"Dolphin/card/CARDBlock",
"Dolphin/card/CARDDir",
"Dolphin/card/CARDMount",
"Dolphin/card/CARDFormat",
"Dolphin/card/CARDOpen",
"Dolphin/card/CARDCreate",
"Dolphin/card/CARDRead",
"Dolphin/card/CARDWrite",
"Dolphin/card/CARDDelete",
"Dolphin/card/CARDStat",
"Dolphin/card/CARDRename",
"Dolphin/card/CARDNet",
]
LIBS = [ LIBS = [
{ {
"lib": "TRK_MINNOW_DOLPHIN", "lib": "TRK_MINNOW_DOLPHIN",
"mwcc_version": "1.2.5", "mwcc_version": "1.2.5",
"cflags": "$cflags_base", "cflags": "$cflags_base",
"objects": ["MetroTRK/mslsupp"], "objects": [
["MetroTRK/mslsupp", True],
],
}, },
{ {
"lib": "MetroidPrimeCW", "lib": "MetroidPrimeCW",
@ -177,9 +42,9 @@ LIBS = [
"MetroidPrime/Cameras/CFirstPersonCamera", "MetroidPrime/Cameras/CFirstPersonCamera",
"MetroidPrime/CObjectList", "MetroidPrime/CObjectList",
"MetroidPrime/Player/CPlayer", "MetroidPrime/Player/CPlayer",
"MetroidPrime/CAxisAngle", ["MetroidPrime/CAxisAngle", True],
"MetroidPrime/CEulerAngles", "MetroidPrime/CEulerAngles",
"MetroidPrime/CArchMsgParmUserInput", ["MetroidPrime/CArchMsgParmUserInput", True],
"MetroidPrime/CFrontEndUI", "MetroidPrime/CFrontEndUI",
"MetroidPrime/CInputGenerator", "MetroidPrime/CInputGenerator",
"MetroidPrime/CMainFlow", "MetroidPrime/CMainFlow",
@ -196,19 +61,19 @@ LIBS = [
"MetroidPrime/CGameProjectile", "MetroidPrime/CGameProjectile",
"MetroidPrime/Player/CPlayerGun", "MetroidPrime/Player/CPlayerGun",
"MetroidPrime/CStateManager", "MetroidPrime/CStateManager",
"MetroidPrime/CEntity", ["MetroidPrime/CEntity", True],
"MetroidPrime/CArchMsgParmInt32", ["MetroidPrime/CArchMsgParmInt32", True],
"MetroidPrime/CArchMsgParmInt32Int32VoidPtr", ["MetroidPrime/CArchMsgParmInt32Int32VoidPtr", True],
"MetroidPrime/CArchMsgParmNull", ["MetroidPrime/CArchMsgParmNull", True],
"MetroidPrime/CArchMsgParmReal32", ["MetroidPrime/CArchMsgParmReal32", True],
"MetroidPrime/Decode", "MetroidPrime/Decode",
"MetroidPrime/CIOWinManager", "MetroidPrime/CIOWinManager",
"MetroidPrime/CIOWin", ["MetroidPrime/CIOWin", True],
"MetroidPrime/CActor", "MetroidPrime/CActor",
"MetroidPrime/CWorld", "MetroidPrime/CWorld",
"MetroidPrime/Tweaks/CTweakParticle", "MetroidPrime/Tweaks/CTweakParticle",
"MetroidPrime/Clamp_int", "MetroidPrime/Clamp_int",
"MetroidPrime/CArchMsgParmControllerStatus", ["MetroidPrime/CArchMsgParmControllerStatus", True],
"MetroidPrime/CExplosion", "MetroidPrime/CExplosion",
"MetroidPrime/CEffect", "MetroidPrime/CEffect",
"MetroidPrime/Cameras/CGameCamera", "MetroidPrime/Cameras/CGameCamera",
@ -239,10 +104,10 @@ LIBS = [
"MetroidPrime/CMapWorld", "MetroidPrime/CMapWorld",
"MetroidPrime/Enemies/CAi", "MetroidPrime/Enemies/CAi",
"MetroidPrime/Enemies/PatternedCastTo", "MetroidPrime/Enemies/PatternedCastTo",
"MetroidPrime/TCastTo", ["MetroidPrime/TCastTo", True],
"MetroidPrime/ScriptObjects/CScriptSound", "MetroidPrime/ScriptObjects/CScriptSound",
"MetroidPrime/ScriptObjects/CScriptPlatform", "MetroidPrime/ScriptObjects/CScriptPlatform",
"MetroidPrime/UserNames", ["MetroidPrime/UserNames", True],
"MetroidPrime/ScriptObjects/CScriptGenerator", "MetroidPrime/ScriptObjects/CScriptGenerator",
"MetroidPrime/ScriptObjects/CScriptCameraWaypoint", "MetroidPrime/ScriptObjects/CScriptCameraWaypoint",
"MetroidPrime/CGameLight", "MetroidPrime/CGameLight",
@ -254,9 +119,9 @@ LIBS = [
"MetroidPrime/Tweaks/CTweakGunRes", "MetroidPrime/Tweaks/CTweakGunRes",
"MetroidPrime/CTargetReticles", "MetroidPrime/CTargetReticles",
"MetroidPrime/CWeaponMgr", "MetroidPrime/CWeaponMgr",
"MetroidPrime/ScriptObjects/CScriptPickup", ["MetroidPrime/ScriptObjects/CScriptPickup", True],
"MetroidPrime/CDamageInfo", "MetroidPrime/CDamageInfo",
"MetroidPrime/CMemoryDrawEnum", ["MetroidPrime/CMemoryDrawEnum", True],
"MetroidPrime/ScriptObjects/CScriptDock", "MetroidPrime/ScriptObjects/CScriptDock",
"MetroidPrime/ScriptObjects/CScriptCameraHint", "MetroidPrime/ScriptObjects/CScriptCameraHint",
"MetroidPrime/ScriptLoader", "MetroidPrime/ScriptLoader",
@ -271,7 +136,7 @@ LIBS = [
"MetroidPrime/ScriptObjects/CScriptSpawnPoint", "MetroidPrime/ScriptObjects/CScriptSpawnPoint",
"MetroidPrime/ScriptObjects/CScriptRandomRelay", "MetroidPrime/ScriptObjects/CScriptRandomRelay",
"MetroidPrime/Enemies/CBeetle", "MetroidPrime/Enemies/CBeetle",
"MetroidPrime/HUD/CHUDMemoParms", ["MetroidPrime/HUD/CHUDMemoParms", True],
"MetroidPrime/ScriptObjects/CScriptHUDMemo", "MetroidPrime/ScriptObjects/CScriptHUDMemo",
"MetroidPrime/CMappableObject", "MetroidPrime/CMappableObject",
"MetroidPrime/Player/CPlayerCameraBob", "MetroidPrime/Player/CPlayerCameraBob",
@ -302,7 +167,7 @@ LIBS = [
"MetroidPrime/Enemies/CBloodFlower", "MetroidPrime/Enemies/CBloodFlower",
"MetroidPrime/TGameTypes", "MetroidPrime/TGameTypes",
"MetroidPrime/CPhysicsActor", "MetroidPrime/CPhysicsActor",
"MetroidPrime/CPhysicsState", ["MetroidPrime/CPhysicsState", True],
"MetroidPrime/CRipple", "MetroidPrime/CRipple",
"MetroidPrime/CFluidUVMotion", "MetroidPrime/CFluidUVMotion",
"MetroidPrime/CRippleManager", "MetroidPrime/CRippleManager",
@ -341,7 +206,7 @@ LIBS = [
"MetroidPrime/Enemies/CPuddleSpore", "MetroidPrime/Enemies/CPuddleSpore",
"MetroidPrime/BodyState/CBSTaunt", "MetroidPrime/BodyState/CBSTaunt",
"MetroidPrime/CSortedLists", "MetroidPrime/CSortedLists",
"MetroidPrime/ScriptObjects/CScriptDebugCameraWaypoint", ["MetroidPrime/ScriptObjects/CScriptDebugCameraWaypoint", True],
"MetroidPrime/ScriptObjects/CScriptSpiderBallAttractionSurface", "MetroidPrime/ScriptObjects/CScriptSpiderBallAttractionSurface",
"MetroidPrime/BodyState/CBSScripted", "MetroidPrime/BodyState/CBSScripted",
"MetroidPrime/Enemies/CPuddleToadGamma", "MetroidPrime/Enemies/CPuddleToadGamma",
@ -423,7 +288,7 @@ LIBS = [
"MetroidPrime/Enemies/CJellyZap", "MetroidPrime/Enemies/CJellyZap",
"MetroidPrime/ScriptObjects/CScriptControllerAction", "MetroidPrime/ScriptObjects/CScriptControllerAction",
"MetroidPrime/Weapons/GunController/CGunMotion", "MetroidPrime/Weapons/GunController/CGunMotion",
"MetroidPrime/ScriptObjects/CScriptSwitch", ["MetroidPrime/ScriptObjects/CScriptSwitch", True],
"MetroidPrime/BodyState/CABSIdle", "MetroidPrime/BodyState/CABSIdle",
"MetroidPrime/BodyState/CABSFlinch", "MetroidPrime/BodyState/CABSFlinch",
"MetroidPrime/BodyState/CABSAim", "MetroidPrime/BodyState/CABSAim",
@ -532,7 +397,7 @@ LIBS = [
"cflags": "$cflags_retro", "cflags": "$cflags_retro",
"objects": [ "objects": [
"WorldFormat/CAreaOctTree_Tests", "WorldFormat/CAreaOctTree_Tests",
"WorldFormat/CCollisionSurface", ["WorldFormat/CCollisionSurface", True],
"WorldFormat/CMetroidModelInstance", "WorldFormat/CMetroidModelInstance",
"WorldFormat/CAreaBspTree", "WorldFormat/CAreaBspTree",
"WorldFormat/CAreaOctTree", "WorldFormat/CAreaOctTree",
@ -553,7 +418,7 @@ LIBS = [
"Weapons/CProjectileWeapon", "Weapons/CProjectileWeapon",
"Weapons/CProjectileWeaponDataFactory", "Weapons/CProjectileWeaponDataFactory",
"Weapons/CCollisionResponseData", "Weapons/CCollisionResponseData",
"Weapons/IWeaponRenderer", ["Weapons/IWeaponRenderer", True],
"Weapons/CDecalDataFactory", "Weapons/CDecalDataFactory",
"Weapons/CDecal", "Weapons/CDecal",
"Weapons/CWeaponDescription", "Weapons/CWeaponDescription",
@ -599,15 +464,15 @@ LIBS = [
"objects": [ "objects": [
"Collision/CCollidableAABox", "Collision/CCollidableAABox",
"Collision/CCollidableCollisionSurface", "Collision/CCollidableCollisionSurface",
"Collision/CCollisionInfo", ["Collision/CCollisionInfo", True],
"Collision/InternalColliders", "Collision/InternalColliders",
"Collision/CCollisionPrimitive", "Collision/CCollisionPrimitive",
"Collision/CMaterialList", ["Collision/CMaterialList", True],
"Collision/CollisionUtil", "Collision/CollisionUtil",
"Collision/CCollidableSphere", "Collision/CCollidableSphere",
"Collision/CMaterialFilter", ["Collision/CMaterialFilter", True],
"Collision/COBBox", "Collision/COBBox",
"Collision/CMRay", ["Collision/CMRay", True],
], ],
}, },
{ {
@ -616,11 +481,11 @@ LIBS = [
"cflags": "$cflags_retro", "cflags": "$cflags_retro",
"objects": [ "objects": [
"Kyoto/Basics/CBasics", "Kyoto/Basics/CBasics",
"Kyoto/Basics/CStopwatch", ["Kyoto/Basics/CStopwatch", True],
"Kyoto/Basics/CBasicsDolphin", "Kyoto/Basics/CBasicsDolphin",
"Kyoto/Basics/CCallStackDolphin", "Kyoto/Basics/CCallStackDolphin",
"Kyoto/Basics/COsContextDolphin", ["Kyoto/Basics/COsContextDolphin", True],
"Kyoto/Basics/CSWDataDolphin", ["Kyoto/Basics/CSWDataDolphin", True],
"Kyoto/Basics/RAssertDolphin", "Kyoto/Basics/RAssertDolphin",
"Kyoto/Animation/CAnimation", "Kyoto/Animation/CAnimation",
"Kyoto/Animation/CAnimationManager", "Kyoto/Animation/CAnimationManager",
@ -652,7 +517,7 @@ LIBS = [
"Kyoto/Animation/CTransitionManager", "Kyoto/Animation/CTransitionManager",
"Kyoto/Animation/CTreeUtils", "Kyoto/Animation/CTreeUtils",
"Kyoto/Animation/IMetaAnim", "Kyoto/Animation/IMetaAnim",
"Kyoto/Audio/CSfxHandle", ["Kyoto/Audio/CSfxHandle", True],
"Kyoto/Audio/CSfxManager", "Kyoto/Audio/CSfxManager",
"Kyoto/Animation/CAdvancementDeltas", "Kyoto/Animation/CAdvancementDeltas",
"Kyoto/Animation/CAnimMathUtils", "Kyoto/Animation/CAnimMathUtils",
@ -703,35 +568,35 @@ LIBS = [
"Kyoto/Text/CWordInstruction", "Kyoto/Text/CWordInstruction",
"Kyoto/Text/CBlockInstruction", "Kyoto/Text/CBlockInstruction",
"Kyoto/Text/CFont", "Kyoto/Text/CFont",
"Kyoto/Graphics/CLight", ["Kyoto/Graphics/CLight", True],
"Kyoto/Graphics/CCubeModel", "Kyoto/Graphics/CCubeModel",
"Kyoto/Graphics/CGX", ["Kyoto/Graphics/CGX", True],
"Kyoto/Graphics/CTevCombiners", "Kyoto/Graphics/CTevCombiners",
"Kyoto/Graphics/DolphinCGraphics", "Kyoto/Graphics/DolphinCGraphics",
"Kyoto/Graphics/DolphinCPalette", "Kyoto/Graphics/DolphinCPalette",
"Kyoto/Graphics/DolphinCTexture", "Kyoto/Graphics/DolphinCTexture",
"Kyoto/Math/CloseEnough", ["Kyoto/Math/CloseEnough", True],
"Kyoto/Math/CMatrix3f", "Kyoto/Math/CMatrix3f",
"Kyoto/Math/CMatrix4f", "Kyoto/Math/CMatrix4f",
"Kyoto/Math/CQuaternion", "Kyoto/Math/CQuaternion",
"Kyoto/CRandom16", ["Kyoto/CRandom16", True],
"Kyoto/Math/CTransform4f", "Kyoto/Math/CTransform4f",
"Kyoto/Math/CUnitVector3f", ["Kyoto/Math/CUnitVector3f", True],
"Kyoto/Math/CVector2f", ["Kyoto/Math/CVector2f", True],
"Kyoto/Math/CVector2i", ["Kyoto/Math/CVector2i", True],
"Kyoto/Math/CVector3d", ["Kyoto/Math/CVector3d", True],
"Kyoto/Math/CVector3f", "Kyoto/Math/CVector3f",
"Kyoto/Math/CVector3i", ["Kyoto/Math/CVector3i", True],
"Kyoto/Math/RMathUtils", "Kyoto/Math/RMathUtils",
"Kyoto/CCrc32", ["Kyoto/CCrc32", True],
"Kyoto/Alloc/CCircularBuffer", ["Kyoto/Alloc/CCircularBuffer", True],
"Kyoto/Alloc/CMemory", "Kyoto/Alloc/CMemory",
"Kyoto/Alloc/IAllocator", ["Kyoto/Alloc/IAllocator", True],
"Kyoto/PVS/CPVSVisOctree", "Kyoto/PVS/CPVSVisOctree",
"Kyoto/PVS/CPVSVisSet", "Kyoto/PVS/CPVSVisSet",
"Kyoto/Particles/CColorElement", "Kyoto/Particles/CColorElement",
"Kyoto/Particles/CElementGen", "Kyoto/Particles/CElementGen",
"Kyoto/Particles/CIntElement", ["Kyoto/Particles/CIntElement", True],
"Kyoto/Particles/CModVectorElement", "Kyoto/Particles/CModVectorElement",
"Kyoto/Particles/CParticleDataFactory", "Kyoto/Particles/CParticleDataFactory",
"Kyoto/Particles/CParticleGen", "Kyoto/Particles/CParticleGen",
@ -742,9 +607,9 @@ LIBS = [
"Kyoto/Particles/CSpawnSystemKeyframeData", "Kyoto/Particles/CSpawnSystemKeyframeData",
"Kyoto/Particles/CUVElement", "Kyoto/Particles/CUVElement",
"Kyoto/Particles/CVectorElement", "Kyoto/Particles/CVectorElement",
"Kyoto/Particles/CWarp", ["Kyoto/Particles/CWarp", True],
"Kyoto/Math/CPlane", ["Kyoto/Math/CPlane", True],
"Kyoto/Math/CSphere", ["Kyoto/Math/CSphere", True],
"Kyoto/Math/CAABox", "Kyoto/Math/CAABox",
"Kyoto/CFactoryMgr", "Kyoto/CFactoryMgr",
"Kyoto/CResFactory", "Kyoto/CResFactory",
@ -752,15 +617,15 @@ LIBS = [
"Kyoto/rstl/rstl_map", "Kyoto/rstl/rstl_map",
"Kyoto/rstl/rstl_strings", "Kyoto/rstl/rstl_strings",
"Kyoto/rstl/RstlExtras", "Kyoto/rstl/RstlExtras",
"Kyoto/Streams/CInputStream", ["Kyoto/Streams/CInputStream", True],
"Kyoto/Streams/CMemoryInStream", ["Kyoto/Streams/CMemoryInStream", True],
"Kyoto/Streams/CMemoryStreamOut", "Kyoto/Streams/CMemoryStreamOut",
"Kyoto/Streams/COutputStream", "Kyoto/Streams/COutputStream",
"Kyoto/Streams/CZipInputStream", "Kyoto/Streams/CZipInputStream",
"Kyoto/Streams/CZipSupport", "Kyoto/Streams/CZipSupport",
"Kyoto/CSimplePool", "Kyoto/CSimplePool",
"Kyoto/CToken", "Kyoto/CToken",
"Kyoto/IObj", ["Kyoto/IObj", True],
], ],
}, },
{ {
@ -768,14 +633,14 @@ LIBS = [
"mwcc_version": "1.3.2", "mwcc_version": "1.3.2",
"cflags": "$cflags_runtime", "cflags": "$cflags_runtime",
"objects": [ "objects": [
"Kyoto/zlib/adler32", ["Kyoto/zlib/adler32", True],
"Kyoto/zlib/infblock", ["Kyoto/zlib/infblock", True],
"Kyoto/zlib/infcodes", ["Kyoto/zlib/infcodes", True],
"Kyoto/zlib/inffast", ["Kyoto/zlib/inffast", True],
"Kyoto/zlib/inflate", ["Kyoto/zlib/inflate", True],
"Kyoto/zlib/inftrees", ["Kyoto/zlib/inftrees", True],
"Kyoto/zlib/infutil", ["Kyoto/zlib/infutil", True],
"Kyoto/zlib/zutil", ["Kyoto/zlib/zutil", True],
] ]
}, },
{ {
@ -789,38 +654,38 @@ LIBS = [
"Kyoto/Graphics/CCubeSurface", "Kyoto/Graphics/CCubeSurface",
"Kyoto/Animation/CCharAnimTime", "Kyoto/Animation/CCharAnimTime",
"Kyoto/Animation/CSegIdList", "Kyoto/Animation/CSegIdList",
"Kyoto/Input/CFinalInput", ["Kyoto/Input/CFinalInput", True],
"Kyoto/Graphics/CColor", ["Kyoto/Graphics/CColor", True],
"Kyoto/Audio/DolphinCAudioGroupSet", "Kyoto/Audio/DolphinCAudioGroupSet",
"Kyoto/Audio/DolphinCAudioSys", "Kyoto/Audio/DolphinCAudioSys",
"Kyoto/DolphinCMemoryCardSys", "Kyoto/DolphinCMemoryCardSys",
"Kyoto/Input/DolphinIController", ["Kyoto/Input/DolphinIController", True],
"Kyoto/Input/CDolphinController", ["Kyoto/Input/CDolphinController", True],
"Kyoto/DolphinCDvdFile", "Kyoto/DolphinCDvdFile",
"Kyoto/Alloc/CMediumAllocPool", "Kyoto/Alloc/CMediumAllocPool",
"Kyoto/Alloc/CSmallAllocPool", ["Kyoto/Alloc/CSmallAllocPool", True],
"Kyoto/Alloc/CGameAllocator", "Kyoto/Alloc/CGameAllocator",
"Kyoto/Animation/DolphinCSkinnedModel", "Kyoto/Animation/DolphinCSkinnedModel",
"Kyoto/Animation/DolphinCSkinRules", "Kyoto/Animation/DolphinCSkinRules",
"Kyoto/Animation/DolphinCVirtualBone", "Kyoto/Animation/DolphinCVirtualBone",
"Kyoto/Graphics/DolphinCModel", "Kyoto/Graphics/DolphinCModel",
"Kyoto/Text/CStringTable", ["Kyoto/Text/CStringTable", True],
"Kyoto/Particles/CEmitterElement", "Kyoto/Particles/CEmitterElement",
"Kyoto/Particles/CEffectComponent", "Kyoto/Particles/CEffectComponent",
"Kyoto/Particles/CParticleData", "Kyoto/Particles/CParticleData",
"Kyoto/Animation/CVertexMorphEffect", "Kyoto/Animation/CVertexMorphEffect",
"Kyoto/Animation/CSkinnedModelWithAvgNormals", "Kyoto/Animation/CSkinnedModelWithAvgNormals",
"Kyoto/CTimeProvider", ["Kyoto/CTimeProvider", True],
"Kyoto/CARAMToken", "Kyoto/CARAMToken",
"Kyoto/Audio/CMidiManager", "Kyoto/Audio/CMidiManager",
"Kyoto/Text/CFontImageDef", ["Kyoto/Text/CFontImageDef", True],
"Kyoto/Text/CImageInstruction", "Kyoto/Text/CImageInstruction",
"Kyoto/Text/CTextRenderBuffer", "Kyoto/Text/CTextRenderBuffer",
"Kyoto/Graphics/CCubeMoviePlayer", "Kyoto/Graphics/CCubeMoviePlayer",
"Kyoto/Animation/CAdditiveAnimPlayback", "Kyoto/Animation/CAdditiveAnimPlayback",
"Kyoto/Particles/CParticleElectricDataFactory", "Kyoto/Particles/CParticleElectricDataFactory",
"Kyoto/Particles/CParticleElectric", "Kyoto/Particles/CParticleElectric",
"Kyoto/Graphics/DolphinCColor", ["Kyoto/Graphics/DolphinCColor", True],
"Kyoto/Audio/CDSPStreamManager", "Kyoto/Audio/CDSPStreamManager",
"Kyoto/CDependencyGroup", "Kyoto/CDependencyGroup",
"Kyoto/Audio/CStreamAudioManager", "Kyoto/Audio/CStreamAudioManager",
@ -831,10 +696,10 @@ LIBS = [
"Kyoto/CPakFile", "Kyoto/CPakFile",
"Kyoto/Animation/CPoseAsTransforms", "Kyoto/Animation/CPoseAsTransforms",
"Kyoto/Input/CRumbleVoice", "Kyoto/Input/CRumbleVoice",
"Kyoto/Input/RumbleAdsr", ["Kyoto/Input/RumbleAdsr", True],
"Kyoto/Input/CRumbleGenerator", "Kyoto/Input/CRumbleGenerator",
"Kyoto/Audio/SDSPStream", "Kyoto/Audio/SDSPStream",
"Kyoto/Audio/g721", ["Kyoto/Audio/g721", True],
"Kyoto/Audio/CStaticAudioPlayer", "Kyoto/Audio/CStaticAudioPlayer",
"Kyoto/CFrameDelayedKiller", "Kyoto/CFrameDelayedKiller",
], ],
@ -858,7 +723,9 @@ LIBS = [
"lib": "base", "lib": "base",
"mwcc_version": "1.2.5", "mwcc_version": "1.2.5",
"cflags": "$cflags_base", "cflags": "$cflags_base",
"objects": ["Dolphin/PPCArch"], "objects": [
["Dolphin/PPCArch", True],
],
}, },
{ {
"lib": "db", "lib": "db",
@ -872,7 +739,7 @@ LIBS = [
"cflags": "$cflags_base", "cflags": "$cflags_base",
"objects": [ "objects": [
"Dolphin/dsp/dsp", "Dolphin/dsp/dsp",
"Dolphin/dsp/dsp_debug", ["Dolphin/dsp/dsp_debug", True],
"Dolphin/dsp/dsp_task", "Dolphin/dsp/dsp_task",
], ],
}, },
@ -930,11 +797,11 @@ LIBS = [
"mwcc_version": "1.2.5e", "mwcc_version": "1.2.5e",
"cflags": "$cflags_base", "cflags": "$cflags_base",
"objects": [ "objects": [
"Dolphin/os/__start", ["Dolphin/os/__start", True],
"Dolphin/os/OS", "Dolphin/os/OS",
"Dolphin/os/OSAlarm", "Dolphin/os/OSAlarm",
"Dolphin/os/OSArena", "Dolphin/os/OSArena",
"Dolphin/os/OSAudioSystem", ["Dolphin/os/OSAudioSystem", True],
"Dolphin/os/OSCache", "Dolphin/os/OSCache",
"Dolphin/os/OSContext", "Dolphin/os/OSContext",
"Dolphin/os/OSError", "Dolphin/os/OSError",
@ -951,7 +818,7 @@ LIBS = [
"Dolphin/os/OSSync", "Dolphin/os/OSSync",
"Dolphin/os/OSThread", "Dolphin/os/OSThread",
"Dolphin/os/OSTime", "Dolphin/os/OSTime",
"Dolphin/os/__ppc_eabi_init", ["Dolphin/os/__ppc_eabi_init", True],
], ],
}, },
{ {
@ -959,8 +826,8 @@ LIBS = [
"mwcc_version": "1.2.5e", "mwcc_version": "1.2.5e",
"cflags": "$cflags_base", "cflags": "$cflags_base",
"objects": [ "objects": [
"Dolphin/pad/PadClamp", ["Dolphin/pad/PadClamp", True],
"Dolphin/pad/pad", ["Dolphin/pad/pad", False],
], ],
}, },
{ {
@ -974,7 +841,7 @@ LIBS = [
"mwcc_version": "1.3.2", "mwcc_version": "1.3.2",
"cflags": "$cflags_runtime", "cflags": "$cflags_runtime",
"objects": [ "objects": [
"Runtime/__mem", ["Runtime/__mem", True],
"Runtime/__va_arg", "Runtime/__va_arg",
"Runtime/global_destructor_chain", "Runtime/global_destructor_chain",
"Runtime/CPlusLibPPC", "Runtime/CPlusLibPPC",
@ -983,60 +850,60 @@ LIBS = [
"Runtime/runtime", "Runtime/runtime",
"Runtime/__init_cpp_exceptions", "Runtime/__init_cpp_exceptions",
"Runtime/Gecko_ExceptionPPC", "Runtime/Gecko_ExceptionPPC",
"Runtime/abort_exit", ["Runtime/abort_exit", True],
"Runtime/alloc", "Runtime/alloc",
"Runtime/ansi_files", "Runtime/ansi_files",
"Runtime/ansi_fp", "Runtime/ansi_fp",
"Runtime/arith", "Runtime/arith",
"Runtime/buffer_io", "Runtime/buffer_io",
"Runtime/ctype", ["Runtime/ctype", True],
"Runtime/locale", ["Runtime/locale", True],
"Runtime/direct_io", "Runtime/direct_io",
"Runtime/file_io", "Runtime/file_io",
"Runtime/FILE_POS", "Runtime/FILE_POS",
"Runtime/mbstring", "Runtime/mbstring",
"Runtime/mem", ["Runtime/mem", True],
"Runtime/mem_funcs", ["Runtime/mem_funcs", True],
"Runtime/misc_io", ["Runtime/misc_io", True],
"Runtime/printf", "Runtime/printf",
"Runtime/qsort", "Runtime/qsort",
"Runtime/rand", ["Runtime/rand", True],
"Runtime/sscanf", "Runtime/sscanf",
"Runtime/string", "Runtime/string",
"Runtime/float", "Runtime/float",
"Runtime/strtold", "Runtime/strtold",
"Runtime/uart_console_io", "Runtime/uart_console_io",
"Runtime/wchar_io", ["Runtime/wchar_io", True],
"Runtime/e_acos", ["Runtime/e_acos", True],
"Runtime/e_asin", ["Runtime/e_asin", True],
"Runtime/e_atan2", ["Runtime/e_atan2", True],
"Runtime/e_exp", "Runtime/e_exp",
"Runtime/e_fmod", ["Runtime/e_fmod", True],
"Runtime/e_log", ["Runtime/e_log", True],
"Runtime/e_pow", "Runtime/e_pow",
"Runtime/e_rem_pio2", ["Runtime/e_rem_pio2", True],
"Runtime/k_cos", ["Runtime/k_cos", True],
"Runtime/k_rem_pio2", "Runtime/k_rem_pio2",
"Runtime/k_sin", ["Runtime/k_sin", True],
"Runtime/k_tan", ["Runtime/k_tan", True],
"Runtime/s_atan", "Runtime/s_atan",
"Runtime/s_copysign", ["Runtime/s_copysign", True],
"Runtime/s_cos", ["Runtime/s_cos", True],
"Runtime/s_floor", ["Runtime/s_floor", True],
"Runtime/s_frexp", ["Runtime/s_frexp", True],
"Runtime/s_ldexp", ["Runtime/s_ldexp", True],
"Runtime/s_modf", ["Runtime/s_modf", True],
"Runtime/s_nextafter", ["Runtime/s_nextafter", True],
"Runtime/s_sin", ["Runtime/s_sin", True],
"Runtime/s_tan", ["Runtime/s_tan", True],
"Runtime/w_acos", ["Runtime/w_acos", True],
"Runtime/w_asin", ["Runtime/w_asin", True],
"Runtime/w_atan2", ["Runtime/w_atan2", True],
"Runtime/w_exp", ["Runtime/w_exp", True],
"Runtime/w_fmod", ["Runtime/w_fmod", True],
"Runtime/w_log", ["Runtime/w_log", True],
"Runtime/w_pow", ["Runtime/w_pow", True],
"Runtime/math_ppc", ["Runtime/math_ppc", True],
], ],
}, },
{ {
@ -1046,34 +913,34 @@ LIBS = [
"objects": [ "objects": [
"musyx/seq", "musyx/seq",
"musyx/synth", "musyx/synth",
"musyx/seq_api", ["musyx/seq_api", True],
"musyx/snd_synthapi", "musyx/snd_synthapi",
"musyx/stream", "musyx/stream",
"musyx/synthdata", "musyx/synthdata",
"musyx/synthmacros", "musyx/synthmacros",
"musyx/synthvoice", "musyx/synthvoice",
"musyx/synth_ac", ["musyx/synth_ac", True],
"musyx/synth_adsr", "musyx/synth_adsr",
"musyx/synth_vsamples", "musyx/synth_vsamples",
"musyx/synth_dbtab", ["musyx/synth_dbtab", True],
"musyx/s_data", "musyx/s_data",
"musyx/hw_dspctrl", "musyx/hw_dspctrl",
"musyx/hw_volconv", "musyx/hw_volconv",
"musyx/snd3d", "musyx/snd3d",
"musyx/snd_init", ["musyx/snd_init", True],
"musyx/snd_math", "musyx/snd_math",
"musyx/snd_midictrl", "musyx/snd_midictrl",
"musyx/snd_service", ["musyx/snd_service", True],
"musyx/hardware", "musyx/hardware",
"musyx/hw_aramdma", "musyx/hw_aramdma",
"musyx/dsp_import", ["musyx/dsp_import", True],
"musyx/hw_dolphin", "musyx/hw_dolphin",
"musyx/hw_memory", ["musyx/hw_memory", True],
"musyx/creverb_fx", ["musyx/creverb_fx", True],
"musyx/creverb", "musyx/creverb",
"musyx/reverb_fx", ["musyx/reverb_fx", True],
"musyx/reverb", "musyx/reverb",
"musyx/delay_fx", ["musyx/delay_fx", True],
"musyx/chorus_fx", "musyx/chorus_fx",
], ],
}, },
@ -1081,7 +948,9 @@ LIBS = [
"lib": "dtk", "lib": "dtk",
"mwcc_version": "1.2.5", "mwcc_version": "1.2.5",
"cflags": "$cflags_base", "cflags": "$cflags_base",
"objects": ["Dolphin/dtk"], "objects": [
["Dolphin/dtk", True],
],
}, },
{ {
"lib": "card", "lib": "card",
@ -1089,21 +958,21 @@ LIBS = [
"cflags": "$cflags_base", "cflags": "$cflags_base",
"objects": [ "objects": [
"Dolphin/card/CARDBios", "Dolphin/card/CARDBios",
"Dolphin/card/CARDUnlock", ["Dolphin/card/CARDUnlock", True],
"Dolphin/card/CARDRdwr", ["Dolphin/card/CARDRdwr", True],
"Dolphin/card/CARDBlock", ["Dolphin/card/CARDBlock", True],
"Dolphin/card/CARDDir", ["Dolphin/card/CARDDir", True],
"Dolphin/card/CARDCheck", "Dolphin/card/CARDCheck",
"Dolphin/card/CARDMount", ["Dolphin/card/CARDMount", True],
"Dolphin/card/CARDFormat", ["Dolphin/card/CARDFormat", True],
"Dolphin/card/CARDOpen", ["Dolphin/card/CARDOpen", True],
"Dolphin/card/CARDCreate", ["Dolphin/card/CARDCreate", True],
"Dolphin/card/CARDRead", ["Dolphin/card/CARDRead", True],
"Dolphin/card/CARDWrite", ["Dolphin/card/CARDWrite", True],
"Dolphin/card/CARDDelete", ["Dolphin/card/CARDDelete", True],
"Dolphin/card/CARDStat", ["Dolphin/card/CARDStat", True],
"Dolphin/card/CARDRename", ["Dolphin/card/CARDRename", True],
"Dolphin/card/CARDNet", ["Dolphin/card/CARDNet", True],
], ],
}, },
{ {
@ -1258,6 +1127,7 @@ else:
description="AR $out") description="AR $out")
n.newline() n.newline()
from pprint import pprint
### ###
# Build # Build
### ###
@ -1269,6 +1139,11 @@ for lib in LIBS:
else: else:
n.comment("Loose files") n.comment("Loose files")
for object in lib["objects"]: for object in lib["objects"]:
completed = False
if type(object) is list:
completed = object[1]
object = object[0]
mwcc_version = lib["mwcc_version"] mwcc_version = lib["mwcc_version"]
c_file = None c_file = None
if os.path.exists(os.path.join("src", f"{object}.cpp")): if os.path.exists(os.path.join("src", f"{object}.cpp")):
@ -1289,7 +1164,7 @@ for lib in LIBS:
}) })
if os.path.exists(os.path.join("asm", f"{object}.s")): if os.path.exists(os.path.join("asm", f"{object}.s")):
n.build(f"$builddir/asm/{object}.o", "as", f"asm/{object}.s") n.build(f"$builddir/asm/{object}.o", "as", f"asm/{object}.s")
if object in COMPLETE_OBJECTS: if completed:
inputs.append(f"$builddir/src/{object}.o") inputs.append(f"$builddir/src/{object}.o")
else: else:
inputs.append(f"$builddir/asm/{object}.o") inputs.append(f"$builddir/asm/{object}.o")
@ -1306,7 +1181,16 @@ for lib in LIBS:
inputs.append(f"$builddir/lib/{lib_name}.a") inputs.append(f"$builddir/lib/{lib_name}.a")
else: else:
for object in lib["objects"]: for object in lib["objects"]:
if object in COMPLETE_OBJECTS: completed = False
if type(object) is list:
completed = object[1]
object = object[0]
if completed:
if not completed:
print(f"{object} is still in COMPLETE_OBJECTS")
inputs.append(f"$builddir/src/{object}.o") inputs.append(f"$builddir/src/{object}.o")
else: else:
inputs.append(f"$builddir/asm/{object}.o") inputs.append(f"$builddir/asm/{object}.o")