CMake: Fix Android native library build

This commit is contained in:
Connor McLaughlin 2021-05-23 18:00:57 +10:00
parent 70396621e8
commit c9029a88c7
2 changed files with 5 additions and 4 deletions

View file

@ -8,6 +8,7 @@ make_build() {
PLATFORM=$1
OPTIONS=$2
SUFFIX=$3
ZIPFILE=../duckstation_libretro_${PLATFORM}.zip
echo Building for ${PLATFORM}...
@ -19,8 +20,8 @@ make_build() {
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_LIBRETRO_CORE=ON $OPTIONS $ROOTDIR
ninja
rm -f ../duckstation_${PLATFORM}.zip
zip -j ../duckstation_${PLATFORM}.zip duckstation_libretro${SUFFIX}.so
rm -f $ZIPFILE
zip -j $ZIPFILE duckstation_libretro${SUFFIX}.so
cd ..
}

View file

@ -6,11 +6,11 @@ add_subdirectory(common)
add_subdirectory(core)
add_subdirectory(scmversion)
if(BUILD_NOGUI_FRONTEND OR BUILD_QT_FRONTEND)
if(NOT BUILD_LIBRETRO_CORE)
add_subdirectory(frontend-common)
endif()
if(NOT BUILD_LIBRETRO_CORE)
if(NOT BUILD_LIBRETRO_CORE AND NOT ANDROID)
add_subdirectory(common-tests)
if(WIN32)
add_subdirectory(updater)