mirror of
https://github.com/Pecusx/libretro-atari800.git
synced 2026-05-20 22:33:22 +02:00
fe5dd91725
1. Define GIT_VERSION preprocessor variable in jni/Android.mk error: use of undeclared identifier 'GIT_VERSION' 2. Add -llog linker dependency for Android logging functions error: undefined reference to '__android_log_print' 3. Prevent Clang error providing explicit "%s" format for snprintf error: format string is not a string literal
31 lines
636 B
Makefile
31 lines
636 B
Makefile
LOCAL_PATH := $(call my-dir)
|
|
GIT_VERSION := " $(shell git rev-parse --short HEAD)"
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := retro
|
|
|
|
ifeq ($(TARGET_ARCH),arm)
|
|
LOCAL_CFLAGS += -DANDROID_ARM
|
|
LOCAL_ARM_MODE := arm
|
|
endif
|
|
|
|
ifeq ($(TARGET_ARCH),x86)
|
|
LOCAL_CFLAGS += -DANDROID_X86
|
|
endif
|
|
|
|
ifeq ($(TARGET_ARCH),mips)
|
|
LOCAL_CFLAGS += -DANDROID_MIPS -D__mips__ -D__MIPSEL__
|
|
endif
|
|
|
|
CORE_DIR = ..
|
|
|
|
include $(CORE_DIR)/Makefile.common
|
|
|
|
LOCAL_SRC_FILES += $(SOURCES_C)
|
|
LOCAL_CFLAGS += -O2 -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565 -DNDEBUG=1 -DGIT_VERSION=\"$(GIT_VERSION)\" $(INCFLAGS)
|
|
|
|
LOCAL_LDLIBS += -lz -llog
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|