mirror of
https://github.com/libretro/libretro-chailove.git
synced 2024-11-23 08:00:08 +00:00
7af570fa0a
This is needed for future use of e.g. Android storage SDK and windows UWP
22 lines
695 B
Makefile
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)
|