Files
RetroArch/samples/input/openxr_input/Makefile
LibretroAdmin 21635dd171 samples: build with -g1 instead of -g
The sample and test builds used full debug info. -g1 keeps what
sanitizer reports and backtraces need - function names, files and line
numbers - and drops the variable and type information nobody reads in
CI. Objects get about 30% smaller (rh265.o under ASan+UBSan: 5.1MB to
3.7MB), so the ccache caches hold more of each job's build and are
quicker to restore and save.
2026-10-13 11:50:11 +02:00

35 lines
1.1 KiB
Makefile

# input/common/input_openxr.c, the headset's controllers, against a
# stand-in for the OpenXR runtime and the frontend around it: the
# host's compiler, the vendored OpenXR headers, no headset.
TARGET := openxr_input_test
ROOT := ../../..
CFLAGS += -std=gnu99 -O1 -g1 -Wall -Wno-unused-function -Wno-unused-parameter \
-DRARCH_INTERNAL -DHAVE_THREADS -DHAVE_OPENXR -DHAVE_MENU \
-I$(ROOT) -I$(ROOT)/libretro-common/include -I$(ROOT)/deps \
-I$(ROOT)/deps/openxr/include
ifneq ($(SANITIZER),)
CFLAGS += -fsanitize=$(SANITIZER) -fno-omit-frame-pointer
LDFLAGS += -fsanitize=$(SANITIZER)
endif
SRCS := openxr_input_test.c \
$(ROOT)/libretro-common/compat/compat_strl.c \
$(ROOT)/libretro-common/string/stdstring.c \
$(ROOT)/libretro-common/encodings/encoding_utf.c \
$(ROOT)/gfx/video_xr.c \
$(ROOT)/gfx/video_views.c
all: $(TARGET)
$(TARGET): $(SRCS) $(ROOT)/input/common/input_openxr.c
$(CC) $(CFLAGS) -o $@ $(SRCS) $(LDFLAGS) -lm
check: all
./$(TARGET)
clean:
rm -f $(TARGET)
.PHONY: all check clean