Files
RetroArch/samples/gfx/android_image_queue/Makefile
LibretroAdmin a4172fdafd CI: the lanes Ubuntu 26.04 broke, and the formats warnings
Built with ffmpeg 8, libaom 3.13, x265 4.1, glibc 2.43 and clang 21,
five lanes failed on the 26.04 runners:

- AV1 fixtures: a monochrome sequence comes out full range with no
  matrix whatever is asked for; the oracle takes the colour ffprobe
  reads instead of assuming it.
- Preview audio oracle: ffmpeg 8 leaves a timestamp gap at every seam
  of a -stream_loop copy, which the mixer honours and ffmpeg's raw
  decode does not. trailing_large loops its picture and encodes its
  sound as one track.
- rh265 multi-slice oracle: x265 4.1 writes unreadable slice headers
  when two slices are encoded on several threads; those cases encode
  on one worker.
- vkms: the kernel follows the runner's own release, its modules may
  sit under /usr/lib/modules, and modules-extra is fetched only where
  it exists.
- clang -std=c89 -pedantic: glibc's const-generic strchr/strstr under
  _GNU_SOURCE are _Generic; -Wno-c11-extensions goes wherever
  -Wno-c99-extensions already does.

ci_paths filters a file at the top of a samples tree by its own path.
rh264 and rh265 lose the parameters no instantiation reads, the 8-bit
H.264 kernels mark the depth they ignore, and the AV1 WebM fixtures
leave out the MP4 box writer they never use.
2026-11-05 17:36:02 +01:00

34 lines
1.6 KiB
Makefile

CC ?= cc
CFLAGS += -DHAVE_THREADS -O1 -g1 -std=c89 -pedantic -Wall -Wextra -Werror -Wno-long-long -Wframe-larger-than=2048 -I../../../libretro-common/include
ifneq ($(findstring clang,$(shell $(CC) --version 2>/dev/null)),)
# boolean.h uses the compiler _Bool spelling in C89 builds.
CFLAGS += -Wno-c99-extensions -Wno-c11-extensions
endif
ifneq ($(SANITIZER),)
CFLAGS += -fsanitize=$(SANITIZER) -fno-omit-frame-pointer
LDFLAGS += -fsanitize=$(SANITIZER)
endif
ifeq ($(OS),Windows_NT)
CFLAGS += -DANDROID_IMAGE_QUEUE_TEST_NO_FENCES
endif
THREAD_CFLAGS := -DHAVE_THREADS -D_POSIX_C_SOURCE=200809L -O1 -g1 -I../../../libretro-common/include
ifneq ($(SANITIZER),)
THREAD_CFLAGS += -fsanitize=$(SANITIZER) -fno-omit-frame-pointer
endif
all: test ndk_test thread_test
test: test.c ../../../gfx/common/android_image_queue.c ../../../gfx/common/android_image_queue.h
$(CC) $(CFLAGS) test.c ../../../gfx/common/android_image_queue.c -o $@ $(LDFLAGS)
ndk_test: ndk_test.c android_image_ndk_test_types.h ../../../gfx/common/android_image_ndk.c ../../../gfx/common/android_image_queue.c
$(CC) $(CFLAGS) -DHAVE_DYLIB -DANDROID_IMAGE_NDK_TEST -I. ndk_test.c ../../../gfx/common/android_image_ndk.c ../../../gfx/common/android_image_queue.c -o $@ $(LDFLAGS)
rthreads.o: ../../../libretro-common/rthreads/rthreads.c
$(CC) $(THREAD_CFLAGS) -c $< -o $@
thread_test: thread_test.c test.c ../../../gfx/common/android_image_queue.c rthreads.o
$(CC) $(CFLAGS) -D_POSIX_C_SOURCE=200809L -pthread thread_test.c ../../../gfx/common/android_image_queue.c rthreads.o -o $@ $(LDFLAGS)
check: all
./test
./ndk_test
./thread_test
clean:
rm -f test ndk_test thread_test rthreads.o
.PHONY: all check clean