diff --git a/cmake/blackberry.cmake b/cmake/blackberry.cmake new file mode 100644 index 00000000..f1e9d585 --- /dev/null +++ b/cmake/blackberry.cmake @@ -0,0 +1,13 @@ +set(CMAKE_C_COMPILER "qcc") +# -D_SSIZE_T_DEFINED is only for minizip dependency of TIC-80 +set(CMAKE_C_FLAGS "-V4.8.3,gcc_ntoarmv7le_gpp -std=gnu99 -D_SSIZE_T_DEFINED") +set(CMAKE_CXX_COMPILER "QCC") +set(CMAKE_CXX_FLAGS "-V4.8.3,gcc_ntoarmv7le_gpp -std=gnu++11") +set(CMAKE_AR "arm-unknown-nto-qnx8.0.0eabi-ar") + +set(CMAKE_RANLIB "arm-unknown-nto-qnx8.0.0eabi-ranlib") +set(CMAKE_SYSTEM_PROCESSOR arm) +set(CMAKE_SYSTEM_NAME QNX) +set(CMAKE_CROSSCOMPILING ON) +set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-fPIC") +set(CMAKE_C_LINK_FLAGS "-fPIC") diff --git a/libretro-buildbot-recipe.sh b/libretro-buildbot-recipe.sh index f326844e..e2c19a60 100755 --- a/libretro-buildbot-recipe.sh +++ b/libretro-buildbot-recipe.sh @@ -388,6 +388,7 @@ build_libretro_generic_makefile() { vita ) EXTRAARGS="-DCMAKE_TOOLCHAIN_FILE=${WORK}/cmake/vita.cmake" ;; psp|psp1 ) EXTRAARGS="-DCMAKE_TOOLCHAIN_FILE=${WORK}/cmake/psp1.cmake" ;; libnx ) EXTRAARGS="-DCMAKE_TOOLCHAIN_FILE=${WORK}/cmake/libnx.cmake" ;; + qnx ) EXTRAARGS="-DCMAKE_TOOLCHAIN_FILE=${WORK}/cmake/blackberry.cmake" ;; * ) EXTRAARGS="" ;; esac diff --git a/recipes/blackberry/cores-qnx-generic b/recipes/blackberry/cores-qnx-generic index 57927dc6..712cfc55 100644 --- a/recipes/blackberry/cores-qnx-generic +++ b/recipes/blackberry/cores-qnx-generic @@ -65,6 +65,7 @@ stella libretro-stella https://github.com/stella-emu/stella.git master YES GENER test libretro-samples https://github.com/libretro/libretro-samples.git master YES GENERIC Makefile tests/test tgbdual libretro-tgbdual https://github.com/libretro/tgbdual-libretro.git master YES GENERIC Makefile . theodore libretro-theodore https://github.com/Zlika/theodore.git master YES GENERIC Makefile . +tic80 libretro-tic80 https://github.com/nesbox/TIC-80.git master YES CMAKE Makefile builddir -DBUILD_PLAYER=OFF -DBUILD_SOKOL=OFF -DBUILD_SDL=OFF -DBUILD_DEMO_CARTS=OFF -DBUILD_LIBRETRO=ON tyrquake libretro-tyrquake https://github.com/libretro/tyrquake.git master YES GENERIC Makefile . vba_next libretro-vba_next https://github.com/libretro/vba-next.git master YES GENERIC Makefile.libretro . vbam libretro-vbam https://github.com/libretro/vbam-libretro.git master YES GENERIC Makefile src/libretro