From 0ca56df5d340cde600d9680c29e1ff0fa2478b8d Mon Sep 17 00:00:00 2001 From: Wintermute0110 Date: Thu, 6 Oct 2016 23:31:14 +0900 Subject: [PATCH] Ability to configure cores to fetch/compile/install. --- build-config.sh | 158 +++++++++++++++++ libretro-fetch.sh | 5 +- rules.d/core-rules.sh | 374 +++++++++++++++++++++++++++++----------- rules.d/devkit-rules.sh | 24 ++- rules.d/lutro-rules.sh | 28 ++- 5 files changed, 477 insertions(+), 112 deletions(-) create mode 100644 build-config.sh diff --git a/build-config.sh b/build-config.sh new file mode 100644 index 000000000..a01948d40 --- /dev/null +++ b/build-config.sh @@ -0,0 +1,158 @@ +# vim: set ts=3 sw=3 noet ft=sh : bash + +# ------------------------------------------------------------------------------------------------- +# Configure which cores to fetch/build/install +# ------------------------------------------------------------------------------------------------- +# Uncomment each line to enable core fetch / Comment to disable +# +# Format: include_[core|devkit|lutro]_[core_name] + +# ------------------------------------------------------------------------------------------------- +# Console cores (rules.d/core-rules) +# ------------------------------------------------------------------------------------------------- + +# --- BSNES cores (Nintendo SNES emulator) --- +include_core_bsnes_accuracy +include_core_bsnes_balanced +include_core_bsnes_performance + +include_core_easyrpg +include_core_gme + +# --- Snex9x cores --- +include_core_snes9x2002 +include_core_snes9x2005 +include_core_snes9x2010 +include_core_snes9x + +# --- Reicast --- +include_core_reicast + +# --- Genesis Plus GX --- +include_core_genesis_plus_gx + +include_core_mgba +include_core_video_processor + +# --- Final Burn (arcade) --- +include_core_fbalpha +include_core_fbalpha2012 +include_core_fbalpha2012_cps1 +include_core_fbalpha2012_cps2 +include_core_fbalpha2012_neogeo + +include_core_blastem + +# --- VBA cores --- +include_core_vba_next +include_core_vbam + +include_core_handy +include_core_cap32 + +# --- UAE --- +include_core_fsuae +include_core_puae + +include_core_bnes +include_core_fceumm +include_core_gambatte +include_core_meteor +include_core_nxengine +include_core_prboom +include_core_stella +include_core_desmume +include_core_quicknes +include_core_nestopia +include_core_craft +include_core_pcem +include_core_tyrquake +include_core_pcsx_rearmed +include_core_pcsx1 + +# --- Mednafen cores --- +include_core_mednafen_gba +include_core_mednafen_lynx +include_core_mednafen_ngp +include_core_mednafen_pce_fast +include_core_mednafen_supergrafx +include_core_mednafen_psx +include_core_mednafen_saturn +include_core_mednafen_pcfx +include_core_mednafen_snes +include_core_mednafen_vb +include_core_mednafen_wswan + +include_core_rustation +include_core_scummvm +include_core_yabause +include_core_dosbox +include_core_virtualjaguar + +# --- MAME cores --- +include_core_mame2000 +include_core_mame2003 +include_core_mame2010 +include_core_mame2014 +include_core_mame + +include_core_ffmpeg +include_core_bsnes_cplusplus98 +include_core_bsnes_mercury_accuracy +include_core_bsnes_mercury_balanced +include_core_bsnes_mercury_performance + +# --- Picodrive --- +include_core_picodrive + +include_core_tgbdual + +# --- Mupen64 Plus cores --- +include_core_glupen64 +include_core_mupen64plus + +include_core_dinothawr +include_core_3dengine +include_core_remotejoy +include_core_bluemsx +include_core_fmsx +include_core_2048 +include_core_vecx + +# --- PPSSPP cores --- +include_core_ppsspp +include_core_psp1 + +include_core_prosystem +include_core_o2em +include_core_4do +include_core_stonesoup +include_core_hatari +include_core_tempgba +include_core_gpsp +include_core_emux +include_core_fuse +include_core_gw +include_core_81 +include_core_lutro + +# ------------------------------------------------------------------------------------------------- +# Devkits +# ------------------------------------------------------------------------------------------------- +include_devkit_manifest +include_devkit_dat_pull +include_devkit_ari64_dynarec +include_devkit_common +include_devkit_samples +include_devkit_deps + +# ------------------------------------------------------------------------------------------------- +# Lutro +# ------------------------------------------------------------------------------------------------- +include_lutro_sienna +include_lutro_platformer +include_lutro_pong +include_lutro_tetris +include_lutro_snake +include_lutro_iyfct +include_lutro_game_of_life diff --git a/libretro-fetch.sh b/libretro-fetch.sh index a49b7ac83..a7966f7c3 100755 --- a/libretro-fetch.sh +++ b/libretro-fetch.sh @@ -14,18 +14,19 @@ else fi fi +# --- Utility functions --- . "$BASE_DIR/libretro-config.sh" . "$BASE_DIR/script-modules/log.sh" . "$BASE_DIR/script-modules/util.sh" . "$BASE_DIR/script-modules/fetch-rules.sh" . "$BASE_DIR/script-modules/module_base.sh" -# Rules for fetching things are in these files: +# --- Rules for fetching things are in these files --- . "$BASE_DIR/rules.d/core-rules.sh" . "$BASE_DIR/rules.d/player-rules.sh" . "$BASE_DIR/rules.d/devkit-rules.sh" . "$BASE_DIR/rules.d/lutro-rules.sh" -# TODO: Read these programmatically +. "$BASE_DIR/build-config.sh" # libretro_fetch: Download the given core using its fetch rules # diff --git a/rules.d/core-rules.sh b/rules.d/core-rules.sh index 187810169..f80fa6528 100644 --- a/rules.d/core-rules.sh +++ b/rules.d/core-rules.sh @@ -1,204 +1,281 @@ # vim: set ts=3 sw=3 noet ft=sh : bash -register_module core "bsnes_accuracy" -theos_ios -ngc -sncps3 -ps3 -psp1 -qnx -wii +include_core_bsnes_accuracy() { + register_module core "bsnes_accuracy" -theos_ios -ngc -sncps3 -ps3 -psp1 -qnx -wii +} libretro_bsnes_accuracy_name="bsnes/higan (Accuracy)" libretro_bsnes_accuracy_git_url="https://github.com/libretro/bsnes-libretro.git" libretro_bsnes_accuracy_build_args="compiler=\"${CXX11}\" profile=\"accuracy\"" libretro_bsnes_accuracy_build_products="out" -register_module core "bsnes_balanced" -theos_ios -ngc -sncps3 -ps3 -psp1 -qnx -wii +include_core_bsnes_balanced() { + register_module core "bsnes_balanced" -theos_ios -ngc -sncps3 -ps3 -psp1 -qnx -wii +} libretro_bsnes_balanced_name="bsnes/higan (Balanced)" libretro_bsnes_balanced_git_url="https://github.com/libretro/bsnes-libretro.git" libretro_bsnes_balanced_build_args="compiler=\"${CXX11}\" profile=\"balanced\"" libretro_bsnes_balanced_build_products="out" -register_module core "bsnes_performance" -theos_ios -ngc -sncps3 -ps3 -psp1 -qnx -wii +include_core_bsnes_performance() { + register_module core "bsnes_performance" -theos_ios -ngc -sncps3 -ps3 -psp1 -qnx -wii +} libretro_bsnes_performance_name="bsnes/higan (Performance)" libretro_bsnes_performance_git_url="https://github.com/libretro/bsnes-libretro.git" libretro_bsnes_performance_build_args="compiler=\"${CXX11}\" profile=\"performance\"" libretro_bsnes_performance_build_products="out" -register_module core "easyrpg" -ngc -ps3 -psp1 -wii +include_core_easyrpg() { + register_module core "easyrpg" -ngc -ps3 -psp1 -wii +} libretro_easyrpg_name="EasyRPG" libretro_easyrpg_git_url="https://github.com/libretro/easyrpg-libretro.git" libretro_easyrpg_build_subdir="builds/libretro" libretro_easyrpg_build_makefile="Makefile.libretro" - -register_module core "gme" -ngc -ps3 -psp1 -wii + +include_core_gme() { + register_module core "gme" -ngc -ps3 -psp1 -wii +} libretro_gme_name="Game Music Emu" libretro_gme_git_url="https://github.com/libretro/libretro-gme.git" -register_module core "snes9x2002" -ngc -ps3 -psp1 -wii +include_core_snes9x2002() { + register_module core "snes9x2002" -ngc -ps3 -psp1 -wii +} libretro_snes9x2002_name="SNES9x 2002" libretro_snes9x2002_git_url="https://github.com/libretro/snes9x2002.git" - -register_module core "snes9x2005" -ngc -ps3 -psp1 -wii + +include_core_snes9x2005() { + register_module core "snes9x2005" -ngc -ps3 -psp1 -wii +} libretro_snes9x2005_name="SNES9x 2005" libretro_snes9x2005_git_url="https://github.com/libretro/snes9x2005.git" -register_module core "snes9x2010" -ps3 +include_core_snes9x2010() { + register_module core "snes9x2010" -ps3 +} libretro_snes9x2010_name="SNES9x 2010" libretro_snes9x2010_git_url="https://github.com/libretro/snes9x2010.git" libretro_snes9x2010_build_makefile="Makefile.libretro" libretro_snes9x2010_build_platform="$FORMAT_COMPILER_TARGET_ALT" -register_module core "snes9x" -ngc -sncps3 -ps3 -psp1 -wii +include_core_snes9x() { + register_module core "snes9x" -ngc -sncps3 -ps3 -psp1 -wii +} libretro_snes9x_name="SNES9x" libretro_snes9x_git_url="https://github.com/libretro/snes9x.git" libretro_snes9x_build_subdir="libretro" -register_module core "reicast" +include_core_reicast() { + register_module core "reicast" +} libretro_reicast_name="Reicast" libretro_reicast_git_url="https://github.com/libretro/reicast-emulator.git" libretro_reicast_build_makefile="Makefile" -register_module core "genesis_plus_gx" -theos_ios +include_core_genesis_plus_gx() { + register_module core "genesis_plus_gx" -theos_ios +} libretro_genesis_plus_gx_name="Genesis Plus GX" libretro_genesis_plus_gx_git_url="https://github.com/libretro/Genesis-Plus-GX.git" libretro_genesis_plus_gx_build_makefile="Makefile.libretro" -register_module core "mgba" +include_core_mgba() { + register_module core "mgba" +} libretro_mgba_name="mGBA" libretro_mgba_git_url="https://github.com/libretro/mgba.git" libretro_mgba_build_makefile="Makefile.libretro" -register_module core "video_processor" +include_core_video_processor() { + register_module core "video_processor" +} libretro_video_processor_name="Video processor" libretro_video_processor_git_url="https://github.com/libretro/libretro-video-processor.git" libretro_video_processor_build_makefile="Makefile" -register_module core "fbalpha" -psp1 +include_core_fbalpha() { + register_module core "fbalpha" -psp1 +} libretro_fbalpha_name="Final Burn Alpha" libretro_fbalpha_git_url="https://github.com/libretro/fbalpha.git" libretro_fbalpha_build_makefile="makefile.libretro" -register_module core "fbalpha2012" -psp1 +include_core_fbalpha2012() { + register_module core "fbalpha2012" -psp1 +} libretro_fbalpha2012_name="Final Burn Alpha 2012" libretro_fbalpha2012_git_url="https://github.com/libretro/fbalpha2012.git" libretro_fbalpha2012_build_subdir="svn-current/trunk" libretro_fbalpha2012_build_makefile="makefile.libretro" -register_module core "fbalpha2012_cps1" -psp1 +include_core_fbalpha2012_cps1() { + register_module core "fbalpha2012_cps1" -psp1 +} libretro_fbalpha2012_cps1_name="Final Burn Alpha 2012 CPS1" libretro_fbalpha2012_cps1_git_url="https://github.com/libretro/fbalpha2012_cps1.git" libretro_fbalpha2012_cps1_build_makefile="makefile.libretro" -register_module core "fbalpha2012_cps2" -psp1 +include_core_fbalpha2012_cps2() { + register_module core "fbalpha2012_cps2" -psp1 +} libretro_fbalpha2012_cps2_name="Final Burn Alpha 2012 CPS2" libretro_fbalpha2012_cps2_git_url="https://github.com/libretro/fbalpha2012_cps2.git" libretro_fbalpha2012_cps2_build_makefile="makefile.libretro" -register_module core "fbalpha2012_neogeo" -psp1 +include_core_fbalpha2012_neogeo() { + register_module core "fbalpha2012_neogeo" -psp1 +} libretro_fbalpha2012_neogeo_name="Final Burn Alpha 2012 NeoGeo" libretro_fbalpha2012_neogeo_git_url="https://github.com/libretro/fbalpha2012_neogeo.git" libretro_fbalpha2012_neogeo_build_makefile="Makefile" -register_module core "blastem" -psp1 +include_core_blastem() { + register_module core "blastem" -psp1 +} libretro_blastem_name="BlastEm" libretro_blastem_git_url="https://github.com/libretro/blastem-libretro.git" libretro_blastem_build_subdir="libretro" libretro_blastem_build_makefile="Makefile" - -register_module core "vba_next" +include_core_vba_next() { + register_module core "vba_next" +} libretro_vba_next_name="VBA Next" libretro_vba_next_git_url="https://github.com/libretro/vba-next.git" libretro_vba_next_build_makefile="Makefile.libretro" libretro_vba_next_build_platform="$FORMAT_COMPILER_TARGET_ALT" -register_module core "vbam" -ngc -ps3 -psp1 -wii +include_core_vbam() { + register_module core "vbam" -ngc -ps3 -psp1 -wii +} libretro_vbam_name="VBA-M" libretro_vbam_git_url="https://github.com/libretro/vbam-libretro.git" libretro_vbam_build_subdir="src/libretro" libretro_vbam_build_makefile="Makefile" libretro_vbam_build_platform="$FORMAT_COMPILER_TARGET_ALT" -register_module core "handy" -ngc -wii +include_core_handy() { + register_module core "handy" -ngc -wii +} libretro_handy_name="Handy" libretro_handy_git_url="https://github.com/libretro/libretro-handy.git" -register_module core "cap32" -ngc -ps3 -psp1 -qnx -wii +include_core_cap32() { + register_module core "cap32" -ngc -ps3 -psp1 -qnx -wii +} libretro_cap32_name="Caprice32" libretro_cap32_git_url="https://github.com/libretro/libretro-cap32.git" libretro_cap32_build_makefile="Makefile" -register_module core "fsuae" -ngc -ps3 -psp1 -qnx -wii +include_core_fsuae() { + register_module core "fsuae" -ngc -ps3 -psp1 -qnx -wii +} libretro_fsuae_name="FS-UAE" libretro_fsuae_git_url="https://github.com/libretro/libretro-fsuae.git" libretro_fsuae_build_makefile="Makefile.in" -register_module core "puae" -ngc -ps3 -psp1 -qnx -wii +include_core_puae() { + register_module core "puae" -ngc -ps3 -psp1 -qnx -wii +} libretro_puae_name="PUAE" libretro_puae_git_url="https://github.com/libretro/libretro-uae.git" libretro_puae_build_makefile="Makefile" -register_module core "bnes" -ios -theos_ios -ngc -ps3 -psp1 -qnx -wii +include_core_bnes() { + register_module core "bnes" -ios -theos_ios -ngc -ps3 -psp1 -qnx -wii +} libretro_bnes_name="bnes/higan" libretro_bnes_git_url="https://github.com/libretro/bnes-libretro.git" libretro_bnes_build_args="compiler=\"${CXX11}\"" -register_module core "fceumm" +include_core_fceumm() { + register_module core "fceumm" +} libretro_fceumm_name="FCEUmm" libretro_fceumm_git_url="https://github.com/libretro/libretro-fceumm.git" libretro_fceumm_build_makefile="Makefile.libretro" -register_module core "gambatte" +include_core_gambatte() { + register_module core "gambatte" +} libretro_gambatte_name="Gambatte" libretro_gambatte_git_url="https://github.com/libretro/gambatte-libretro.git" libretro_gambatte_build_platform="$FORMAT_COMPILER_TARGET_ALT" libretro_gambatte_build_makefile="Makefile.libretro" -register_module core "meteor" -ngc -ps3 -psp1 -qnx -wii +include_core_meteor() { + register_module core "meteor" -ngc -ps3 -psp1 -qnx -wii +} libretro_meteor_name="Meteor" libretro_meteor_git_url="https://github.com/libretro/meteor-libretro.git" libretro_meteor_build_subdir="libretro" -register_module core "nxengine" +include_core_nxengine() { + register_module core "nxengine" +} libretro_nxengine_name="NXEngine" libretro_nxengine_git_url="https://github.com/libretro/nxengine-libretro.git" -register_module core "prboom" +include_core_prboom() { + register_module core "prboom" +} libretro_prboom_name="PrBoom" libretro_prboom_git_url="https://github.com/libretro/libretro-prboom.git" libretro_prboom_build_platform="$FORMAT_COMPILER_TARGET_ALT" -register_module core "stella" -ngc -wii +include_core_stella() { + register_module core "stella" -ngc -wii +} libretro_stella_name="Stella" libretro_stella_git_url="https://github.com/libretro/stella-libretro.git" +include_core_desmume() { register_module core "desmume" -ngc -ps3 -psp1 -qnx -wii +} libretro_desmume_name="DeSmuME" libretro_desmume_git_url="https://github.com/libretro/desmume.git" libretro_desmume_build_subdir="desmume" libretro_desmume_build_makefile="Makefile.libretro" -register_module core "quicknes" +include_core_quicknes() { + register_module core "quicknes" +} libretro_quicknes_name="QuickNES" libretro_quicknes_git_url="https://github.com/libretro/QuickNES_Core.git" libretro_desmume_build_makefile="Makefile" -register_module core "nestopia" +include_core_nestopia() { + register_module core "nestopia" +} libretro_nestopia_name="Nestopia" libretro_nestopia_git_url="https://github.com/libretro/nestopia.git" libretro_nestopia_build_subdir="libretro" -register_module core "craft" +include_core_craft() { + register_module core "craft" +} libretro_craft_name="Craft" libretro_craft_git_url="https://github.com/libretro/Craft.git" libretro_craft_build_makefile="Makefile.libretro" -register_module core "pcem" +include_core_pcem() { + register_module core "pcem" +} libretro_pcem_name="PCem" libretro_pcem_git_url="https://github.com/libretro/libretro-pcem.git" libretro_pcem_build_makefile="Makefile.libretro" libretro_pcem_build_subdir="src" -register_module core "tyrquake" +include_core_tyrquake() { + register_module core "tyrquake" +} libretro_tyrquake_name="TyrQuake" libretro_tyrquake_git_url="https://github.com/libretro/tyrquake.git" libretro_tyrquake_build_makefile="Makefile" -register_module core "pcsx_rearmed" -theos_ios -ngc -ps3 -psp1 -wii +include_core_pcsx_rearmed() { + register_module core "pcsx_rearmed" -theos_ios -ngc -ps3 -psp1 -wii +} libretro_pcsx_rearmed_name="PCSX ReARMed" libretro_pcsx_rearmed_git_url="https://github.com/libretro/pcsx_rearmed.git" libretro_pcsx_rearmed_build_makefile="Makefile.libretro" @@ -208,7 +285,9 @@ libretro_pcsx_rearmed_configure() { fi } -register_module core "pcsx1" -theos_ios -ngc -ps3 -psp1 -wii +include_core_pcsx1() { + register_module core "pcsx1" -theos_ios -ngc -ps3 -psp1 -wii +} libretro_pcsx1_name="PCSX1" libretro_pcsx1_git_url="https://github.com/libretro/pcsx1-libretro.git" libretro_pcsx1_build_makefile="Makefile.libretro" @@ -218,95 +297,137 @@ libretro_pcsx1_configure() { fi } -register_module core "mednafen_gba" -theos_ios +include_core_mednafen_gba() { + register_module core "mednafen_gba" -theos_ios +} libretro_mednafen_gba_name="Mednafen/Beetle GBA" libretro_mednafen_gba_git_url="https://github.com/libretro/beetle-gba-libretro.git" -register_module core "mednafen_lynx" -theos_ios +include_core_mednafen_lynx() { + register_module core "mednafen_lynx" -theos_ios +} libretro_mednafen_lynx_name="Mednafen/Beetle Lynx" libretro_mednafen_lynx_git_url="https://github.com/libretro/beetle-lynx-libretro.git" -register_module core "mednafen_ngp" -theos_ios -qnx +include_core_mednafen_ngp() { + register_module core "mednafen_ngp" -theos_ios -qnx +} libretro_mednafen_ngp_name="Mednafen/Beetle NeoPop" libretro_mednafen_ngp_git_url="https://github.com/libretro/beetle-ngp-libretro.git" -register_module core "mednafen_pce_fast" -theos_ios +include_core_mednafen_pce_fast() { + register_module core "mednafen_pce_fast" -theos_ios +} libretro_mednafen_pce_fast_name="Mednafen/Beetle PCE FAST" libretro_mednafen_pce_fast_git_url="https://github.com/libretro/beetle-pce-fast-libretro.git" -register_module core "mednafen_supergrafx" -theos_ios +include_core_mednafen_supergrafx() { + register_module core "mednafen_supergrafx" -theos_ios +} libretro_mednafen_supergrafx_name="Mednafen/Beetle SuperGrafx" libretro_mednafen_supergrafx_git_url="https://github.com/libretro/beetle-supergrafx-libretro.git" -register_module core "rustation" -theos_ios -ngc -psp1 -libretro_rustation_name="Rustation" -libretro_rustation_git_url="https://github.com/libretro/rustation-libretro.git" - -register_module core "mednafen_psx" -theos_ios -ngc -psp1 +include_core_mednafen_psx() { + register_module core "mednafen_psx" -theos_ios -ngc -psp1 +} libretro_mednafen_psx_name="Mednafen/Beetle PSX" libretro_mednafen_psx_git_url="https://github.com/libretro/beetle-psx-libretro.git" -register_module core "mednafen_saturn" -theos_ios -ngc -psp1 +include_core_mednafen_saturn() { + register_module core "mednafen_saturn" -theos_ios -ngc -psp1 +} libretro_mednafen_saturn_name="Mednafen/Beetle Saturn" libretro_mednafen_saturn_git_url="https://github.com/libretro/beetle-saturn-libretro.git" -register_module core "mednafen_pcfx" -theos_ios +include_core_mednafen_pcfx() { + register_module core "mednafen_pcfx" -theos_ios +} libretro_mednafen_pcfx_name="Mednafen/Beetle PC-FX" libretro_mednafen_pcfx_git_url="https://github.com/libretro/beetle-pcfx-libretro.git" -register_module core "mednafen_snes" -theos_ios +include_core_mednafen_snes() { + register_module core "mednafen_snes" -theos_ios +} libretro_mednafen_snes_name="Mednafen/Beetle bsnes" libretro_mednafen_snes_git_url="https://github.com/libretro/beetle-bsnes-libretro.git" -register_module core "mednafen_vb" -theos_ios +include_core_mednafen_vb() { + register_module core "mednafen_vb" -theos_ios +} libretro_mednafen_vb_name="Mednafen/Beetle VB" libretro_mednafen_vb_git_url="https://github.com/libretro/beetle-vb-libretro.git" -register_module core "mednafen_wswan" -theos_ios -psp1 +include_core_mednafen_wswan() { + register_module core "mednafen_wswan" -theos_ios -psp1 +} libretro_mednafen_wswan_name="Mednafen/Beetle WonderSwan" libretro_mednafen_wswan_git_url="https://github.com/libretro/beetle-wswan-libretro.git" -register_module core "scummvm" -theos_ios -ngc -ps3 -psp1 -wii +include_core_rustation() { + register_module core "rustation" -theos_ios -ngc -psp1 +} +libretro_rustation_name="Rustation" +libretro_rustation_git_url="https://github.com/libretro/rustation-libretro.git" + +include_core_scummvm() { + register_module core "scummvm" -theos_ios -ngc -ps3 -psp1 -wii +} libretro_scummvm_name="ScummVM" libretro_scummvm_git_url="https://github.com/libretro/scummvm.git" libretro_scummvm_build_subdir="backends/platform/libretro/build" -register_module core "yabause" -theos_ios -ngc -ps3 -psp1 -qnx -wii +include_core_yabause() { + register_module core "yabause" -theos_ios -ngc -ps3 -psp1 -qnx -wii +} libretro_yabause_name="Yabause" libretro_yabause_git_url="https://github.com/libretro/yabause.git" libretro_yabause_build_subdir="libretro" -register_module core "dosbox" -ngc -ps3 -psp1 -wii +include_core_dosbox() { + register_module core "dosbox" -ngc -ps3 -psp1 -wii +} libretro_dosbox_name="DOSBox" libretro_dosbox_git_url="https://github.com/libretro/dosbox-libretro.git" libretro_dosbox_makefile="Makefile.libretro" -register_module core "virtualjaguar" -ngc -ps3 -psp1 -wii +include_core_virtualjaguar() { + register_module core "virtualjaguar" -ngc -ps3 -psp1 -wii +} libretro_virtualjaguar_name="Virtual Jaguar" libretro_virtualjaguar_git_url="https://github.com/libretro/virtualjaguar-libretro.git" libretro_virtualjaguar_makefile="Makefile" -register_module core "mame2000" -theos_ios -ngc -psp1 -wii +include_core_mame2000() { + register_module core "mame2000" -theos_ios -ngc -psp1 -wii +} libretro_mame2000_name="MAME 2000 (0.37b5)" libretro_mame2000_git_url="https://github.com/libretro/mame2000-libretro.git" libretro_mame2000_makefile="Makefile" -register_module core "mame2003" -theos_ios -ngc -psp1 -wii +include_core_mame2003() { + register_module core "mame2003" -theos_ios -ngc -psp1 -wii +} libretro_mame2003_name="MAME 2003 (0.78)" libretro_mame2003_git_url="https://github.com/libretro/mame2003-libretro.git" libretro_mame2003_makefile="Makefile" -register_module core "mame2010" +include_core_mame2010() { + register_module core "mame2010" +} libretro_mame2010_name="MAME 2010 (0.139)" libretro_mame2010_git_url="https://github.com/libretro/mame2010-libretro.git" libretro_mame2010_makefile="Makefile" -register_module core "mame2014" -theos_ios -ngc -psp1 -wii +include_core_mame2014() { + register_module core "mame2014" -theos_ios -ngc -psp1 -wii +} libretro_mame2014_name="MAME 2014 (0.159)" libretro_mame2014_git_url="https://github.com/libretro/mame2014-libretro.git" libretro_mame2014_makefile="Makefile" -register_module core "mame" -theos_ios -ngc -ps3 -psp1 -qnx -wii +include_core_mame() { + register_module core "mame" -theos_ios -ngc -ps3 -psp1 -qnx -wii +} libretro_mame_name="MAME (git)" libretro_mame_git_url="https://github.com/libretro/mame.git" libretro_mame_build_makefile=Makefile.libretro @@ -314,46 +435,62 @@ libretro_mame_build_compiler="REALCC=\"${CC:-cc}\" CC=\"${CXX:-c++}\"" libretro_mame_build_makefile_targets="TARGET=\"mame\"" libretro_mame_build_cores="mame" -register_module core "ffmpeg" -ios -theos_ios -osx -ngc -ps3 -psp1 -qnx -wii +include_core_ffmpeg() { + register_module core "ffmpeg" -ios -theos_ios -osx -ngc -ps3 -psp1 -qnx -wii +} libretro_ffmpeg_name="FFmpeg" libretro_ffmpeg_git_url="https://github.com/libretro/FFmpeg.git" libretro_ffmpeg_build_subdir="libretro" libretro_ffmpeg_build_opengl="optional" -register_module core "bsnes_cplusplus98" -theos_ios -ngc -ps3 -psp1 -wii +include_core_bsnes_cplusplus98() { + register_module core "bsnes_cplusplus98" -theos_ios -ngc -ps3 -psp1 -wii +} libretro_bsnes_cplusplus98_name="bsnes C++98 (v0.85)" libretro_bsnes_cplusplus98_git_url="https://github.com/libretro/bsnes-libretro-cplusplus98.git" libretro_bsnes_cplusplus98_build_products="out" -register_module core "bsnes_mercury_accuracy" -theos_ios -ngc -sncps3 -ps3 -psp1 -qnx -wii +include_core_bsnes_mercury_accuracy() { + register_module core "bsnes_mercury_accuracy" -theos_ios -ngc -sncps3 -ps3 -psp1 -qnx -wii +} libretro_bsnes_mercury_accuracy_name="bsnes/higan Mercury (Accuracy)" libretro_bsnes_mercury_accuracy_git_url="https://github.com/libretro/bsnes-mercury.git" libretro_bsnes_mercury_accuracy_build_args="compiler=\"${CXX11}\" profile=\"accuracy\"" libretro_bsnes_mercury_accuracy_build_products="out" -register_module core "bsnes_mercury_balanced" -theos_ios -ngc -sncps3 -ps3 -psp1 -qnx -wii +include_core_bsnes_mercury_balanced() { + register_module core "bsnes_mercury_balanced" -theos_ios -ngc -sncps3 -ps3 -psp1 -qnx -wii +} libretro_bsnes_mercury_balanced_name="bsnes/higan Mercury (Balanced)" libretro_bsnes_mercury_balanced_git_url="https://github.com/libretro/bsnes-mercury.git" libretro_bsnes_mercury_balanced_build_args="compiler=\"${CXX11}\" profile=\"balanced\"" libretro_bsnes_mercury_balanced_build_products="out" -register_module core "bsnes_mercury_performance" -theos_ios -ngc -sncps3 -ps3 -psp1 -qnx -wii +include_core_bsnes_mercury_performance() { + register_module core "bsnes_mercury_performance" -theos_ios -ngc -sncps3 -ps3 -psp1 -qnx -wii +} libretro_bsnes_mercury_performance_name="bsnes/higan Mercury (Performance)" libretro_bsnes_mercury_performance_git_url="https://github.com/libretro/bsnes-mercury.git" libretro_bsnes_mercury_performance_build_args="compiler=\"${CXX11}\" profile=\"performance\"" libretro_bsnes_mercury_performance_build_products="out" -register_module core "picodrive" -theos_ios -ngc -ps3 -wii +include_core_picodrive() { + register_module core "picodrive" -theos_ios -ngc -ps3 -wii +} libretro_picodrive_name="Picodrive" libretro_picodrive_git_url="https://github.com/libretro/picodrive.git" libretro_picodrive_git_submodules="yes" libretro_picodrive_build_makefile="Makefile.libretro" -register_module core "tgbdual" -ngc -ps3 -wii +include_core_tgbdual() { + register_module core "tgbdual" -ngc -ps3 -wii +} libretro_tgbdual_name="TGB Dual" libretro_tgbdual_git_url="https://github.com/libretro/tgbdual-libretro.git" -register_module core "glupen64" -theos_ios -ngc -ps3 -psp1 -wii +include_core_glupen64() { + register_module core "glupen64" -theos_ios -ngc -ps3 -psp1 -wii +} libretro_glupen64_name="GLupeN64" libretro_glupen64_git_url="https://github.com/loganmc10/GLupeN64.git" libretro_glupen64_build_platform="$FORMAT_COMPILER_TARGET_ALT" @@ -367,7 +504,9 @@ libretro_glupen64_configure() { fi } -register_module core "mupen64plus" -theos_ios -ngc -ps3 -psp1 -wii +include_core_mupen64plus() { + register_module core "mupen64plus" -theos_ios -ngc -ps3 -psp1 -wii +} libretro_mupen64plus_name="Mupen64Plus" libretro_mupen64plus_git_url="https://github.com/libretro/mupen64plus-libretro.git" libretro_mupen64plus_build_platform="$FORMAT_COMPILER_TARGET_ALT" @@ -381,110 +520,151 @@ libretro_mupen64Plus_configure() { fi } -register_module core "dinothawr" -theos_ios -ngc -ps3 -psp1 -qnx -wii +include_core_dinothawr() { + register_module core "dinothawr" -theos_ios -ngc -ps3 -psp1 -qnx -wii +} libretro_dinothawr_name="Dinothawr" libretro_dinothawr_git_url="https://github.com/libretro/Dinothawr.git" libretro_dinothawr_build_platform="$FORMAT_COMPILER_TARGET_ALT" -register_module core "3dengine" -ngc -sncps3 -ps3 -psp1 -wii +include_core_3dengine() { + register_module core "3dengine" -ngc -sncps3 -ps3 -psp1 -wii +} libretro_3dengine_name="3DEngine" libretro_3dengine_git_url="https://github.com/libretro/libretro-3dengine.git" libretro_3dengine_build_opengl=yes -register_module core "remotejoy" -ngc -ps3 -psp1 -qnx -wii +include_core_remotejoy() { + register_module core "remotejoy" -ngc -ps3 -psp1 -qnx -wii +} libretro_remotejoy_name="RemoteJoy" libretro_remotejoy_git_url="https://github.com/libretro/libretro-remotejoy.git" libretro_remotejoy_build_makefile="Makefile" -register_module core "bluemsx" -ps3 +include_core_bluemsx() { + register_module core "bluemsx" -ps3 +} libretro_bluemsx_name="blueMSX" libretro_bluemsx_git_url="https://github.com/libretro/blueMSX-libretro.git" libretro_bluemsx_build_makefile="Makefile.libretro" -register_module core "fmsx" -ps3 +include_core_fmsx() { + register_module core "fmsx" -ps3 +} libretro_fmsx_name="fMSX" libretro_fmsx_git_url="https://github.com/libretro/fmsx-libretro.git" -register_module core "2048" -ngc -sncps3 -ps3 -wii +include_core_2048() { + register_module core "2048" -ngc -sncps3 -ps3 -wii +} libretro_2048_git_url="https://github.com/libretro/libretro-2048.git" libretro_2048_build_makefile="Makefile.libretro" -register_module core "vecx" -ngc -ps3 -wii +include_core_vecx() { + register_module core "vecx" -ngc -ps3 -wii +} libretro_vecx_git_url="https://github.com/libretro/libretro-vecx.git" libretro_vecx_build_makefile="Makefile.libretro" -register_module core "ppsspp" -ios -theos_ios -ngc -ps3 -psp1 -qnx -wii +include_core_ppsspp() { + register_module core "ppsspp" -ios -theos_ios -ngc -ps3 -psp1 -qnx -wii +} libretro_ppsspp_name="PPSSPP" libretro_ppsspp_git_url="https://github.com/libretro/ppsspp.git" libretro_ppsspp_git_submodules="yes" libretro_ppsspp_build_subdir="libretro" libretro_ppsspp_build_opengl="yes" -register_module core "psp1" -ios -theos_ios -ngc -ps3 -psp1 -qnx -wii +include_core_psp1() { + register_module core "psp1" -ios -theos_ios -ngc -ps3 -psp1 -qnx -wii +} libretro_psp1_name="PSP1" libretro_psp1_git_url="https://github.com/libretro/PSP1.git" libretro_psp1_git_submodules="yes" libretro_psp1_build_subdir="libretro" libretro_psp1_build_opengl="yes" -register_module core "prosystem" -ngc -ps3 -wii +include_core_prosystem() { + register_module core "prosystem" -ngc -ps3 -wii +} libretro_prosystem_name="ProSystem" libretro_prosystem_git_url="https://github.com/libretro/prosystem-libretro.git" -register_module core "o2em" -ngc -ps3 -wii +include_core_o2em() { + register_module core "o2em" -ngc -ps3 -wii +} libretro_o2em_name="O2EM" libretro_o2em_git_url="https://github.com/libretro/libretro-o2em.git" -register_module core "4do" -ngc -sncps3 -ps3 -psp1 -wii +include_core_4do() { + register_module core "4do" -ngc -sncps3 -ps3 -psp1 -wii +} libretro_4do_name="4DO" libretro_4do_git_url="https://github.com/libretro/4do-libretro.git" - -register_module core "stonesoup" -ngc -ps3 -psp1 -qnx -wii +include_core_stonesoup() { + register_module core "stonesoup" -ngc -ps3 -psp1 -qnx -wii +} libretro_stonesoup_name="Dungeon Crawl Stone Soup" libretro_stonesoup_git_url="https://github.com/libretro/crawl-ref.git" libretro_stonesoup_git_submodules="clone" libretro_stonesoup_build_subdir="crawl-ref" libretro_stonesoup_build_makefile="Makefile.libretro" -register_module core "hatari" -theos_ios -ngc -ps3 -psp1 -qnx -wii +include_core_hatari() { + register_module core "hatari" -theos_ios -ngc -ps3 -psp1 -qnx -wii +} libretro_hatari_name="Hatari" libretro_hatari_git_url="https://github.com/libretro/hatari.git" libretro_hatari_build_makefile="Makefile.libretro" -register_module core "tempgba" none +include_core_tempgba() { + register_module core "tempgba" none +} libretro_tempgba_name="TempGBA" libretro_tempgba_git_url="https://github.com/libretro/TempGBA-libretro.git" libretro_tempgba_build_rule=none # NEED A BUILD RULE -register_module core "gpsp" -ngc -sncps3 -ps3 -psp1 -wii +include_core_gpsp() { + register_module core "gpsp" -ngc -sncps3 -ps3 -psp1 -wii +} libretro_gpsp_name="gpSP" libretro_gpsp_git_url="https://github.com/libretro/gpsp.git" -register_module core "emux" -theos_ios -ngc -sncps3 -ps3 -psp1 -qnx -wii +include_core_emux() { + register_module core "emux" -theos_ios -ngc -sncps3 -ps3 -psp1 -qnx -wii +} libretro_emux_name="Emux" libretro_emux_git_url="https://github.com/libretro/emux.git" libretro_emux_build_subdir=libretro libretro_emux_build_cores="emux_chip8 emux_gb emux_nes emux_sms" -register_module core "fuse" -theos_ios -ngc -sncps3 -ps3 -psp1 -qnx -wii +include_core_fuse() { + register_module core "fuse" -theos_ios -ngc -sncps3 -ps3 -psp1 -qnx -wii +} libretro_fuse_name="Fuse" libretro_fuse_git_url="https://github.com/libretro/fuse-libretro.git" libretro_fuse_build_makefile="Makefile.libretro" libretro_fuse_build_platform="$FORMAT_COMPILER_TARGET_ALT" -register_module core "gw" -theos_ios -ngc -sncps3 -ps3 -psp1 -qnx -wii +include_core_gw() { + register_module core "gw" -theos_ios -ngc -sncps3 -ps3 -psp1 -qnx -wii +} libretro_gw_name="Game & Watch" libretro_gw_git_url="https://github.com/libretro/gw-libretro.git" libretro_gw_git_submodules="yes" libretro_gw_build_makefile="Makefile.libretro" -register_module core "81" -theos_ios -ngc -sncps3 -ps3 -psp1 -qnx -wii +include_core_81() { + register_module core "81" -theos_ios -ngc -sncps3 -ps3 -psp1 -qnx -wii +} libretro_81_name="81" libretro_81_git_url="https://github.com/libretro/81-libretro.git" libretro_81_build_makefile="Makefile.libretro" -register_module core "lutro" -theos_ios -ngc -ps3 -psp1 -qnx -wii +include_core_lutro() { + register_module core "lutro" -theos_ios -ngc -ps3 -psp1 -qnx -wii +} libretro_lutro_name="Lutro" libretro_lutro_git_url="https://github.com/libretro/libretro-lutro.git" libretro_lutro_build_makefile="Makefile" diff --git a/rules.d/devkit-rules.sh b/rules.d/devkit-rules.sh index e4f5ca01f..4b5338a21 100644 --- a/rules.d/devkit-rules.sh +++ b/rules.d/devkit-rules.sh @@ -1,31 +1,43 @@ # vim: set ts=3 sw=3 noet ft=sh : bash -register_module devkit "manifest" any +include_devkit_manifest () { + register_module devkit "manifest" any +} libretro_manifest_name="Devkit: libretro-manifest" libretro_manifest_dir="libretro-devkit/libretro-manifest" libretro_manifest_git_url="https://github.com/libretro/libretro-manifest.git" -register_module devkit "dat_pull" any +include_devkit_dat_pull () { + register_module devkit "dat_pull" any +} libretro_dat_pull_name="Devkit: libretro-dat-pull" libretro_dat_pull_dir="libretro-devkit/libretro-dat-pull" libretro_dat_pull_git_url="https://github.com/libretro/libretro-dat-pull.git" -register_module devkit "ari64_dynarec" any +include_devkit_ari64_dynarec () { + register_module devkit "ari64_dynarec" any +} libretro_ari64_dynarec_name="Devkit: Ari64-dynarec" libretro_ari64_dynarec_dir="libretro-devkit/libretro-ari64" libretro_ari64_dynarec_git_url="https://github.com/libretro/ari64.git" -register_module devkit "common" any +include_devkit_common () { + register_module devkit "common" any +} libretro_common_name="Devkit: libretro-common" libretro_common_dir="libretro-devkit/libretro-common" libretro_common_git_url="https://github.com/libretro/libretro-common.git" -register_module devkit "samples" any +include_devkit_samples () { + register_module devkit "samples" any +} libretro_samples_name="Devkit: libretro-samples" libretro_samples_dir="libretro-devkit/libretro-samples" libretro_samples_git_url="https://github.com/libretro/libretro-samples.git" -register_module devkit "deps" any +include_devkit_deps () { + register_module devkit "deps" any +} libretro_deps_name="Devkit: libretro-deps" libretro_deps_dir="libretro-devkit/libretro-deps" libretro_deps_git_url="https://github.com/libretro/libretro-deps.git" diff --git a/rules.d/lutro-rules.sh b/rules.d/lutro-rules.sh index e8212b1c3..a637239f9 100644 --- a/rules.d/lutro-rules.sh +++ b/rules.d/lutro-rules.sh @@ -1,36 +1,50 @@ # vim: set ts=3 sw=3 noet ft=sh : bash -register_module lutro "lutro_sienna" any +include_lutro_sienna () { + register_module lutro "lutro_sienna" any +} libretro_lutro_sienna_name="Lutro-Sienna" libretro_lutro_sienna_git_url="https://github.com/libretro/lutro-sienna.git" libretro_lutro_sienna_build_rule=none -register_module lutro "lutro_platformer" any +include_lutro_platformer () { + register_module lutro "lutro_platformer" any +} libretro_lutro_platformer_name="Lutro-Platformer" libretro_lutro_platformer_git_url="https://github.com/libretro/lutro-platformer.git" libretro_lutro_platformer_build_rule=none -register_module lutro "lutro_pong" any +include_lutro_pong () { + register_module lutro "lutro_pong" any +} libretro_lutro_pong_name="Lutro-Pong" libretro_lutro_pong_git_url="https://github.com/libretro/lutro-pong.git" libretro_lutro_pong_build_rule=none -register_module lutro "lutro_tetris" any +include_lutro_tetris () { + register_module lutro "lutro_tetris" any +} libretro_lutro_tetris_name="Lutro-tetris" libretro_lutro_tetris_git_url="https://github.com/libretro/lutro-tetris.git" libretro_lutro_tetris_build_rule=none -register_module lutro "lutro_snake" any +include_lutro_snake () { + register_module lutro "lutro_snake" any +} libretro_lutro_snake_name="Lutro-snake" libretro_lutro_snake_git_url="https://github.com/libretro/lutro-snake.git" libretro_lutro_snake_build_rule=none -register_module lutro "lutro_iyfct" any +include_lutro_iyfct () { + register_module lutro "lutro_iyfct" any +} libretro_lutro_iyfct_name="Lutro-iyfct" libretro_lutro_iyfct_git_url="https://github.com/libretro/lutro-iyfct.git" libretro_lutro_iyfct_build_rule=none -register_module lutro "lutro_game_of_life" any +include_lutro_game_of_life () { + register_module lutro "lutro_game_of_life" any +} libretro_lutro_game_of_life_name="Lutro-Game-of-Life" libretro_lutro_game_of_life_git_url="https://github.com/libretro/lutro-game-of-life.git" libretro_lutro_game_of_life_build_rule=none