2013-05-18 18:56:16 +00:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
2018-05-25 21:56:02 +00:00
|
|
|
CORE_DIR := $(LOCAL_PATH)/../..
|
2013-05-18 18:56:16 +00:00
|
|
|
|
2018-05-25 21:56:02 +00:00
|
|
|
include $(CORE_DIR)/libretro/Makefile.common
|
2013-05-18 18:56:16 +00:00
|
|
|
|
2018-05-25 21:56:02 +00:00
|
|
|
COREFLAGS := -DANDROID -D__LIBRETRO__ -DHAVE_STRINGS_H -DRIGHTSHIFT_IS_SAR $(INCFLAGS)
|
2013-05-18 18:56:16 +00:00
|
|
|
|
2018-05-25 21:56:02 +00:00
|
|
|
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
|
|
|
|
ifneq ($(GIT_VERSION)," unknown")
|
|
|
|
COREFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
|
2013-05-18 18:56:16 +00:00
|
|
|
endif
|
|
|
|
|
2018-05-25 21:56:02 +00:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := retro
|
2019-03-31 01:21:07 +00:00
|
|
|
LOCAL_SRC_FILES := $(SOURCES_C) $(SOURCES_CXX)
|
2018-05-25 21:56:02 +00:00
|
|
|
LOCAL_CXXFLAGS := $(COREFLAGS)
|
2019-05-27 02:14:57 +00:00
|
|
|
LOCAL_CFLAGS := $(COREFLAGS)
|
2018-05-25 21:56:02 +00:00
|
|
|
LOCAL_LDFLAGS := -Wl,-version-script=$(CORE_DIR)/libretro/link.T
|
2013-05-18 18:56:16 +00:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|