Skip to content

Commit

Permalink
Add C sources to libretro Android build. #68
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Nov 11, 2024
1 parent 921247b commit 327f1c7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion platforms/libretro/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@ include $(CORE_DIR)/Makefile.common

COREFLAGS := -DHAVE_STDINT_H -DHAVE_INTTYPES_H -D__LIBRETRO__ -DGEARCOLECO_DISABLE_DISASSEMBLER

GIT_VERSION ?= " $(shell git describe --abbrev=7 --dirty --always --tags || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")
COREFLAGS += -DEMULATOR_BUILD=\"$(GIT_VERSION)\"
endif

include $(CLEAR_VARS)
LOCAL_MODULE := retro
LOCAL_SRC_FILES := $(SOURCES_CXX)
LOCAL_SRC_FILES := $(SOURCES_CXX) $(SOURCES_C)
LOCAL_CFLAGS := $(COREFLAGS)
LOCAL_CXXFLAGS := $(COREFLAGS)
LOCAL_LDFLAGS := -Wl,-version-script=$(CORE_DIR)/link.T
LOCAL_LDLIBS := -llog
Expand Down

0 comments on commit 327f1c7

Please sign in to comment.