diff --git a/debian/control b/debian/control index f063687..e87240c 100644 --- a/debian/control +++ b/debian/control @@ -13,5 +13,5 @@ Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, kodi, kodi-game-libretro Enhances: kodi -Description: 4DO core for kodi's retroplayer - 4DO core for kodi's retroplayer +Description: The 3DO Company - 3DO (4DO) core for kodi's retroplayer + The 3DO Company - 3DO (4DO) core for kodi's retroplayer diff --git a/depends/common/4do/CMakeLists.txt b/depends/common/4do/CMakeLists.txt index cbf72df..9741e79 100644 --- a/depends/common/4do/CMakeLists.txt +++ b/depends/common/4do/CMakeLists.txt @@ -7,6 +7,21 @@ include(ExternalProject) string(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC) +# Jenkins CI jobs can have this env var set +# Use it if available +if(DEFINED ENV{BUILDTHREADS}) + set(build_job_count -j$ENV{BUILDTHREADS}) + message(STATUS "Using $ENV{BUILDTHREADS} threads from ENV var BUILDTHREADS") +else() + # Most likely a non CI build, so do a best attempt just using ProcessorCount + include(ProcessorCount) + ProcessorCount(cpu_count) + if(NOT cpu_count EQUAL 0) + set(build_job_count -j${cpu_count}) + message(STATUS "Using ${cpu_count} threads deduced by ProcessorCount") + endif() +endif() + set(LIBRETRO_BINARY_DIR .) set(LIBRETRO_SONAME 4do_libretro${CMAKE_SHARED_LIBRARY_SUFFIX}) set(LIBRETRO_JNISONAME libretro${CMAKE_SHARED_LIBRARY_SUFFIX}) @@ -23,9 +38,9 @@ if(CORE_SYSTEM_NAME STREQUAL windows) set(MSYSTEM MINGW32) endif() set(BUILD_COMMAND ${MINGW_MAKE} - -j$ENV{NUMBER_OF_PROCESSORS} -C . -f Makefile + ${build_job_count} ${LIBRETRO_DEBUG} GIT_VERSION= MSYSTEM=${MSYSTEM} @@ -35,6 +50,7 @@ elseif(CORE_SYSTEM_NAME STREQUAL linux) set(BUILD_COMMAND $(MAKE) -C . -f Makefile + ${build_job_count} ${LIBRETRO_DEBUG} GIT_VERSION= platform=unix @@ -48,6 +64,7 @@ elseif(CORE_SYSTEM_NAME STREQUAL osx) set(BUILD_COMMAND $(MAKE) -C . -f Makefile + ${build_job_count} ${LIBRETRO_DEBUG} arch=${ARCH} CROSS_COMPILE=1 @@ -67,6 +84,7 @@ elseif(CORE_SYSTEM_NAME STREQUAL ios OR CORE_SYSTEM_NAME STREQUAL darwin_embedde set(BUILD_COMMAND IOSSDK=${CMAKE_OSX_SYSROOT} $(MAKE) -C . -f Makefile + ${build_job_count} ${LIBRETRO_DEBUG} GIT_VERSION= platform=${PLATFORM} @@ -76,6 +94,7 @@ elseif(CORE_SYSTEM_NAME STREQUAL ios OR CORE_SYSTEM_NAME STREQUAL darwin_embedde set(BUILD_COMMAND IOSSDK=${CMAKE_OSX_SYSROOT} $(MAKE) -C . -f Makefile + ${build_job_count} ${LIBRETRO_DEBUG} GIT_VERSION= platform=tvos-arm64 @@ -94,6 +113,7 @@ elseif(CORE_SYSTEM_NAME STREQUAL android) endif() set(BUILD_COMMAND GNUMAKE=$(MAKE) ${NDKROOT}/ndk-build -C jni + ${build_job_count} ${LIBRETRO_DEBUG} APP_ABI=${PLATFORM} APP_SHORT_COMMANDS=true @@ -103,13 +123,12 @@ elseif(CORE_SYSTEM_NAME STREQUAL android) V7NEONOPTIMIZATION=1 && cp ${PROJECT_SOURCE_DIR}/${LIBRETRO_BINARY_DIR}/${PLATFORM}/${LIBRETRO_JNISONAME} ${PROJECT_SOURCE_DIR}/${LIBRETRO_BINARY_DIR}/${LIBRETRO_SONAME}) -elseif(CORE_SYSTEM_NAME STREQUAL rbpi) - message(FATAL_ERROR "${PROJECT_NAME} needs RPi build command in CMakeLists.txt!") elseif(CORE_SYSTEM_NAME STREQUAL freebsd) set(BUILD_COMMAND $(MAKE) -C . -f Makefile - ${LIBRETRO_DEBUG + ${build_job_count} + ${LIBRETRO_DEBUG} GIT_VERSION= platform=unix ) diff --git a/game.libretro.4do/addon.xml.in b/game.libretro.4do/addon.xml.in index 3109565..da2ec61 100644 --- a/game.libretro.4do/addon.xml.in +++ b/game.libretro.4do/addon.xml.in @@ -1,7 +1,7 @@ diff --git a/game.libretro.4do/resources/language/resource.language.en_gb/strings.po b/game.libretro.4do/resources/language/resource.language.en_gb/strings.po index d74564e..5c31518 100644 --- a/game.libretro.4do/resources/language/resource.language.en_gb/strings.po +++ b/game.libretro.4do/resources/language/resource.language.en_gb/strings.po @@ -24,9 +24,7 @@ msgctxt "Addon Description" msgid "4DO emulates the 3DO Interactive Multiplayer video game system, often called simply the 3DO.[CR][CR]4DO is based on the FreeDO source code." msgstr "" -msgctxt "#30000" -msgid "Settings" -msgstr "" +# Empty string with ID 30000 msgctxt "#30001" msgid "BIOS (rom1)" diff --git a/game.libretro.4do/resources/settings.xml b/game.libretro.4do/resources/settings.xml index 88f02ad..dfe725b 100644 --- a/game.libretro.4do/resources/settings.xml +++ b/game.libretro.4do/resources/settings.xml @@ -1,6 +1,6 @@ - +