RetroPie-Setup/scriptmodules/libretrocores/lr-desmume.sh
Jools Wills fb461f2953 lr-desmume - fix building on arm
platform var needs the additional 'unix' keyword since the changes in 3af49d8d5d or else the wrong target platform is used (it tries to include x86 specific code)
2022-08-04 17:20:35 +01:00

53 lines
1.5 KiB
Bash

#!/usr/bin/env bash
# This file is part of The RetroPie Project
#
# The RetroPie Project is the legal property of its developers, whose names are
# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
#
# See the LICENSE.md file at the top-level directory of this distribution and
# at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md
#
rp_module_id="lr-desmume"
rp_module_desc="NDS emu - DESMUME"
rp_module_help="ROM Extensions: .nds .zip\n\nCopy your Nintendo DS roms to $romdir/nds"
rp_module_licence="GPL2 https://raw.githubusercontent.com/libretro/desmume/master/desmume/COPYING"
rp_module_repo="git https://github.com/libretro/desmume.git master"
rp_module_section="exp"
function _params_lr-desmume() {
local params=()
isPlatform "arm" && params+=("platform=unixarmvhardfloat")
isPlatform "aarch64" && params+=("DESMUME_JIT=0")
echo "${params[@]}"
}
function depends_lr-desmume() {
getDepends libpcap-dev libgl1-mesa-dev
}
function sources_lr-desmume() {
gitPullOrClone
}
function build_lr-desmume() {
cd desmume/src/frontend/libretro
make clean
make $(_params_lr-desmume)
md_ret_require="$md_build/desmume/src/frontend/libretro/desmume_libretro.so"
}
function install_lr-desmume() {
md_ret_files=(
'desmume/src/frontend/libretro/desmume_libretro.so'
)
}
function configure_lr-desmume() {
mkRomDir "nds"
defaultRAConfig "nds"
addEmulator 0 "$md_id" "nds" "$md_inst/desmume_libretro.so"
addSystem "nds"
}