mirror of
https://github.com/libretro/libretro-super
synced 2024-12-01 04:03:00 +00:00
refactor core output directory creation
also fix an oversight in the bsnes build
This commit is contained in:
parent
7af6faa7c0
commit
bd7f9ce808
@ -786,23 +786,13 @@ create_dist_dir()
|
|||||||
mkdir $RARCH_DIST_DIR
|
mkdir $RARCH_DIST_DIR
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d $RARCH_DIST_DIR/armeabi-v7a ]; then
|
for a in "${ABIS[@]}"; do
|
||||||
echo "Directory $RARCH_DIST_DIR/armeabi-v7a already exists, skipping creation..."
|
if [ -d $RARCH_DIST_DIR/${a} ]; then
|
||||||
else
|
echo "Directory $RARCH_DIST_DIR/${a} already exists, skipping creation..."
|
||||||
mkdir $RARCH_DIST_DIR/armeabi-v7a
|
else
|
||||||
fi
|
mkdir $RARCH_DIST_DIR/${a}
|
||||||
|
fi
|
||||||
if [ -d $RARCH_DIST_DIR/mips ]; then
|
done
|
||||||
echo "Directory $RARCH_DIST_DIR/mips already exists, skipping creation..."
|
|
||||||
else
|
|
||||||
mkdir $RARCH_DIST_DIR/mips
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d $RARCH_DIST_DIR/x86 ]; then
|
|
||||||
echo "Directory $RARCH_DIST_DIR/x86 already exists, skipping creation..."
|
|
||||||
else
|
|
||||||
mkdir $RARCH_DIST_DIR/x86
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
build_libretro_bsnes()
|
build_libretro_bsnes()
|
||||||
@ -814,11 +804,11 @@ build_libretro_bsnes()
|
|||||||
echo "=== Building ${CORENAME} ==="
|
echo "=== Building ${CORENAME} ==="
|
||||||
cd libretro-${CORENAME}/
|
cd libretro-${CORENAME}/
|
||||||
cd perf/target-libretro/jni
|
cd perf/target-libretro/jni
|
||||||
if [ -z "${NOCLEAN}" ]; then
|
|
||||||
ndk-build clean APP_ABI=${TARGET_ABIS} || die "Failed to clean ${CORENAME}"
|
|
||||||
fi
|
|
||||||
ndk-build -j$JOBS APP_ABI=${TARGET_ABIS} || die "Failed to build ${CORENAME}"
|
|
||||||
for a in "${ABIS[@]}"; do
|
for a in "${ABIS[@]}"; do
|
||||||
|
if [ -z "${NOCLEAN}" ]; then
|
||||||
|
ndk-build clean APP_ABI=${a} || die "Failed to clean ${a} ${CORENAME}"
|
||||||
|
fi
|
||||||
|
ndk-build -j$JOBS APP_ABI=${a} || die "Failed to build ${a} ${CORENAME}"
|
||||||
cp ../libs/${a}/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/bsnes_performance_libretro${FORMAT}.${FORMAT_EXT}
|
cp ../libs/${a}/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/bsnes_performance_libretro${FORMAT}.${FORMAT_EXT}
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user