--- /dev/null
+name: CI (Linux)
+on: [push, pull_request]
+jobs:
+ build-libretro:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ submodules: true
+ - name: make
+ run: make -j$(getconf _NPROCESSORS_ONLN) -f Makefile.libretro
+
+ build-libretro-win32:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ submodules: true
+ - name: Install dependencies
+ run: |
+ sudo apt-get update -qq
+ sudo apt-get install -y gcc-mingw-w64
+ - name: make
+ run: make -j$(getconf _NPROCESSORS_ONLN) -f Makefile.libretro platform=win32 CC=x86_64-w64-mingw32-gcc
+
+ build-libretro-android:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ submodules: true
+ - name: make
+ run: $(ANDROID_NDK_HOME)/ndk-build -j$(getconf _NPROCESSORS_ONLN) --no-print-directory -C jni/
name: CI (Linux arm64)
on: [push, pull_request]
jobs:
- build-linux:
+ build-linux-arm64:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: configure
run: DUMP_CONFIG_LOG=1 CROSS_COMPILE=aarch64-linux-gnu- SDL_CONFIG=usr/bin/sdl-config PATH=$PATH:usr/bin CFLAGS='-Iusr/include/ -Iusr/include/SDL' LDFLAGS='-Lusr/lib/aarch64-linux-gnu/ -Llib/aarch64-linux-gnu/ -Wl,-rpath-link=lib/aarch64-linux-gnu/,-rpath-link=usr/lib/aarch64-linux-gnu/,-rpath-link=usr/lib/aarch64-linux-gnu/pulseaudio/' ./configure
- name: make
- run: make
+ run: make -j$(getconf _NPROCESSORS_ONLN)
name: CI (Linux armhf)
on: [push, pull_request]
jobs:
- build-linux:
+ build-linux-armhf:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: configure
run: DUMP_CONFIG_LOG=1 CROSS_COMPILE=arm-linux-gnueabihf- SDL_CONFIG=usr/bin/sdl-config PATH=$PATH:usr/bin CFLAGS='-Iusr/include/ -Iusr/include/SDL' LDFLAGS='-Lusr/lib/arm-linux-gnueabihf/ -Llib/arm-linux-gnueabihf/ -Wl,-rpath-link=lib/arm-linux-gnueabihf/,-rpath-link=usr/lib/arm-linux-gnueabihf/,-rpath-link=usr/lib/arm-linux-gnueabihf/pulseaudio/' ./configure
- name: make
- run: make
+ run: make -j$(getconf _NPROCESSORS_ONLN)
LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
$(shell cd "$(LOCAL_PATH)" && ((git describe --always || echo) | sed -e 's/.*/#define REV "\0"/' > ../frontend/revision.h_))
$(shell cd "$(LOCAL_PATH)" && (diff -q ../frontend/revision.h_ ../frontend/revision.h > /dev/null 2>&1 || cp ../frontend/revision.h_ ../frontend/revision.h))
DEPS_DIR := $(ROOT_DIR)/deps
LIBRETRO_COMMON := $(DEPS_DIR)/libretro-common
EXTRA_INCLUDES :=
+COREFLAGS :=
+SOURCES_ASM :=
# core
SOURCES_C := $(CORE_DIR)/cdriso.c \
$(LCHDR_ZSTD)/decompress/zstd_ddict.c \
$(LCHDR_ZSTD)/decompress/zstd_decompress_block.c \
$(LCHDR_ZSTD)/decompress/zstd_decompress.c
-SOURCES_ASM :=
EXTRA_INCLUDES += $(LCHDR)/include $(LCHDR_LZMA)/include $(LCHDR_ZSTD)
COREFLAGS += -DHAVE_CHD -DZ7_ST -DZSTD_DISABLE_ASM
ifeq (,$(call gte,$(APP_PLATFORM_LEVEL),18))
COREFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif
-include $(CLEAR_VARS)
LOCAL_MODULE := retro
LOCAL_SRC_FILES := $(SOURCES_C) $(SOURCES_ASM)
LOCAL_CFLAGS := $(COREFLAGS)
LOCAL_C_INCLUDES := $(ROOT_DIR)/include
LOCAL_C_INCLUDES += $(DEPS_DIR)/crypto
LOCAL_C_INCLUDES += $(EXTRA_INCLUDES)
-LOCAL_LDFLAGS += -Wl,-version-script=$(FRONTEND_DIR)/libretro-version-script
+LOCAL_LDFLAGS := -Wl,-version-script=$(FRONTEND_DIR)/libretro-version-script
LOCAL_LDFLAGS += -Wl,--script=$(FRONTEND_DIR)/libretro-extern.T
LOCAL_LDFLAGS += -Wl,--gc-sections
LOCAL_LDLIBS := -lz -llog