pikmin2/configure.py
EpochFlame 98658a7238 asm cleanup
syscommon has good and happy asm now
2023-02-01 23:20:03 -05:00

2190 lines
80 KiB
Python
Executable File

#!/usr/bin/env python3
LIBS = [
{
"lib": "JStudio_JParticle",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
"JSystem/JStudio_JParticle/object-particle",
"JSystem/JStudio_JParticle/control",
],
},
{
"lib": "JMessage",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
"JSystem/JMessage/resource",
["JSystem/JMessage/data", True],
"JSystem/JMessage/processor",
"JSystem/JMessage/control",
],
},
{
"lib": "JStudio",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
["JSystem/JStudio/stb-data-parse", True],
"JSystem/JStudio/functionvalue",
"JSystem/JStudio/fvb",
["JSystem/JStudio/fvb-data", True],
["JSystem/JStudio/fvb-data-parse", True],
"JSystem/JStudio/jstudio-control",
["JSystem/JStudio/jstudio-data", True],
"JSystem/JStudio/jstudio-object",
"JSystem/JStudio/object-id",
"JSystem/JStudio/stb",
["JSystem/JStudio/stb-data", True],
"JSystem/JStudio/jstudio-math",
],
},
{
"lib": "JStudio_JStage",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
"JSystem/JStudio_JStage/object-light",
"JSystem/JStudio_JStage/object",
"JSystem/JStudio_JStage/object-actor",
["JSystem/JStudio_JStage/object-ambientlight", True],
"JSystem/JStudio_JStage/object-camera",
["JSystem/JStudio_JStage/object-fog", True],
"JSystem/JStudio_JStage/control",
],
},
{
"lib": "JStudio_JMessage",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
["JSystem/JStudio_JMessage/object-message", True],
"JSystem/JStudio_JMessage/control",
],
},
{
"lib": "JStudio_JAudio",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
"JSystem/JStudio_JAudio/object-sound",
"JSystem/JStudio_JAudio/control",
],
},
{
"lib": "J3DU",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
["JSystem/J3DU/J3DUDL", True],
"JSystem/J3DU/J3DUMotion",
["JSystem/J3DU/J3DUShadow", True],
"JSystem/J3DU/J3DUMtxCache",
],
},
{
"lib": "JKernel",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
"JSystem/JKernel/JKRAram",
"JSystem/JKernel/JKRAramArchive",
["JSystem/JKernel/JKRAramBlock", True],
"JSystem/JKernel/JKRAramHeap",
"JSystem/JKernel/JKRAramPiece",
["JSystem/JKernel/JKRAramStream", True],
["JSystem/JKernel/JKRArchivePri", True],
["JSystem/JKernel/JKRArchivePub", True],
"JSystem/JKernel/JKRCompArchive",
["JSystem/JKernel/JKRDecomp", True],
["JSystem/JKernel/JKRDisposer", True],
["JSystem/JKernel/JKRDvdFile", True],
"JSystem/JKernel/JKRDvdAramRipper",
"JSystem/JKernel/JKRDvdArchive",
"JSystem/JKernel/JKRDvdRipper",
"JSystem/JKernel/JKRExpHeap",
"JSystem/JKernel/JKRFileCache",
"JSystem/JKernel/JKRFileFinder",
["JSystem/JKernel/JKRFile", True],
"JSystem/JKernel/JKRFileLoader",
"JSystem/JKernel/JKRHeap",
"JSystem/JKernel/JKRMemArchive",
"JSystem/JKernel/JKRSolidHeap",
"JSystem/JKernel/JKRThread",
],
},
{
"lib": "JSupport",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
["JSystem/JSupport/JSUOutputStream", True],
["JSystem/JSupport/JSUInputStream", True],
["JSystem/JSupport/JSUList", True],
["JSystem/JSupport/JSUMemoryStream", True],
["JSystem/JSupport/JSUFileStream", True],
],
},
{
"lib": "JGadget",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
"JSystem/JGadget/binary",
"JSystem/JGadget/linklist",
"JSystem/JGadget/std-list",
"JSystem/JGadget/std-vector",
],
},
{
"lib": "JUtility",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
"JSystem/JUtility/JUTAssert",
"JSystem/JUtility/JUTConsole",
"JSystem/JUtility/JUTDbPrint",
"JSystem/JUtility/JUTDirectFile",
"JSystem/JUtility/JUTDirectPrint",
"JSystem/JUtility/JUTException",
["JSystem/JUtility/JUTFader", True],
["JSystem/JUtility/JUTFont", True],
"JSystem/JUtility/JUTGamePad",
"JSystem/JUtility/JUTGraphFifo",
["JSystem/JUtility/JUTNameTab", True],
"JSystem/JUtility/JUTPalette",
["JSystem/JUtility/JUTProcBar", True],
["JSystem/JUtility/JUTResFont", True],
"JSystem/JUtility/JUTResource",
["JSystem/JUtility/JUTRomFont", True],
["JSystem/JUtility/JUTFontData_Ascfont_fix12", True],
"JSystem/JUtility/JUTTexture",
"JSystem/JUtility/JUTVideo",
"JSystem/JUtility/JUTXfb",
"JSystem/JUtility/JUTCacheFont",
],
},
{
"lib": "JMath",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
"JSystem/JMath/JMath",
["JSystem/JMath/random", True],
"JSystem/JMath/JMATrigonometric",
],
},
{
"lib": "J2D",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
["JSystem/J2D/J2DOrthoGraph", True],
["JSystem/J2D/J2DPerspGraph", True],
["JSystem/J2D/J2DGrafContext", True],
"JSystem/J2D/J2DPane",
"JSystem/J2D/J2DPicture",
"JSystem/J2D/J2DPrint",
"JSystem/J2D/J2DScreen",
"JSystem/J2D/J2DTextBox",
"JSystem/J2D/J2DWindow",
"JSystem/J2D/J2DWindowEx",
"JSystem/J2D/J2DAnmLoader",
"JSystem/J2D/J2DBloSaver",
["JSystem/J2D/J2DManage", True],
"JSystem/J2D/J2DMatBlock",
"JSystem/J2D/J2DMaterial",
"JSystem/J2D/J2DMaterialFactory",
"JSystem/J2D/J2DPictureEx",
"JSystem/J2D/J2DTevs",
"JSystem/J2D/J2DTextBoxEx",
["JSystem/J2D/J2DAnimation", True],
],
},
{
"lib": "J3D",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
["JSystem/J3D/J3DSys", True],
["JSystem/J3D/J3DVertex", True],
"JSystem/J3D/J3DTransform",
"JSystem/J3D/J3DPacket",
"JSystem/J3D/J3DShape",
"JSystem/J3D/J3DMaterial",
"JSystem/J3D/J3DTevs",
"JSystem/J3D/J3DDrawBuffer",
"JSystem/J3D/J3DModel",
"JSystem/J3D/J3DAnimation",
"JSystem/J3D/J3DMaterialAnm",
"JSystem/J3D/J3DCluster",
"JSystem/J3D/J3DJoint",
"JSystem/J3D/J3DMaterialFactory",
["JSystem/J3D/J3DBinaryFormat", True],
"JSystem/J3D/J3DModelLoader",
["JSystem/J3D/J3DJointFactory", True],
"JSystem/J3D/J3DShapeFactory",
["JSystem/J3D/J3DAnmLoader", True],
["JSystem/J3D/J3DModelSaver", True],
"JSystem/J3D/J3DGD",
"JSystem/J3D/J3DMatBlock",
"JSystem/J3D/J3DModelData",
"JSystem/J3D/J3DMaterialAttach",
"JSystem/J3D/J3DMaterialFactory_v21",
"JSystem/J3D/J3DShapeMtx",
"JSystem/J3D/J3DModelLoaderCalcSize",
"JSystem/J3D/J3DJointTree",
["JSystem/J3D/J3DSkinDeform", True],
["JSystem/J3D/J3DShapeDraw", True],
"JSystem/J3D/J3DMtxBuffer",
["JSystem/J3D/J3DShapeTable", True],
],
},
{
"lib": "JFramework",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
["JSystem/JFramework/JFWSystem", True],
["JSystem/JFramework/JFWDisplay", True],
],
},
{
"lib": "JParticle",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
"JSystem/JParticle/JPABaseShape",
"JSystem/JParticle/JPAChildShape",
"JSystem/JParticle/JPADynamicsBlock",
"JSystem/JParticle/JPAEmitter",
"JSystem/JParticle/JPAEmitterManager",
"JSystem/JParticle/JPAExTexShape",
"JSystem/JParticle/JPAExtraShape",
"JSystem/JParticle/JPAFieldBlock",
["JSystem/JParticle/JPAKeyBlock", True],
"JSystem/JParticle/JPAMath",
"JSystem/JParticle/JPAParticle",
"JSystem/JParticle/JPAResource",
"JSystem/JParticle/JPAResourceLoader",
"JSystem/JParticle/JPAResourceManager",
["JSystem/JParticle/JPATexture", True],
],
},
{
"lib": "JStage",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
["JSystem/JStage/JSGSystem", True],
["JSystem/JStage/JSGCamera", True],
["JSystem/JStage/JSGObject", True],
["JSystem/JStage/JSGActor", True],
],
},
{
"lib": "JAudio2_JAS",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
"JSystem/JAudio2/JAS/JASWSParser",
"JSystem/JAudio2/JAS/JASBankMgr",
["JSystem/JAudio2/JAS/JASBasicBank", True],
["JSystem/JAudio2/JAS/JASBasicInst", True],
"JSystem/JAudio2/JAS/JASBasicWaveBank",
"JSystem/JAudio2/JAS/JASBNKParser",
"JSystem/JAudio2/JAS/JASDrumSet",
["JSystem/JAudio2/JAS/JASInstEffect", True],
"JSystem/JAudio2/JAS/JASInstRand",
"JSystem/JAudio2/JAS/JASInstSense",
["JSystem/JAudio2/JAS/JASSimpleWaveBank", True],
["JSystem/JAudio2/JAS/JASWaveArcLoader", True],
["JSystem/JAudio2/JAS/JASWaveBank", True],
["JSystem/JAudio2/JAS/JASWaveBankMgr", True],
["JSystem/JAudio2/JAS/JASBank", True],
["JSystem/JAudio2/JAS/JASTrackPort", True],
["JSystem/JAudio2/JAS/JASOuterParam", True],
"JSystem/JAudio2/JAS/JASPlayer_impl",
"JSystem/JAudio2/JAS/JASRegisterParam",
"JSystem/JAudio2/JAS/JASSeqCtrl",
"JSystem/JAudio2/JAS/JASSeqParser",
"JSystem/JAudio2/JAS/JASTrack",
"JSystem/JAudio2/JAS/JASTrackInterrupt",
"JSystem/JAudio2/JAS/JASOscillator",
"JSystem/JAudio2/JAS/JASChannel",
"JSystem/JAudio2/JAS/JASDriverIF",
"JSystem/JAudio2/JAS/JASDSPChannel",
"JSystem/JAudio2/JAS/JASDSPInterface",
"JSystem/JAudio2/JAS/JASAudioThread",
"JSystem/JAudio2/JAS/JASCalc",
["JSystem/JAudio2/JAS/JASCallback", True],
"JSystem/JAudio2/JAS/JASCmdStack",
["JSystem/JAudio2/JAS/JASDvdThread", True],
"JSystem/JAudio2/JAS/JASHeapCtrl",
["JSystem/JAudio2/JAS/JASProbe", True],
"JSystem/JAudio2/JAS/JASResArcLoader",
"JSystem/JAudio2/JAS/JASReport",
"JSystem/JAudio2/JAS/JASAiCtrl",
["JSystem/JAudio2/JAS/JASChannelUpdater", True],
"JSystem/JAudio2/JAS/JASTaskThread",
"JSystem/JAudio2/JAS/JASAramStream",
],
},
{
"lib": "JAudio2_DSP",
"cflags": "$cflags_pikmin -func_align 32 -inline noauto -common off -use_lmw_stmw off",
"mw_version": "2.6",
"host": True,
"objects": [
"JSystem/JAudio2/dsp/dspproc",
"JSystem/JAudio2/dsp/dsptask",
["JSystem/JAudio2/dsp/osdsp", True],
"JSystem/JAudio2/dsp/osdsp_task",
],
},
{
"lib": "JAudio2_JAI",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
"JSystem/JAudio2/JAI/JAIAnimation",
"JSystem/JAudio2/JAI/JAIBankWave",
"JSystem/JAudio2/JAI/JAIBasic",
["JSystem/JAudio2/JAI/JAIConst", True],
"JSystem/JAudio2/JAI/JAIDummyObject",
"JSystem/JAudio2/JAI/JAIFx",
["JSystem/JAudio2/JAI/JAIGlobalParameter", True],
"JSystem/JAudio2/JAI/JAIInitData",
"JSystem/JAudio2/JAI/JAISeMgr",
"JSystem/JAudio2/JAI/JAISequenceHeap",
"JSystem/JAudio2/JAI/JAISequenceMgr",
"JSystem/JAudio2/JAI/JAISound",
"JSystem/JAudio2/JAI/JAISoundTable",
"JSystem/JAudio2/JAI/JAIStreamMgr",
"JSystem/JAudio2/JAI/JAISystemInterface",
"JSystem/JAudio2/JAI/JAIObject",
],
},
{
"lib": "JAudio2_JAD",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
["JSystem/JAudio2/JAD/JADHioNode", True],
],
},
{
"lib": "JAudio2_JAL",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
"JSystem/JAudio2/JAL/JALCalc",
],
},
{
"lib": "JAudio2_JAU",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
"JSystem/JAudio2/JAU/JAUData",
"JSystem/JAudio2/JAU/JAUDataMgr",
],
},
{
"lib": "TRK_MINNOW_DOLPHIN",
"mw_version": "2.6",
"cflags": "$cflags_base",
"host": False,
"objects": [
[
"Dolphin/TRK_MINNOW_DOLPHIN/mainloop",
True,
{"cflags": "$cflags_base -sdata 0"},
],
["Dolphin/TRK_MINNOW_DOLPHIN/nubevent", True],
[
"Dolphin/TRK_MINNOW_DOLPHIN/nubinit",
True,
{"cflags": "$cflags_base -sdata 0"},
],
["Dolphin/TRK_MINNOW_DOLPHIN/msg", True],
"Dolphin/TRK_MINNOW_DOLPHIN/msgbuf",
"Dolphin/TRK_MINNOW_DOLPHIN/serpoll",
["Dolphin/TRK_MINNOW_DOLPHIN/usr_put", True],
["Dolphin/TRK_MINNOW_DOLPHIN/dispatch", True],
"Dolphin/TRK_MINNOW_DOLPHIN/msghndlr",
"Dolphin/TRK_MINNOW_DOLPHIN/support",
["Dolphin/TRK_MINNOW_DOLPHIN/mutex_TRK", True],
["Dolphin/TRK_MINNOW_DOLPHIN/notify", True],
["Dolphin/TRK_MINNOW_DOLPHIN/flush_cache", True],
["Dolphin/TRK_MINNOW_DOLPHIN/mem_TRK", True],
"Dolphin/TRK_MINNOW_DOLPHIN/targimpl",
["Dolphin/TRK_MINNOW_DOLPHIN/targsupp", True],
"Dolphin/TRK_MINNOW_DOLPHIN/mpc_7xx_603e",
"Dolphin/TRK_MINNOW_DOLPHIN/__exception",
"Dolphin/TRK_MINNOW_DOLPHIN/dolphin_trk",
[
"Dolphin/TRK_MINNOW_DOLPHIN/main_TRK",
True,
{"cflags": "$cflags_base -sdata 0"},
],
"Dolphin/TRK_MINNOW_DOLPHIN/dolphin_trk_glue",
["Dolphin/TRK_MINNOW_DOLPHIN/targcont", True],
[
"Dolphin/TRK_MINNOW_DOLPHIN/target_options",
True,
{"cflags": "$cflags_base -sdata 0"},
],
"Dolphin/TRK_MINNOW_DOLPHIN/mslsupp",
["Dolphin/TRK_MINNOW_DOLPHIN/UDP_Stubs", True],
["Dolphin/TRK_MINNOW_DOLPHIN/ddh/main", True],
"Dolphin/TRK_MINNOW_DOLPHIN/CircleBuffer",
["Dolphin/TRK_MINNOW_DOLPHIN/gdev/main", True],
["Dolphin/TRK_MINNOW_DOLPHIN/MWTrace", True],
["Dolphin/TRK_MINNOW_DOLPHIN/MWCriticalSection_gc", True],
],
},
{
"lib": "Runtime",
"mw_version": "2.6",
"cflags": "$cflags_base",
"host": False,
"objects": [
["Dolphin/Runtime/__va_arg", True],
"Dolphin/Runtime/global_destructor_chain",
["Dolphin/Runtime/CPlusLibPPC", True],
"Dolphin/Runtime/NMWException",
["Dolphin/Runtime/ptmf", True],
"Dolphin/Runtime/runtime",
"Dolphin/Runtime/__init_cpp_exceptions",
"Dolphin/Runtime/Gecko_ExceptionPPC",
["Dolphin/Runtime/GCN_mem_alloc", True],
],
},
{
"lib": "MSL_C",
"mw_version": "2.6",
"cflags": "$cflags_base",
"host": False,
"objects": [
["Dolphin/MSL_C/abort_exit", True],
"Dolphin/MSL_C/alloc",
["Dolphin/MSL_C/ansi_files", True],
"Dolphin/MSL_C/ansi_fp",
["Dolphin/MSL_C/arith", True],
["Dolphin/MSL_C/buffer_io", True],
["Dolphin/MSL_C/critical_regions.gamecube", True],
["Dolphin/MSL_C/ctype", True],
"Dolphin/MSL_C/direct_io",
["Dolphin/MSL_C/errno", True],
["Dolphin/MSL_C/file_io", True],
["Dolphin/MSL_C/FILE_POS", True],
[
"Dolphin/MSL_C/locale",
True,
{"cflags": "$cflags_base -str pool"},
],
[
"Dolphin/MSL_C/mbstring",
True,
{"cflags": "$cflags_base -inline noauto,deferred"},
],
["Dolphin/MSL_C/mem", True],
"Dolphin/MSL_C/mem_funcs",
["Dolphin/MSL_C/misc_io", True],
"Dolphin/MSL_C/printf",
["Dolphin/MSL_C/rand", True],
["Dolphin/MSL_C/float", True],
"Dolphin/MSL_C/scanf",
["Dolphin/MSL_C/string", True],
"Dolphin/MSL_C/strtold",
"Dolphin/MSL_C/strtoul",
["Dolphin/MSL_C/wchar_io", True],
["Dolphin/MSL_C/uart_console_io_gcn", True],
["Dolphin/MSL_C/e_asin", True],
["Dolphin/MSL_C/e_atan2", True],
["Dolphin/MSL_C/e_exp", True],
["Dolphin/MSL_C/e_fmod", True],
["Dolphin/MSL_C/e_log", True],
["Dolphin/MSL_C/e_log10", True],
["Dolphin/MSL_C/e_pow", True],
["Dolphin/MSL_C/e_rem_pio2", True],
["Dolphin/MSL_C/k_cos", True],
["Dolphin/MSL_C/k_rem_pio2", True],
["Dolphin/MSL_C/k_sin", True],
["Dolphin/MSL_C/k_tan", True],
["Dolphin/MSL_C/s_atan", True],
["Dolphin/MSL_C/s_ceil", True],
["Dolphin/MSL_C/s_copysign", True],
["Dolphin/MSL_C/s_cos", True],
["Dolphin/MSL_C/s_floor", True],
["Dolphin/MSL_C/s_frexp", True],
["Dolphin/MSL_C/s_ldexp", True],
["Dolphin/MSL_C/s_modf", True],
["Dolphin/MSL_C/s_sin", True],
["Dolphin/MSL_C/s_tan", True],
["Dolphin/MSL_C/w_asin", True],
["Dolphin/MSL_C/w_atan2", True],
["Dolphin/MSL_C/w_exp", True],
["Dolphin/MSL_C/w_fmod", True],
["Dolphin/MSL_C/w_log10", True],
["Dolphin/MSL_C/w_pow", True],
["Dolphin/MSL_C/e_sqrt", True],
["Dolphin/MSL_C/math_ppc", True],
["Dolphin/MSL_C/w_sqrt", True],
["Dolphin/MSL_C/extras", True],
],
},
{
"lib": "OdemuExi2",
"mw_version": "1.2.5e",
"cflags": "$cflags_base",
"host": False,
"objects": [
"Dolphin/OdemuExi2/DebuggerDriver",
],
},
{
"lib": "vi",
"mw_version": "1.2.5e",
"cflags": "$cflags_base",
"host": False,
"objects": [
"Dolphin/vi/vi",
],
},
{
"lib": "amcstubs",
"mw_version": "1.2.5e",
"cflags": "$cflags_base",
"host": False,
"objects": [
["Dolphin/amcstubs/AmcExi2Stubs", True],
],
},
{
"lib": "ar",
"mw_version": "1.2.5e",
"cflags": "$cflags_base",
"host": False,
"objects": [
"Dolphin/ar/ar",
"Dolphin/ar/arq",
],
},
{
"lib": "base",
"mw_version": "1.2.5e",
"cflags": "$cflags_base",
"host": False,
"objects": [
["Dolphin/base/PPCArch", True],
],
},
{
"lib": "card",
"mw_version": "1.2.5e",
"cflags": "$cflags_base",
"host": False,
"objects": [
"Dolphin/card/CARDBios",
"Dolphin/card/CARDUnlock",
"Dolphin/card/CARDRdwr",
"Dolphin/card/CARDBlock",
"Dolphin/card/CARDDir",
"Dolphin/card/CARDCheck",
"Dolphin/card/CARDMount",
"Dolphin/card/CARDFormat",
"Dolphin/card/CARDOpen",
"Dolphin/card/CARDCreate",
"Dolphin/card/CARDRead",
"Dolphin/card/CARDWrite",
"Dolphin/card/CARDStat",
"Dolphin/card/CARDNet",
],
},
{
"lib": "db",
"mw_version": "1.2.5e",
"cflags": "$cflags_base -str noreadonly",
"host": False,
"objects": [
["Dolphin/db/db", True],
],
},
{
"lib": "dsp",
"mw_version": "1.2.5e",
"cflags": "$cflags_base",
"host": False,
"objects": [
"Dolphin/dsp/dsp",
["Dolphin/dsp/dsp_debug", True],
"Dolphin/dsp/dsp_task",
],
},
{
"lib": "dvd",
"mw_version": "1.2.5e",
"cflags": "$cflags_base -str noreadonly",
"host": False,
"objects": [
"Dolphin/dvd/dvdlow",
"Dolphin/dvd/dvdfs",
"Dolphin/dvd/dvd",
["Dolphin/dvd/dvdqueue", True],
["Dolphin/dvd/dvderror", True],
["Dolphin/dvd/dvdidutils", True],
["Dolphin/dvd/dvdFatal", True],
["Dolphin/dvd/fstload", True],
],
},
{
"lib": "exi",
"mw_version": "1.2.5e",
"cflags": "$cflags_base",
"host": False,
"objects": [
"Dolphin/exi/EXIBios",
"Dolphin/exi/EXIUart",
],
},
{
"lib": "gd",
"mw_version": "1.2.5e",
"cflags": "$cflags_base",
"host": False,
"objects": [
["Dolphin/gd/GDBase", True],
"Dolphin/gd/GDGeometry",
],
},
{
"lib": "gx",
"mw_version": "1.2.5e",
"cflags": "$cflags_base",
"host": False,
"objects": [
"Dolphin/gx/GXInit",
"Dolphin/gx/GXFifo",
"Dolphin/gx/GXAttr",
"Dolphin/gx/GXMisc",
"Dolphin/gx/GXGeometry",
"Dolphin/gx/GXFrameBuf",
"Dolphin/gx/GXLight",
"Dolphin/gx/GXTexture",
["Dolphin/gx/GXBump", True],
"Dolphin/gx/GXTev",
"Dolphin/gx/GXPixel",
"Dolphin/gx/GXDisplayList",
"Dolphin/gx/GXTransform",
"Dolphin/gx/GXPerf",
],
},
{
"lib": "mtx",
"mw_version": "1.2.5e",
"cflags": "$cflags_base",
"host": False,
"objects": [
"Dolphin/mtx/mtx",
"Dolphin/mtx/mtxvec",
"Dolphin/mtx/mtx44",
["Dolphin/mtx/vec", True],
],
},
{
"lib": "odenotstub",
"mw_version": "1.2.5e",
"cflags": "$cflags_base",
"host": False,
"objects": [
["Dolphin/odenotstub/odenotstub", True],
],
},
{
"lib": "os",
"mw_version": "1.2.5e",
"cflags": "$cflags_base -str noreadonly",
"host": False,
"objects": [
["Dolphin/os/OS", True],
"Dolphin/os/OSAlarm",
["Dolphin/os/OSAlloc", True],
["Dolphin/os/OSArena", True],
["Dolphin/os/OSAudioSystem", True],
["Dolphin/os/OSCache", True],
"Dolphin/os/OSContext",
"Dolphin/os/OSError",
"Dolphin/os/OSFont",
"Dolphin/os/OSInterrupt",
["Dolphin/os/OSLink", True],
["Dolphin/os/OSMessage", True],
"Dolphin/os/OSMemory",
"Dolphin/os/OSMutex",
"Dolphin/os/OSReboot",
"Dolphin/os/OSReset",
"Dolphin/os/OSResetSW",
"Dolphin/os/OSRtc",
["Dolphin/os/OSSync", True],
"Dolphin/os/OSThread",
"Dolphin/os/OSTime",
"Dolphin/os/__mem",
["Dolphin/os/__start", True],
["Dolphin/os/__ppc_eabi_init", True],
],
},
{
"lib": "pad",
"mw_version": "1.2.5e",
"cflags": "$cflags_base",
"host": False,
"objects": [
"Dolphin/pad/Padclamp",
"Dolphin/pad/Pad",
],
},
{
"lib": "si",
"mw_version": "1.2.5e",
"cflags": "$cflags_base -str noreadonly",
"host": False,
"objects": [
"Dolphin/si/SIBios",
["Dolphin/si/SISamplingRate", True],
],
},
{
"lib": "ai",
"mw_version": "1.2.5e",
"cflags": "$cflags_base",
"host": False,
"objects": [
"Dolphin/ai/ai",
],
},
{
"lib": "thp",
"mw_version": "1.2.5e",
"cflags": "$cflags_base",
"host": False,
"objects": [
"Dolphin/thp/THPDec",
"Dolphin/thp/THPAudio",
],
},
{
"lib": "gba",
"mw_version": "1.2.5e",
"cflags": "$cflags_base -str noreadonly",
"host": False,
"objects": [
["Dolphin/gba/GBA", True],
["Dolphin/gba/GBARead", True],
["Dolphin/gba/GBAWrite", True],
"Dolphin/gba/GBAXfer",
],
},
{
"lib": "plugProjectYamashitaU",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
["plugProjectYamashitaU/enemyBase", True],
["plugProjectYamashitaU/pelplant", True],
["plugProjectYamashitaU/pelplantState", True],
["plugProjectYamashitaU/enemyInteractBattle", True],
"plugProjectYamashitaU/generalEnemyMgr",
["plugProjectYamashitaU/kochappyAnimator", True],
["plugProjectYamashitaU/kochappy", True],
"plugProjectYamashitaU/kochappyState",
["plugProjectYamashitaU/kochappyMgr", True],
"plugProjectYamashitaU/enemyAction",
["plugProjectYamashitaU/chappy", True],
"plugProjectYamashitaU/chappyState",
["plugProjectYamashitaU/chappyAnimator", True],
["plugProjectYamashitaU/chappyMgr", True],
"plugProjectYamashitaU/lifeGaugeMgr",
"plugProjectYamashitaU/carryInfoMgr",
"plugProjectYamashitaU/gameLightMgr",
"plugProjectYamashitaU/vtxAnm",
["plugProjectYamashitaU/enemyInfo", True],
["plugProjectYamashitaU/farm", True],
["plugProjectYamashitaU/farmMgr", True],
"plugProjectYamashitaU/genEnemy",
["plugProjectYamashitaU/timeMgr", True],
["plugProjectYamashitaU/pelplantGenerator", True],
["plugProjectYamashitaU/enemyInteractActions", True],
["plugProjectYamashitaU/enemyAnimatorBase", True],
["plugProjectYamashitaU/enemyStoneMgr", True],
["plugProjectYamashitaU/enemyStoenInfo", True],
"plugProjectYamashitaU/enemyStoneDrawInfo",
["plugProjectYamashitaU/enemyStoneObj", True],
["plugProjectYamashitaU/enemyParmsBase", True],
["plugProjectYamashitaU/walkSmokeEffect", True],
["plugProjectYamashitaU/ChappyBaseMgr", True],
["plugProjectYamashitaU/ChappyBase", True],
["plugProjectYamashitaU/BlueChappyMgr", True],
["plugProjectYamashitaU/BlueChappy", True],
["plugProjectYamashitaU/YellowChappyMgr", True],
["plugProjectYamashitaU/YellowChappy", True],
["plugProjectYamashitaU/BlueKochappyMgr", True],
["plugProjectYamashitaU/BlueKochappy", True],
["plugProjectYamashitaU/YellowKochappy", True],
["plugProjectYamashitaU/YellowKochappyMgr", True],
["plugProjectYamashitaU/KochappyBaseMgr", True],
["plugProjectYamashitaU/KochappyBase", True],
["plugProjectYamashitaU/enemyBlendAnimatorBase", True],
["plugProjectYamashitaU/enemyPelletInfo", True],
["plugProjectYamashitaU/enemyEffectNode", True],
["plugProjectYamashitaU/enemyMgrBase", True],
["plugProjectYamashitaU/enemyFSM", True],
"plugProjectYamashitaU/singleGS_ZukanParms",
["plugProjectYamashitaU/treasureLightMgr", True],
["plugProjectYamashitaU/effectAnimator", True],
],
},
{
"lib": "plugProjectKandoU",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
["plugProjectKandoU/pikiAnimator", True],
"plugProjectKandoU/collinfo",
"plugProjectKandoU/gameDynamics",
["plugProjectKandoU/creature", True],
"plugProjectKandoU/fakePiki",
"plugProjectKandoU/navi",
"plugProjectKandoU/piki",
"plugProjectKandoU/baseGameSection",
"plugProjectKandoU/singleGameSection",
"plugProjectKandoU/cellPyramid",
"plugProjectKandoU/naviMgr",
"plugProjectKandoU/pikiMgr",
"plugProjectKandoU/mapMgr",
"plugProjectKandoU/baseHIOSection",
"plugProjectKandoU/naviWhistle",
"plugProjectKandoU/pelletMgr",
"plugProjectKandoU/routeMgr",
["plugProjectKandoU/onyonMgr", True],
["plugProjectKandoU/objectTypes", True],
"plugProjectKandoU/naviState",
"plugProjectKandoU/pikiState",
"plugProjectKandoU/interactPiki",
"plugProjectKandoU/gameCPlate",
["plugProjectKandoU/updateMgr", True],
"plugProjectKandoU/aiAction",
"plugProjectKandoU/aiPrimitives",
"plugProjectKandoU/aiFormation",
"plugProjectKandoU/creatureStick",
["plugProjectKandoU/interactBattle", True],
["plugProjectKandoU/aiFree", True],
"plugProjectKandoU/aiAttack",
"plugProjectKandoU/aiTransport",
"plugProjectKandoU/aiEnter",
"plugProjectKandoU/pathfinder",
"plugProjectKandoU/pelletState",
"plugProjectKandoU/dynCreature",
"plugProjectKandoU/gameGenerator",
["plugProjectKandoU/genPiki", True],
["plugProjectKandoU/genNavi", True],
["plugProjectKandoU/genItem", True],
["plugProjectKandoU/gameStages", True],
"plugProjectKandoU/gameSeaMgr",
"plugProjectKandoU/pikiAI",
["plugProjectKandoU/pelletConfig", True],
["plugProjectKandoU/gameFootmark", True],
"plugProjectKandoU/gameSystem",
["plugProjectKandoU/aiConstants", True],
"plugProjectKandoU/gameMapParts",
["plugProjectKandoU/vsGameSection", True],
"plugProjectKandoU/gamePlatMgr",
"plugProjectKandoU/itemGate",
"plugProjectKandoU/itemMgr",
"plugProjectKandoU/aiBreakGate",
["plugProjectKandoU/gameStat", True],
"plugProjectKandoU/itemHole",
"plugProjectKandoU/itemHoney",
"plugProjectKandoU/gameCaveInfo",
"plugProjectKandoU/creatureLOD",
["plugProjectKandoU/interactNavi", True],
"plugProjectKandoU/itemPikihead",
"plugProjectKandoU/itemPlant",
"plugProjectKandoU/itemRock",
["plugProjectKandoU/aiBreakRock", True],
"plugProjectKandoU/aiCrop",
["plugProjectKandoU/registItem", True],
"plugProjectKandoU/gamePlayData",
"plugProjectKandoU/itemCave",
"plugProjectKandoU/itemBigFountain",
"plugProjectKandoU/itemBridge",
["plugProjectKandoU/pikiContainer", True],
"plugProjectKandoU/gameGeneratorCache",
"plugProjectKandoU/itemTreasure",
"plugProjectKandoU/itemDownFloor",
["plugProjectKandoU/kandoLib", True],
"plugProjectKandoU/itemBarrel",
"plugProjectKandoU/pelletNumber",
"plugProjectKandoU/pelletCarcass",
"plugProjectKandoU/pelletFruit",
"plugProjectKandoU/pelletOtakara",
["plugProjectKandoU/genPellet", True],
"plugProjectKandoU/pelletItem",
"plugProjectKandoU/mapMgrTraceMove",
["plugProjectKandoU/efxModelObjects", True],
"plugProjectKandoU/itemUjamushi",
"plugProjectKandoU/aiWeed",
"plugProjectKandoU/flockMgr",
"plugProjectKandoU/itemWeed",
["plugProjectKandoU/aiBridge", True],
"plugProjectKandoU/aiTeki",
"plugProjectKandoU/singleGS_MainGame",
"plugProjectKandoU/singleGS_CaveGame",
"plugProjectKandoU/singleGS_MainResult",
"plugProjectKandoU/singleGS_CaveResult",
["plugProjectKandoU/singleGS_WorldMap", True],
"plugProjectKandoU/singleGS_FileSelect",
"plugProjectKandoU/gamePlayDataMemCard",
["plugProjectKandoU/baseHIOparms", True],
["plugProjectKandoU/radarInfo", True],
["plugProjectKandoU/singleGS_Movie", True],
"plugProjectKandoU/navi_demoCheck",
"plugProjectKandoU/singleGS_Zukan",
"plugProjectKandoU/gameResultTexMgr",
"plugProjectKandoU/gamePelletList",
["plugProjectKandoU/vsGS_Title", True],
["plugProjectKandoU/vsGS_Game", True],
["plugProjectKandoU/vsGS_Result", True],
["plugProjectKandoU/vsGS_Load", True],
["plugProjectKandoU/vsStageData", True],
["plugProjectKandoU/cellMgrParms", True],
"plugProjectKandoU/cellIterator",
["plugProjectKandoU/vsGS_VSGame", True],
["plugProjectKandoU/gameSoundEvent", True],
"plugProjectKandoU/aiBattle",
"plugProjectKandoU/gameDeathCount",
"plugProjectKandoU/aiBore",
["plugProjectKandoU/mapPartsView", True],
"plugProjectKandoU/singleGS_Ending",
["plugProjectKandoU/gameIconTexture", True],
"plugProjectKandoU/gameTekiStat",
["plugProjectKandoU/gameHighscore", True],
"plugProjectKandoU/gamePlayCommonData",
["plugProjectKandoU/pelletCarry", True],
["plugProjectKandoU/gameChallenge2D", True],
["plugProjectKandoU/vsTekiMgr", True],
"plugProjectKandoU/vsCardMgr",
"plugProjectKandoU/aiRescue",
["plugProjectKandoU/baseGameSectionDraw", True],
["plugProjectKandoU/singleGS_Load", True],
"plugProjectKandoU/singleGS_DayEnd",
"plugProjectKandoU/baseGameSectionKantei",
["plugProjectKandoU/sweepPrune", True],
"plugProjectKandoU/texCaster",
["plugProjectKandoU/vsCoinOtakaraName", True],
["plugProjectKandoU/pelletBirthBuffer", True],
["plugProjectKandoU/vsFifo", True],
],
},
{
"lib": "plugProjectNishimuraU",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
"plugProjectNishimuraU/nslibmath",
"plugProjectNishimuraU/ShadowCylinder",
"plugProjectNishimuraU/playCamera",
"plugProjectNishimuraU/shadowMgr",
["plugProjectNishimuraU/MapUnit", True],
"plugProjectNishimuraU/MapNode",
["plugProjectNishimuraU/EnemyUnit", True],
"plugProjectNishimuraU/RandMapMgr",
["plugProjectNishimuraU/RandMapDraw", True],
["plugProjectNishimuraU/RandMapChecker", True],
"plugProjectNishimuraU/RandMapUnit",
"plugProjectNishimuraU/RandEnemyUnit",
["plugProjectNishimuraU/DoorNode", True],
["plugProjectNishimuraU/MapUnitGenerator", True],
["plugProjectNishimuraU/MapCreator", True],
"plugProjectNishimuraU/RandMapScore",
["plugProjectNishimuraU/ItemUnit", True],
"plugProjectNishimuraU/RandItemUnit",
["plugProjectNishimuraU/GateUnit", True],
["plugProjectNishimuraU/RandGateUnit", True],
["plugProjectNishimuraU/ObjectLayout", True],
"plugProjectNishimuraU/CameraMgr",
"plugProjectNishimuraU/ContRumble",
"plugProjectNishimuraU/RumbleMgr",
["plugProjectNishimuraU/PomAnimator", True],
["plugProjectNishimuraU/PomMgr", True],
["plugProjectNishimuraU/Pom", True],
["plugProjectNishimuraU/PomState", True],
"plugProjectNishimuraU/FrogState",
["plugProjectNishimuraU/FrogAnimator", True],
["plugProjectNishimuraU/FrogMgr", True],
"plugProjectNishimuraU/Frog",
["plugProjectNishimuraU/UjibMgr", True],
"plugProjectNishimuraU/Ujib",
"plugProjectNishimuraU/UjibState",
["plugProjectNishimuraU/UjibAnimator", True],
["plugProjectNishimuraU/KoganeState", True],
["plugProjectNishimuraU/KoganeMgr", True],
"plugProjectNishimuraU/Kogane",
["plugProjectNishimuraU/KoganeAnimator", True],
["plugProjectNishimuraU/QurioneState", True],
["plugProjectNishimuraU/QurioneMgr", True],
"plugProjectNishimuraU/Qurione",
["plugProjectNishimuraU/QurioneAnimator", True],
["plugProjectNishimuraU/RumbleData", True],
["plugProjectNishimuraU/MaroFrogMgr", True],
"plugProjectNishimuraU/MaroFrog",
["plugProjectNishimuraU/RockState", True],
["plugProjectNishimuraU/RockAnimator", True],
["plugProjectNishimuraU/RockMgr", True],
"plugProjectNishimuraU/Rock",
"plugProjectNishimuraU/UjiaState",
["plugProjectNishimuraU/UjiaAnimator", True],
["plugProjectNishimuraU/UjiaMgr", True],
"plugProjectNishimuraU/Ujia",
"plugProjectNishimuraU/TobiState",
["plugProjectNishimuraU/TobiAnimator", True],
["plugProjectNishimuraU/TobiMgr", True],
"plugProjectNishimuraU/Tobi",
["plugProjectNishimuraU/HibaState", True],
["plugProjectNishimuraU/HibaAnimator", True],
["plugProjectNishimuraU/HibaMgr", True],
["plugProjectNishimuraU/Hiba", True],
["plugProjectNishimuraU/GasHibaState", True],
["plugProjectNishimuraU/GasHibaAnimator", True],
["plugProjectNishimuraU/GasHibaMgr", True],
["plugProjectNishimuraU/GasHiba", True],
["plugProjectNishimuraU/ElecHibaState", True],
["plugProjectNishimuraU/ElecHibaAnimator", True],
["plugProjectNishimuraU/ElecHibaMgr", True],
"plugProjectNishimuraU/ElecHiba",
"plugProjectNishimuraU/SaraiState",
["plugProjectNishimuraU/SaraiAnimator", True],
["plugProjectNishimuraU/SaraiMgr", True],
"plugProjectNishimuraU/Sarai",
"plugProjectNishimuraU/TankState",
["plugProjectNishimuraU/TankAnimator", True],
["plugProjectNishimuraU/TankMgr", True],
"plugProjectNishimuraU/Tank",
["plugProjectNishimuraU/CatfishMgr", True],
["plugProjectNishimuraU/Catfish", True],
"plugProjectNishimuraU/TadpoleState",
["plugProjectNishimuraU/TadpoleAnimator", True],
["plugProjectNishimuraU/TadpoleMgr", True],
"plugProjectNishimuraU/Tadpole",
"plugProjectNishimuraU/ElecBugState",
["plugProjectNishimuraU/ElecBugAnimator", True],
["plugProjectNishimuraU/ElecBugMgr", True],
"plugProjectNishimuraU/ElecBug",
["plugProjectNishimuraU/WtankMgr", True],
["plugProjectNishimuraU/Wtank", True],
["plugProjectNishimuraU/ArmorMgr", True],
"plugProjectNishimuraU/Armor",
"plugProjectNishimuraU/Mar",
["plugProjectNishimuraU/MarAnimator", True],
["plugProjectNishimuraU/MarMgr", True],
"plugProjectNishimuraU/MarState",
["plugProjectNishimuraU/WealthyMgr", True],
["plugProjectNishimuraU/Wealthy", True],
["plugProjectNishimuraU/FartMgr", True],
["plugProjectNishimuraU/Fart", True],
"plugProjectNishimuraU/ArmorState",
["plugProjectNishimuraU/ArmorAnimator", True],
"plugProjectNishimuraU/QueenState",
["plugProjectNishimuraU/QueenAnimator", True],
["plugProjectNishimuraU/QueenMgr", True],
"plugProjectNishimuraU/Queen",
"plugProjectNishimuraU/BabyState",
["plugProjectNishimuraU/BabyAnimator", True],
["plugProjectNishimuraU/BabyMgr", True],
["plugProjectNishimuraU/Baby", True],
["plugProjectNishimuraU/DemonMgr", True],
"plugProjectNishimuraU/Demon",
["plugProjectNishimuraU/QueenShadow", True],
["plugProjectNishimuraU/FireChappyMgr", True],
["plugProjectNishimuraU/FireChappy", True],
"plugProjectNishimuraU/SnakeCrowState",
["plugProjectNishimuraU/SnakeCrowAnimator", True],
["plugProjectNishimuraU/SnakeCrowMgr", True],
"plugProjectNishimuraU/SnakeCrow",
"plugProjectNishimuraU/KumaChappyState",
["plugProjectNishimuraU/KumaChappyAnimator", True],
["plugProjectNishimuraU/KumaChappyMgr", True],
"plugProjectNishimuraU/KumaChappy",
"plugProjectNishimuraU/FuefukiState",
["plugProjectNishimuraU/FuefukiAnimator", True],
["plugProjectNishimuraU/FuefukiMgr", True],
["plugProjectNishimuraU/Fuefuki", True],
["plugProjectNishimuraU/KoganemushiMgr", True],
["plugProjectNishimuraU/Koganemushi", True],
["plugProjectNishimuraU/FtankMgr", True],
["plugProjectNishimuraU/Ftank", True],
["plugProjectNishimuraU/RandPlantUnit", True],
"plugProjectNishimuraU/HanachirashiState",
["plugProjectNishimuraU/HanachirashiAnimator", True],
["plugProjectNishimuraU/HanachirashiMgr", True],
"plugProjectNishimuraU/Hanachirashi",
["plugProjectNishimuraU/DamagumoState", True],
["plugProjectNishimuraU/DamagumoAnimator", True],
["plugProjectNishimuraU/DamagumoMgr", True],
["plugProjectNishimuraU/Damagumo", True],
"plugProjectNishimuraU/IKSystemMgr",
"plugProjectNishimuraU/IKSystemBase",
["plugProjectNishimuraU/DamagumoShadow", True],
["plugProjectNishimuraU/KurageState", True],
["plugProjectNishimuraU/KurageAnimator", True],
["plugProjectNishimuraU/KurageMgr", True],
"plugProjectNishimuraU/Kurage",
"plugProjectNishimuraU/BombSaraiState",
["plugProjectNishimuraU/BombSaraiAnimator", True],
["plugProjectNishimuraU/BombSaraiMgr", True],
"plugProjectNishimuraU/BombSarai",
["plugProjectNishimuraU/OtakaraBaseState", True],
["plugProjectNishimuraU/OtakaraBaseAnimator", True],
["plugProjectNishimuraU/OtakaraBaseMgr", True],
"plugProjectNishimuraU/OtakaraBase",
["plugProjectNishimuraU/FireOtakaraMgr", True],
["plugProjectNishimuraU/FireOtakara", True],
["plugProjectNishimuraU/WaterOtakaraMgr", True],
["plugProjectNishimuraU/WaterOtakara", True],
["plugProjectNishimuraU/GasOtakaraMgr", True],
["plugProjectNishimuraU/GasOtakara", True],
["plugProjectNishimuraU/ElecOtakaraMgr", True],
["plugProjectNishimuraU/ElecOtakara", True],
"plugProjectNishimuraU/ImomushiState",
["plugProjectNishimuraU/ImomushiAnimator", True],
["plugProjectNishimuraU/ImomushiMgr", True],
"plugProjectNishimuraU/Imomushi",
["plugProjectNishimuraU/HoudaiState", True],
["plugProjectNishimuraU/HoudaiAnimator", True],
["plugProjectNishimuraU/HoudaiMgr", True],
["plugProjectNishimuraU/HoudaiShadow", True],
["plugProjectNishimuraU/Houdai", True],
"plugProjectNishimuraU/HoudaiShotGun",
["plugProjectNishimuraU/LeafChappyMgr", True],
["plugProjectNishimuraU/LeafChappy", True],
["plugProjectNishimuraU/BigFootState", True],
["plugProjectNishimuraU/BigFootAnimator", True],
["plugProjectNishimuraU/BigFootMgr", True],
["plugProjectNishimuraU/BigFootShadow", True],
["plugProjectNishimuraU/BigFoot", True],
"plugProjectNishimuraU/SnakeWholeState",
["plugProjectNishimuraU/SnakeWholeAnimator", True],
["plugProjectNishimuraU/SnakeWholeMgr", True],
"plugProjectNishimuraU/SnakeWhole",
"plugProjectNishimuraU/SnakeJointMgr",
["plugProjectNishimuraU/OniKurageState", True],
["plugProjectNishimuraU/OniKurageAnimator", True],
["plugProjectNishimuraU/OniKurageMgr", True],
"plugProjectNishimuraU/OniKurage",
["plugProjectNishimuraU/BigTreasureState", True],
["plugProjectNishimuraU/BigTreasureMgr", True],
"plugProjectNishimuraU/BigTreasureShadow",
["plugProjectNishimuraU/BigTreasure", True],
"plugProjectNishimuraU/KabutoState",
["plugProjectNishimuraU/KabutoAnimator", True],
["plugProjectNishimuraU/KabutoMgr", True],
"plugProjectNishimuraU/Kabuto",
"plugProjectNishimuraU/KumaKochappyState",
["plugProjectNishimuraU/KumaKochappyAnimator", True],
["plugProjectNishimuraU/KumaKochappyMgr", True],
"plugProjectNishimuraU/KumaKochappy",
"plugProjectNishimuraU/MiniHoudaiState",
["plugProjectNishimuraU/MiniHoudaiAnimator", True],
["plugProjectNishimuraU/MiniHoudaiMgr", True],
"plugProjectNishimuraU/MiniHoudai",
"plugProjectNishimuraU/MiniHoudaiShotGun",
["plugProjectNishimuraU/SokkuriState", True],
["plugProjectNishimuraU/SokkuriAnimator", True],
["plugProjectNishimuraU/SokkuriMgr", True],
["plugProjectNishimuraU/Sokkuri", True],
"plugProjectNishimuraU/JointShadowBase",
"plugProjectNishimuraU/UmimushiShadow",
["plugProjectNishimuraU/HanaMgr", True],
["plugProjectNishimuraU/Hana", True],
"plugProjectNishimuraU/BigTreasureAttack",
"plugProjectNishimuraU/SnakeCrowShadow",
"plugProjectNishimuraU/SnakeWholeShadow",
["plugProjectNishimuraU/BombOtakaraMgr", True],
["plugProjectNishimuraU/BombOtakara", True],
"plugProjectNishimuraU/DangoMushiState",
["plugProjectNishimuraU/DangoMushiMgr", True],
"plugProjectNishimuraU/DangoMushi",
["plugProjectNishimuraU/GreenKabutoMgr", True],
["plugProjectNishimuraU/GreenKabuto", True],
["plugProjectNishimuraU/RedKabutoMgr", True],
["plugProjectNishimuraU/RedKabuto", True],
["plugProjectNishimuraU/FixKabutoMgr", True],
["plugProjectNishimuraU/FixKabuto", True],
["plugProjectNishimuraU/RandCapEnemyUnit", True],
["plugProjectNishimuraU/NormMiniHoudaiMgr", True],
["plugProjectNishimuraU/NormMiniHoudai", True],
["plugProjectNishimuraU/FixMiniHoudaiMgr", True],
["plugProjectNishimuraU/FixMiniHoudai", True],
"plugProjectNishimuraU/TyreShadow",
],
},
{
"lib": "plugProjectOgawaU",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
["plugProjectOgawaU/ogScreen", True],
["plugProjectOgawaU/ogDopingScreen", True],
["plugProjectOgawaU/ogPikminCounter", True],
["plugProjectOgawaU/ogAnime", True],
["plugProjectOgawaU/ogCounter", True],
"plugProjectOgawaU/ogLifeGauge",
["plugProjectOgawaU/ogSunMeter", True],
["plugProjectOgawaU/ogCatchPiki", True],
["plugProjectOgawaU/ogContenaCounter", True],
["plugProjectOgawaU/ogMapCounter", True],
["plugProjectOgawaU/ogAnimTextScreen", True],
["plugProjectOgawaU/ogCallBackMessage", True],
"plugProjectOgawaU/ogMenuMgr",
["plugProjectOgawaU/ogCallBackScreen", True],
"plugProjectOgawaU/ogCounterRV",
["plugProjectOgawaU/ogSE", True],
["plugProjectOgawaU/ogCounterDay", True],
["plugProjectOgawaU/testScene", True],
["plugProjectOgawaU/testObj", True],
["plugProjectOgawaU/ogSceneGround", True],
["plugProjectOgawaU/ogObjGround", True],
"plugProjectOgawaU/ogCopyPane",
["plugProjectOgawaU/ogBloGroup", True],
["plugProjectOgawaU/DispMemberBase", True],
["plugProjectOgawaU/ogLib2D", True],
"plugProjectOgawaU/ogObjSMenuMap",
["plugProjectOgawaU/ogSceneSMenuMap", True],
"plugProjectOgawaU/ogObjSMenuItem",
["plugProjectOgawaU/ogSceneSMenuItem", True],
["plugProjectOgawaU/ogSceneSMenuPause", True],
["plugProjectOgawaU/ogObjSMenuPause", True],
["plugProjectOgawaU/ogObjSMenuBase", True],
"plugProjectOgawaU/ogObjCourseName",
["plugProjectOgawaU/ogUtil", True],
["plugProjectOgawaU/ogSceneCourseName", True],
["plugProjectOgawaU/ogObjKantei", True],
["plugProjectOgawaU/ogSceneKantei", True],
["plugProjectOgawaU/ogObjSpecialItem", True],
["plugProjectOgawaU/ogSceneSpecialItem", True],
["plugProjectOgawaU/ogObjFloor", True],
["plugProjectOgawaU/ogSceneFloor", True],
["plugProjectOgawaU/ogObjCave", True],
["plugProjectOgawaU/ogSceneCave", True],
["plugProjectOgawaU/ogObjAnaDemo", True],
["plugProjectOgawaU/ogSceneAnaDemo", True],
["plugProjectOgawaU/ogObjChallenge2P", True],
["plugProjectOgawaU/ogSceneChallenge2P", True],
"plugProjectOgawaU/ogObjContena",
["plugProjectOgawaU/ogSceneContena", True],
["plugProjectOgawaU/ogObjSMenuPauseDoukutu", True],
["plugProjectOgawaU/ogSceneSMenuPauseDoukutu", True],
["plugProjectOgawaU/ogObjUfo", True],
["plugProjectOgawaU/ogSceneUfo", True],
["plugProjectOgawaU/ogObjSave", True],
["plugProjectOgawaU/ogSceneSave", True],
["plugProjectOgawaU/ogObjFinalMsg", True],
["plugProjectOgawaU/ogSceneFinalMsg", True],
"plugProjectOgawaU/ogObjVs",
["plugProjectOgawaU/ogSceneVs", True],
["plugProjectOgawaU/ogObjChallenge1P", True],
["plugProjectOgawaU/ogSceneChallenge1P", True],
["plugProjectOgawaU/ogScaleMgr", True],
["plugProjectOgawaU/ogObjSMenuPauseVs", True],
["plugProjectOgawaU/ogSceneSMenuPauseVs", True],
"plugProjectOgawaU/ogFuriko",
"plugProjectOgawaU/ogCounterSlot",
["plugProjectOgawaU/ogObjWorldMapInfoWindow0", True],
["plugProjectOgawaU/ogSceneWorldMapInfoWindow0", True],
["plugProjectOgawaU/ogObjWorldMapInfoWindow1", True],
["plugProjectOgawaU/ogSceneWorldMapInfoWindow1", True],
["plugProjectOgawaU/ogTotalPokoScreen", True],
["plugProjectOgawaU/ogObjChallengeBase", True],
["plugProjectOgawaU/ogSceneChallengeBase", True],
"plugProjectOgawaU/ogCallBackPicture",
["plugProjectOgawaU/ogDrawAfter", True],
["plugProjectOgawaU/ogOtakaraSensor", True],
"plugProjectOgawaU/ogTitleMsg",
["plugProjectOgawaU/ogAngleMgr", True],
["plugProjectOgawaU/ogSceneSMenuCont", True],
["plugProjectOgawaU/ogObjSMenuCont", True],
],
},
{
"lib": "plugProjectHikinoU",
"cflags": "$cflags_pikmin -sym on",
"mw_version": "2.6",
"host": True,
"objects": [
"plugProjectHikinoU/PSSeq",
"plugProjectHikinoU/PSGame",
"plugProjectHikinoU/PSSystemIF",
"plugProjectHikinoU/PSAutoBgm",
"plugProjectHikinoU/PSBnkMgr",
"plugProjectHikinoU/PSTaskBase",
["plugProjectHikinoU/PSBgmTask", True],
["plugProjectHikinoU/PSCreatureMgr", True],
["plugProjectHikinoU/PSAutoBgm_MeloArranger", True],
"plugProjectHikinoU/PSSe",
"plugProjectHikinoU/PSSeBase",
"plugProjectHikinoU/PSScene",
["plugProjectHikinoU/PSBgmTrack", True],
"plugProjectHikinoU/PSDirector",
],
},
{
"lib": "plugProjectMorimuraU",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
"plugProjectMorimuraU/dayEndCount",
"plugProjectMorimuraU/hurryUp2D",
["plugProjectMorimuraU/gameOver2D", True],
["plugProjectMorimuraU/testBase", True],
["plugProjectMorimuraU/bombState", True],
["plugProjectMorimuraU/bombAnimator", True],
["plugProjectMorimuraU/bombMgr", True],
"plugProjectMorimuraU/bomb",
["plugProjectMorimuraU/eggState", True],
["plugProjectMorimuraU/eggAnimator", True],
["plugProjectMorimuraU/eggMgr", True],
["plugProjectMorimuraU/egg", True],
"plugProjectMorimuraU/panModokiState",
["plugProjectMorimuraU/panModokiAnimator", True],
["plugProjectMorimuraU/panModokiMgr", True],
"plugProjectMorimuraU/panModoki",
["plugProjectMorimuraU/plantsMgr", True],
["plugProjectMorimuraU/plantsAnimator", True],
["plugProjectMorimuraU/plants", True],
"plugProjectMorimuraU/kingChappyState",
["plugProjectMorimuraU/kingChappyMgr", True],
"plugProjectMorimuraU/kingChappy",
["plugProjectMorimuraU/miulinState", True],
["plugProjectMorimuraU/miulinAnimator", True],
["plugProjectMorimuraU/miulinMgr", True],
"plugProjectMorimuraU/miulin",
"plugProjectMorimuraU/jigumoState",
["plugProjectMorimuraU/jigumoAnimator", True],
["plugProjectMorimuraU/jigumoMgr", True],
"plugProjectMorimuraU/jigumo",
["plugProjectMorimuraU/enemyNestMgr", True],
["plugProjectMorimuraU/enemyNest", True],
["plugProjectMorimuraU/tamagoMushiState", True],
["plugProjectMorimuraU/tamagoMushiAnimator", True],
"plugProjectMorimuraU/tamagoMushiMgr",
"plugProjectMorimuraU/tamagoMushi",
"plugProjectMorimuraU/zukan2D",
"plugProjectMorimuraU/hiScore2D",
["plugProjectMorimuraU/umiMushiState", True],
["plugProjectMorimuraU/umiMushiAnimator", True],
["plugProjectMorimuraU/umiMushiMgr", True],
"plugProjectMorimuraU/umiMushi",
["plugProjectMorimuraU/shijimiChouState", True],
["plugProjectMorimuraU/shijimiChouAnimator", True],
["plugProjectMorimuraU/shijimiChouMgr", True],
"plugProjectMorimuraU/shijimiChou",
"plugProjectMorimuraU/challengeSelect2D",
"plugProjectMorimuraU/challengeResult2D",
"plugProjectMorimuraU/vsSelect2D",
["plugProjectMorimuraU/mrUtil", True],
"plugProjectMorimuraU/scrollList",
["plugProjectMorimuraU/mrWindow", True],
["plugProjectMorimuraU/blackManState", True],
["plugProjectMorimuraU/blackManAnimator", True],
["plugProjectMorimuraU/blackManMgr", True],
"plugProjectMorimuraU/blackMan",
["plugProjectMorimuraU/tyreState", True],
["plugProjectMorimuraU/tyreAnimator", True],
["plugProjectMorimuraU/tyreMgr", True],
"plugProjectMorimuraU/tyre",
],
},
{
"lib": "plugProjectEbisawaU",
"cflags": "$cflags_pikmin -sym on",
"mw_version": "2.6",
"host": True,
"objects": [
"plugProjectEbisawaU/efxBase",
"plugProjectEbisawaU/efxEnemy",
"plugProjectEbisawaU/efxObject",
"plugProjectEbisawaU/efxPikmin",
"plugProjectEbisawaU/particle2dMgr",
["plugProjectEbisawaU/efx2dBase", True],
"plugProjectEbisawaU/efx2dEffect",
"plugProjectEbisawaU/particleMgr",
"plugProjectEbisawaU/ebiP2Title",
"plugProjectEbisawaU/ebiP2TitleUnit",
"plugProjectEbisawaU/ebiUtility",
["plugProjectEbisawaU/ebiP2TitleCamera", True],
["plugProjectEbisawaU/ebiP2TitleLight", True],
"plugProjectEbisawaU/ebiScreenMemoryCard",
"plugProjectEbisawaU/efxTPkEffectMgr",
["plugProjectEbisawaU/efxEnemyGeneral", True],
["plugProjectEbisawaU/ebi3DGraph", True],
"plugProjectEbisawaU/ebiGeometry",
"plugProjectEbisawaU/ebi2DGraph",
"plugProjectEbisawaU/ebiScreenOption",
"plugProjectEbisawaU/ebiScreenProgre",
"plugProjectEbisawaU/ebiOptionMgr",
"plugProjectEbisawaU/ebi2DCallBack",
"plugProjectEbisawaU/ebiCardMgr",
["plugProjectEbisawaU/ebiScreenFramework", True],
["plugProjectEbisawaU/ebiScreenPushStart", True],
"plugProjectEbisawaU/ebiScreenFileSelect",
"plugProjectEbisawaU/ebiScreenTitleMenu",
"plugProjectEbisawaU/ebiSaveMgr",
"plugProjectEbisawaU/ebiScreenSaveMenu",
"plugProjectEbisawaU/ebiScreenFileSelect_Mgr",
"plugProjectEbisawaU/ebiFileSelectMgr",
["plugProjectEbisawaU/ebiCardMgr_Load", True],
["plugProjectEbisawaU/ebiP2TitleCoordMgr", True],
"plugProjectEbisawaU/ebiP2TitlePikmin",
"plugProjectEbisawaU/ebiP2TitleKogane",
"plugProjectEbisawaU/ebiP2TitleChappy",
["plugProjectEbisawaU/ebiScreenTMBack", True],
"plugProjectEbisawaU/ebiMainTitleMgr",
["plugProjectEbisawaU/ebiP2TitleFog", True],
"plugProjectEbisawaU/efxEnemyBoss",
"plugProjectEbisawaU/ebiCardEReader",
"plugProjectEbisawaU/ebiScreenOmake",
"plugProjectEbisawaU/ebiOmakeMgr",
"plugProjectEbisawaU/ebiScreenOmakeCardE",
"plugProjectEbisawaU/ebiScreenOmakeGame",
["plugProjectEbisawaU/ebiScreenInfoWindow", True],
],
},
{
"lib": "plugProjectKonoU",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
"plugProjectKonoU/khWorldMap",
"plugProjectKonoU/khCaveResult",
["plugProjectKonoU/khSceneLoader", True],
["plugProjectKonoU/newGame2DMgr", True],
["plugProjectKonoU/newScreenMgr", True],
["plugProjectKonoU/khReadyGo", True],
["plugProjectKonoU/khFinalFloor", True],
"plugProjectKonoU/khDayEndResult",
["plugProjectKonoU/khUtil", True],
"plugProjectKonoU/khFinalResult",
["plugProjectKonoU/khPayDept", True],
["plugProjectKonoU/khWinLose", True],
["plugProjectKonoU/khWinLoseReason", True],
["plugProjectKonoU/khMailSaveData", True],
],
},
{
"lib": "sysBootupU",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
["sysBootupU/sysBootup", True],
],
},
{
"lib": "sysCommonU",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
["sysCommonU/node", True],
"sysCommonU/sysMath",
["sysCommonU/id32", True],
["sysCommonU/parameters", True],
["sysCommonU/stream", True],
"sysCommonU/geometry",
["sysCommonU/mapCollision", True],
"sysCommonU/camera",
["sysCommonU/tagparams", True],
["sysCommonU/sysTemplates", True],
["sysCommonU/mapCode", True],
"sysCommonU/geomIntersection",
"sysCommonU/geomOBBTree",
"sysCommonU/geomTraceMove",
"sysCommonU/geomCylinder",
["sysCommonU/geomClone", True],
],
},
{
"lib": "sysGCU",
"cflags": "$cflags_pikmin",
"mw_version": "2.6",
"host": True,
"objects": [
"sysGCU/system",
"sysGCU/section",
"sysGCU/gameflow",
["sysGCU/menuSection", True],
"sysGCU/dvdThread",
["sysGCU/appThread", True],
["sysGCU/controller", True],
"sysGCU/graphics",
"sysGCU/matMath",
"sysGCU/sysShape",
["sysGCU/reset", True],
["sysGCU/dvdStatus", True],
["sysGCU/sysTimers", True],
["sysGCU/modelMgr", True],
"sysGCU/heapStatus",
"sysGCU/light",
"sysGCU/wipe",
"sysGCU/moviePlayer",
"sysGCU/JSTObjectActor",
"sysGCU/JSTObjectCamera",
"sysGCU/JSTObjectGameActor",
"sysGCU/JSTObjectSystem",
["sysGCU/JSTFindCreature", True],
["sysGCU/movieConfig", True],
["sysGCU/gameConfig", True],
["sysGCU/fogMgr", True],
"sysGCU/aramMgr",
"sysGCU/resourceMgr",
["sysGCU/resourceMgr2D", True],
"sysGCU/sysMaterialAnim",
"sysGCU/P2DScreen",
"sysGCU/movieMessage",
"sysGCU/moviePlayerPauseAndDraw",
"sysGCU/JSTObjectSpecialActor",
["sysGCU/messageSequence", True],
"sysGCU/messageMgr",
"sysGCU/messageObj",
"sysGCU/messageRendering",
["sysGCU/message", True],
"sysGCU/modelEffect",
["sysGCU/messageReference", True],
["sysGCU/simpleMessage", True],
["sysGCU/sysShapeAnimation", True],
"sysGCU/sysShapeModel",
"sysGCU/windowMessage",
"sysGCU/memoryCard",
"sysGCU/pikmin2MemoryCardMgr",
["sysGCU/commonSaveData", True],
"sysGCU/bootSection",
"sysGCU/titleSection",
"sysGCU/loadResource",
["sysGCU/rootMenuSection", True],
["sysGCU/demoSection", True],
"sysGCU/THPAudioDecode",
["sysGCU/THPDraw", True],
"sysGCU/THPPlayer",
"sysGCU/THPRead",
"sysGCU/THPVideoDecode",
"sysGCU/pikmin2THPPlayer",
["sysGCU/captionMgr", True],
"sysGCU/captionMessage",
"sysGCU/screenScene",
"sysGCU/screenMgr",
"sysGCU/screenObj",
"sysGCU/JSTObjectParticleActor",
"sysGCU/moviePlayerAudio",
"sysGCU/illustratedBookMessage",
["sysGCU/sysDrawBuffer", True],
["sysGCU/dvdErrorMessage", True],
"sysGCU/pikmin2AramMgr",
["sysGCU/messageAnalyzer", True],
],
},
{
"lib": "utilityU",
"cflags": "$cflags_pikmin -sym on",
"mw_version": "2.6",
"host": True,
"objects": [
"utilityU/menu",
"utilityU/PSMainSide_Director",
"utilityU/PSMainSide_Factory",
"utilityU/PSMainSide_ObjSound",
"utilityU/PSMainSide_Demo",
"utilityU/PSMainSide_Scene",
"utilityU/PSMainSide_BossMgr",
"utilityU/PSMainSide_Se",
"utilityU/PSMainSide_DirectorMgr",
"utilityU/PSMainSide_Sound",
"utilityU/PSMainSide_TrackMap",
"utilityU/PSMainSide_CreaturePrm",
"utilityU/PSMainSide_ObjCalc",
],
},
]
if __name__ == "__main__":
import os
import io
import sys
import argparse
from pathlib import Path
from shutil import which
from tools import ninja_syntax
parser = argparse.ArgumentParser()
parser.add_argument(
"--version",
dest="version",
default="usa",
help="version to build (usa, usa.demo)",
)
parser.add_argument(
"--map",
dest="map",
action="store_true",
help="generate map file",
)
parser.add_argument(
"--no-check",
dest="check",
action="store_false",
help="don't check hash of resulting dol",
)
parser.add_argument(
"--no-static-libs",
dest="static_libs",
action="store_false",
help="don't build and use static libs",
)
parser.add_argument(
"--devkitppc",
dest="devkitppc",
type=Path,
help="path to devkitPPC",
)
if os.name != "nt" and not "_NT-" in os.uname().sysname:
parser.add_argument(
"--wine",
dest="wine",
type=Path,
help="path to wine (or wibo)",
)
parser.add_argument(
"--build-dtk",
dest="build_dtk",
type=Path,
help="path to decomp-toolkit source",
)
parser.add_argument(
"--debug",
dest="debug",
action="store_true",
help="build with debug info (non-matching)",
)
parser.add_argument(
"--compilers",
dest="compilers",
type=Path,
default=Path("tools/mwcc_compiler"),
help="path to compilers",
)
parser.add_argument(
"--build-dir",
dest="build_dir",
type=Path,
default=Path("build"),
help="base build directory",
)
parser.add_argument(
"--franklite",
dest="franklite",
action="store_true",
help="use franklite.py instead of frank.py",
)
args = parser.parse_args()
# On Windows, we need this to use && in commands
chain = "cmd /c " if os.name == "nt" else ""
out = io.StringIO()
n = ninja_syntax.Writer(out)
n.variable("ninja_required_version", "1.3")
n.newline()
n.comment("The arguments passed to configure.py, for rerunning it.")
configure_args = sys.argv[1:]
# Ignore DEVKITPPC env var on Windows
if os.name != "nt" and "DEVKITPPC" in os.environ and not args.devkitppc:
configure_args.extend(["--devkitppc", os.environ["DEVKITPPC"]])
n.variable("configure_args", configure_args)
n.variable("python", sys.executable)
n.newline()
###
# Variables
###
n.comment("Variables")
version = args.version.lower()
if args.version.lower() == "usa":
version_num = "2"
elif args.version.lower() == "usa.demo":
version_num = "1"
else:
sys.exit(f'Invalid version "{args.version}"')
n.variable("out", args.build_dir / f"pikmin2.{version}")
build_path = Path("$out")
if args.devkitppc:
dkp_path = args.devkitppc
elif os.name == "nt":
dkp_path = Path("C:\devkitPro\devkitPPC")
elif "DEVKITPPC" in os.environ:
dkp_path = Path(os.environ["DEVKITPPC"])
else:
dkp_path = Path("/opt/devkitpro/devkitPPC")
cflags_base = f"-proc gekko -nodefaults -Cpp_exceptions off -RTTI off -fp hard -fp_contract on -O4,p -maxerrors 1 -enum int -inline auto -str reuse,readonly -nosyspath -use_lmw_stmw on -sdata 8 -sdata2 8 -DVERNUM={version_num} -i include"
if args.debug:
cflags_base += " -sym on -D_DEBUG"
else:
cflags_base += " -DNDEBUG -w off"
n.variable("cflags_base", cflags_base)
n.variable("cflags_pikmin", "$cflags_base -common on")
asflags = f"-mgekko -I include --defsym version={version_num} -W --strip-local-absolute -gdwarf-2"
n.variable("asflags", asflags)
ldflags = "-fp fmadd -nodefaults -lcf ldscript.lcf"
if args.map:
map_path = build_path / "pikmin2UP.MAP"
ldflags += f" -map {map_path} -mapunused"
if args.debug:
ldflags += " -g"
else:
ldflags += " -w off"
n.variable("ldflags", ldflags)
n.variable("mw_version", "2.6")
if os.name == "nt":
exe = ".exe"
wine = ""
else:
if "_NT-" in os.uname().sysname:
# MSYS2
wine = ""
elif args.wine:
wine = f"{args.wine} "
elif which("wibo") is not None:
wine = "wibo "
else:
wine = "wine "
exe = ""
n.newline()
###
# Tooling
###
n.comment("decomp-toolkit")
tools_path = Path("tools")
build_tools_path = args.build_dir / "tools"
def path(input):
if input is None:
return None
elif isinstance(input, list):
return list(map(str, input))
else:
return [str(input)]
if args.build_dtk:
dtk = build_tools_path / "release" / f"dtk{exe}"
n.rule(
name="cargo",
command="cargo build --release --manifest-path $in --bin $bin --target-dir $target",
description="CARGO $bin",
depfile=path(Path("$target") / "release" / "$bin.d"),
deps="gcc",
)
n.build(
outputs=path(dtk),
rule="cargo",
inputs=path(args.build_dtk / "Cargo.toml"),
variables={
"bin": "dtk",
"target": build_tools_path,
},
)
else:
dtk = build_tools_path / f"dtk{exe}"
download_dtk = tools_path / "download_dtk.py"
n.rule(
name="download_dtk",
command=f"$python {download_dtk} $in $out",
description="DOWNLOAD $out",
)
n.build(
outputs=path(dtk),
rule="download_dtk",
inputs=path([tools_path / "dtk_version"]),
implicit=path([download_dtk]),
)
n.newline()
###
# Rules
###
compiler_path = args.compilers / "$mw_version"
mwcc = compiler_path / "mwcceppc.exe"
mwld = compiler_path / "mwldeppc.exe"
frank = tools_path / "frank.py"
franklite = tools_path / "franklite.py"
gnu_as = dkp_path / "bin" / f"powerpc-eabi-as{exe}"
mwcc_cmd = f"{chain}{wine}{mwcc} $cflags -MMD -c $in -o $basedir"
if args.franklite:
mwcc_frank_cmd = f"{mwcc_cmd} && $python {franklite} $out $out"
else:
profile_mwcc = args.compilers / "1.2.5e" / "mwcceppc.exe"
mwcc_frank_cmd = (
f"{chain}{wine}{mwcc} $cflags -MMD -c $in -o $basedir"
+ f" && {wine}{profile_mwcc} $cflags -c $in -o $out.profile"
+ f" && $python {frank} $out $out.profile $out"
)
mwld_cmd = f"{wine}{mwld} $ldflags -o $out @$out.rsp"
as_cmd = (
f"{chain}{gnu_as} $asflags -o $out $in -MD $out.d"
+ f" && {dtk} elf fixup $out $out"
)
ar_cmd = f"{dtk} ar create $out @$out.rsp"
if os.name != "nt":
transform_dep = tools_path / "transform-dep.py"
transform_dep_cmd = f" && $python {transform_dep} $basefile.d $basefile.d"
mwcc_cmd += transform_dep_cmd
mwcc_frank_cmd += transform_dep_cmd
n.comment("Link ELF file")
n.rule(
name="link",
command=mwld_cmd,
description="LINK $out",
rspfile="$out.rsp",
rspfile_content="$in_newline",
)
n.newline()
n.comment("MWCC build")
n.rule(
name="mwcc",
command=mwcc_cmd,
description="MWCC $out",
depfile="$basefile.d",
deps="gcc",
)
n.newline()
n.comment("MWCC build with franklite")
n.rule(
name="mwcc_frank",
command=mwcc_frank_cmd,
description="FRANK $out",
depfile="$basefile.d",
deps="gcc",
)
n.newline()
n.comment("Assemble asm")
n.rule(
name="as",
command=as_cmd,
description="AS $out",
depfile="$out.d",
deps="gcc",
)
n.newline()
n.comment("Create static library")
n.rule(
name="ar",
command=ar_cmd,
description="AR $out",
rspfile="$out.rsp",
rspfile_content="$in_newline",
)
n.newline()
n.comment("Host build")
n.variable("host_cflags", "-I include -Wno-trigraphs")
n.variable(
"host_cppflags",
"-std=c++98 -I include -fno-exceptions -fno-rtti -D_CRT_SECURE_NO_WARNINGS -Wno-trigraphs -Wno-c++11-extensions",
)
n.rule(
name="host_cc",
command="clang $host_cflags -c -o $out $in",
description="CC $out",
)
n.rule(
name="host_cpp",
command="clang++ $host_cppflags -c -o $out $in",
description="CXX $out",
)
n.newline()
###
# Rules for source files
###
n.comment("Source files")
src_path = Path("src")
asm_path = Path("asm")
build_src_path = build_path / "src"
build_host_path = build_path / "host"
build_asm_path = build_path / "asm"
build_lib_path = build_path / "lib"
source_inputs = []
host_source_inputs = []
link_inputs = []
for lib in LIBS:
inputs = []
if "lib" in lib:
lib_name = lib["lib"]
n.comment(f"{lib_name}.a")
else:
n.comment("Loose files")
for object in lib["objects"]:
completed = None
options = {
"add_to_all": True,
"mw_version": None,
"cflags": None,
}
if type(object) is list:
if len(object) > 1:
completed = object[1]
if len(object) > 2:
options.update(object[2])
object = object[0]
mw_version = options["mw_version"] or lib["mw_version"]
c_file = None
if os.path.exists(src_path / f"{object}.cpp"):
c_file = src_path / f"{object}.cpp"
elif os.path.exists(src_path / f"{object}.cp"):
c_file = src_path / f"{object}.cp"
elif os.path.exists(src_path / f"{object}.c"):
c_file = src_path / f"{object}.c"
elif os.path.exists(src_path / f"{object}.C"):
c_file = src_path / f"{object}.C"
if c_file is not None:
rule = "mwcc"
implicit = []
if mw_version == "1.2.5e":
mw_version = "1.2.5"
rule = "mwcc_frank"
if args.franklite:
implicit.append(franklite)
else:
implicit.append(frank)
n.build(
outputs=path(build_src_path / f"{object}.o"),
rule=rule,
inputs=path(c_file),
variables={
"mw_version": mw_version,
"cflags": options["cflags"] or lib["cflags"],
"basedir": os.path.dirname(build_src_path / f"{object}"),
"basefile": path(build_src_path / f"{object}"),
},
implicit=path(implicit),
)
if lib["host"]:
n.build(
outputs=path(build_host_path / f"{object}.o"),
rule="host_cc" if c_file.suffix == ".c" else "host_cpp",
inputs=path(c_file),
variables={
"basedir": os.path.dirname(build_host_path / object),
"basefile": path(build_host_path / object),
},
)
if options["add_to_all"]:
host_source_inputs.append(build_host_path / f"{object}.o")
if options["add_to_all"]:
source_inputs.append(build_src_path / f"{object}.o")
if os.path.exists(asm_path / f"{object}.s"):
n.build(
outputs=path(build_asm_path / f"{object}.o"),
rule="as",
inputs=path(asm_path / f"{object}.s"),
implicit=path(dtk),
)
if completed:
inputs.append(build_src_path / f"{object}.o")
else:
inputs.append(build_asm_path / f"{object}.o")
if args.static_libs and "lib" in lib:
lib_name = lib["lib"]
n.build(
outputs=path(build_lib_path / f"{lib_name}.a"),
rule="ar",
inputs=path(inputs),
implicit=path(dtk),
)
link_inputs.append(build_lib_path / f"{lib_name}.a")
else:
link_inputs.extend(inputs)
n.newline()
###
# Link
###
n.comment("Link")
if args.map:
n.build(
outputs=path(build_path / "main.elf"),
rule="link",
inputs=path(link_inputs),
implicit_outputs=path(map_path),
)
else:
n.build(
outputs=path(build_path / "main.elf"),
rule="link",
inputs=path(link_inputs),
)
n.newline()
###
# Helper rule for building all source files
###
n.comment("Build all source files")
n.build(
outputs="all_source",
rule="phony",
inputs=path(source_inputs),
)
n.newline()
###
# Helper rule for building all source files, with a host compiler
###
n.comment("Build all source files with a host compiler")
n.build(
outputs="all_source_host",
rule="phony",
inputs=path(host_source_inputs),
)
n.newline()
###
# Generate DOL
###
n.comment("Generate DOL")
n.rule(
name="elf2dol",
command=f"{dtk} elf2dol $in $out",
description="DOL $out",
)
n.build(
outputs=path(build_path / "main.dol"),
rule="elf2dol",
inputs=path(build_path / "main.elf"),
implicit=path(dtk),
)
n.newline()
###
# Check DOL hash
###
if args.check:
n.comment("Check DOL hash")
n.rule(
name="check",
command=f"{dtk} shasum -c $in -o $out",
description="CHECK $in",
)
n.build(
outputs=path(build_path / "main.dol.ok"),
rule="check",
inputs=f"sha1/pikmin2.{version}.sha1",
implicit=path([build_path / "main.dol", dtk]),
)
n.newline()
###
# Progress script
###
if args.map:
n.comment("Check progress")
calc_progress = tools_path / "calcprogress.py"
n.rule(
name="progress",
command=f"$python {calc_progress} $in -o $out",
description="PROGRESS $in",
)
n.build(
outputs=path(build_path / "main.dol.progress"),
rule="progress",
inputs=path([build_path / "main.dol", map_path]),
implicit=path([calc_progress]),
)
n.newline()
###
# Regenerate on change
###
n.comment("Reconfigure on change")
n.rule(
name="configure",
command="$python configure.py $configure_args",
generator=True,
)
n.build(
outputs="build.ninja",
rule="configure",
implicit=path(["configure.py", tools_path / "ninja_syntax.py"]),
)
n.newline()
###
# Default rule
###
n.comment("Default rule")
if args.check:
dol_out = build_path / "main.dol.ok"
else:
dol_out = build_path / "main.dol"
if args.map:
n.default(path([dol_out, build_path / "main.dol.progress"]))
else:
n.default(path([dol_out]))
with open("build.ninja", "w") as f:
f.write(out.getvalue())
n.close()