libretro-chailove/jni/Android.mk
Vladimir Serbinenko 7af570fa0a Switch straight file I/O to VFS
This is needed for future use of e.g. Android storage SDK and windows UWP
2022-05-11 01:54:03 +02:00

22 lines
695 B
Makefile

LOCAL_PATH := $(call my-dir)
CORE_DIR = $(LOCAL_PATH)/..
include $(CORE_DIR)/Makefile.common
COREFLAGS := -D__LIBRETRO__ -DANDROID -DHAVE_THREADS=1 $(FLAGS)
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")
COREFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif
include $(CLEAR_VARS)
LOCAL_MODULE := retro
LOCAL_SRC_FILES := $(SOURCES_CXX) $(SOURCES_C) $(SOURCES_S)
LOCAL_CXXFLAGS := $(COREFLAGS) -std=c++14 -D_INCL_PHYSFS_PLATFORMS
LOCAL_CFLAGS := $(COREFLAGS) -D_INCL_PHYSFS_PLATFORMS
LOCAL_LDFLAGS := -Wl,-version-script=$(CORE_DIR)/link.T
LOCAL_CPP_FEATURES := exceptions rtti
include $(BUILD_SHARED_LIBRARY)