Commit a5d49649 authored by Libretro-Admin's avatar Libretro-Admin
Browse files

Add JNI build files

parent 2e610ba5
MEDNAFEN_DIR := $(CORE_DIR)/mednafen
INCFLAGS := -I$(CORE_DIR) --I$(MEDNAFEN_DIR) -I$(MEDNAFEN_DIR)/include -I$(MEDNAFEN_DIR)/hw_sound
INCFLAGS := -I$(CORE_DIR) \
-I$(MEDNAFEN_DIR) \
-I$(MEDNAFEN_DIR)/include
SOURCES_CXX += \
SOURCES_CXX := \
$(MEDNAFEN_DIR)/mednafen.cpp \
$(MEDNAFEN_DIR)/git.cpp \
$(MEDNAFEN_DIR)/error.cpp \
......@@ -34,7 +36,7 @@ ifeq ($(THREADING_TYPE),Win32)
SOURCES_CXX += $(MEDNAFEN_DIR)/mthreading/MThreading_Win32.cpp \
$(MEDNAFEN_DIR)/win32-common.cpp
else
SOURCES_CXX += $(MEDNAFEN_DIR)/mthreading/MThreading_POSIX.o
SOURCES_CXX += $(MEDNAFEN_DIR)/mthreading/MThreading_POSIX.cpp
endif
SOURCES_CXX += $(MEDNAFEN_DIR)/snes_faust/apu.cpp \
......
LOCAL_PATH := $(call my-dir)
CORE_DIR := $(LOCAL_PATH)/..
DEBUG := 0
FRONTEND_SUPPORTS_RGB565 := 1
NEED_BPP := 32
NEED_BLIP := 1
NEED_STEREO_SOUND := 1
IS_X86 := 0
FLAGS :=
ifeq ($(TARGET_ARCH),x86)
IS_X86 := 1
endif
include $(CORE_DIR)/Makefile.common
COREFLAGS := -funroll-loops $(INCFLAGS) -DLSB_FIRST -DPSS_STYLE=1 -D__LIBRETRO__ -D_LOW_ACCURACY_ $(FLAGS)
COREFLAGS += -DWANT_SNES_EMU
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)
LOCAL_CFLAGS := $(COREFLAGS)
LOCAL_CXXFLAGS := $(COREFLAGS)
LOCAL_LDFLAGS := -Wl,-version-script=$(CORE_DIR)/link.T
LOCAL_CPP_FEATURES := exceptions rtti
include $(BUILD_SHARED_LIBRARY)
APP_STL := c++_static
APP_ABI := all
......@@ -4,7 +4,10 @@
#define MDFN_SNES_FAUST_SKETCHYSPC700OPT 1
//#define MDFN_SNES_FAUST_SKETCHYPPUOPT 1
#define HAVE_SEM_TIMEDWAIT 1
#ifndef ANDROID
#define PTHREAD_AFFINITY_NP cpu_set_t
#endif
#define MEDNAFEN_VERSION "1.24.0"
#define MEDNAFEN_VERSION_NUMERIC 0x00102400
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment