(Android) Add JNI Makefiles - had to rename array.h and memory.h

to avoid system header include conflicts
This commit is contained in:
twinaphex 2012-10-16 22:05:34 +02:00
parent aa13231713
commit 61a4c5ace2
26 changed files with 41 additions and 22 deletions

View File

@ -23,7 +23,7 @@
#include "subresampler.h"
#include "makesinckernel.h"
#include "cic4.h"
#include "array.h"
#include "gambatte-array.h"
#include <cmath>
#include <cstdlib>

View File

@ -24,7 +24,7 @@
#include <cassert>
#include <cstddef>
#include <list>
#include "array.h"
#include "gambatte-array.h"
#include "subresampler.h"
#include "../resampler.h"
#include "upsampler.h"

View File

@ -21,7 +21,7 @@
#include <algorithm>
#include <cstring>
#include "array.h"
#include "gambatte-array.h"
#include "rshift16_round.h"
template<unsigned channels, unsigned phases>

View File

@ -23,7 +23,7 @@
#include "subresampler.h"
#include "makesinckernel.h"
#include "cic3.h"
#include "array.h"
#include "gambatte-array.h"
#include <cmath>
#include <cstdlib>

View File

@ -24,7 +24,7 @@
#include "makesinckernel.h"
#include "i0.h"
#include "cic3.h"
#include "array.h"
#include "gambatte-array.h"
#include <cmath>
#include <cstdlib>

View File

@ -24,7 +24,7 @@
#include "makesinckernel.h"
#include "i0.h"
#include "cic4.h"
#include "array.h"
#include "gambatte-array.h"
#include <cmath>
#include <cstdlib>

View File

@ -17,7 +17,7 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "makesinckernel.h"
#include "array.h"
#include "gambatte-array.h"
void makeSincKernel(short *const kernel, const unsigned phases, const unsigned phaseLen, double fc, double (*win)(const long m, const long M)) {
static const double PI = 3.14159265358979323846;

View File

@ -23,7 +23,7 @@
#include "subresampler.h"
#include "makesinckernel.h"
#include "cic2.h"
#include "array.h"
#include "gambatte-array.h"
#include <cmath>
#include <cstdlib>

View File

@ -19,7 +19,7 @@
#ifndef RINGBUFFER_H
#define RINGBUFFER_H
#include "array.h"
#include "gambatte-array.h"
#include <cstddef>
#include <algorithm>
#include <cstring>

View File

@ -18,7 +18,7 @@
***************************************************************************/
#include "rgb32conv.h"
#include "videolink.h"
#include "array.h"
#include "gambatte-array.h"
#include "gbint.h"
#include <algorithm>

View File

@ -21,7 +21,7 @@
#include "../videolink.h"
#include "../vfilterinfo.h"
#include "array.h"
#include "gambatte-array.h"
#include "gbint.h"
class Catrom2x : public VideoLink {

View File

@ -21,7 +21,7 @@
#include "../videolink.h"
#include "../vfilterinfo.h"
#include "array.h"
#include "gambatte-array.h"
#include "gbint.h"
class Catrom3x : public VideoLink {

View File

@ -21,7 +21,7 @@
#include "../videolink.h"
#include "../vfilterinfo.h"
#include "array.h"
#include "gambatte-array.h"
#include "gbint.h"
class Kreed2xSaI : public VideoLink {

View File

@ -21,7 +21,7 @@
#include "../videolink.h"
#include "../vfilterinfo.h"
#include "array.h"
#include "gambatte-array.h"
#include "gbint.h"
class MaxStHq2x : public VideoLink {

View File

@ -21,7 +21,7 @@
#include "../videolink.h"
#include "../vfilterinfo.h"
#include "array.h"
#include "gambatte-array.h"
#include "gbint.h"
class MaxStHq3x : public VideoLink {

View File

@ -22,7 +22,7 @@
#include "../blitterwidget.h"
#include "../dwmcontrol.h"
#include "persistcheckbox.h"
#include "array.h"
#include "gambatte-array.h"
#include <memory>
class QGLBlitter : public BlitterWidget {

View File

@ -21,7 +21,7 @@
#include "../blitterwidget.h"
#include "persistcheckbox.h"
#include "array.h"
#include "gambatte-array.h"
#include <memory>
class X11Blitter : public BlitterWidget {

View File

@ -0,0 +1,18 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
COMMON_DIR := ../../../common
INCLUDE_DIR := ../../include
RESAMPLER_DIR := $(COMMON_DIR)/resample/src
RESAMPLER_DIR_INCLUDE := $(COMMON_DIR)/resample
EMU_DIR := ../../src
LIBRETRO_DIR := ../
LOCAL_MODULE := libretro
LOCAL_SRC_FILES := $(EMU_DIR)/bitmap_font.cpp $(EMU_DIR)/cpu.cpp $(EMU_DIR)/gambatte.cpp $(EMU_DIR)/initstate.cpp $(EMU_DIR)/interrupter.cpp $(EMU_DIR)/interruptrequester.cpp $(EMU_DIR)/memory.cpp $(EMU_DIR)/sound.cpp $(EMU_DIR)/state_osd_elements.cpp $(EMU_DIR)/statesaver.cpp $(EMU_DIR)/tima.cpp $(EMU_DIR)/video.cpp $(EMU_DIR)/file/file.cpp $(EMU_DIR)/mem/cartridge.cpp $(EMU_DIR)/mem/memptrs.cpp $(EMU_DIR)/mem/rtc.cpp $(EMU_DIR)/sound/channel1.cpp $(EMU_DIR)/sound/channel2.cpp $(EMU_DIR)/sound/channel3.cpp $(EMU_DIR)/sound/channel4.cpp $(EMU_DIR)/sound/duty_unit.cpp $(EMU_DIR)/sound/envelope_unit.cpp $(EMU_DIR)/sound/length_counter.cpp $(EMU_DIR)/video/ly_counter.cpp $(EMU_DIR)/video/lyc_irq.cpp $(EMU_DIR)/video/next_m0_time.cpp $(EMU_DIR)/video/ppu.cpp $(EMU_DIR)/video/sprite_mapper.cpp $(LIBRETRO_DIR)/libretro.cpp $(RESAMPLER_DIR)/chainresampler.cpp $(RESAMPLER_DIR)/i0.cpp $(RESAMPLER_DIR)/makesinckernel.cpp $(RESAMPLER_DIR)/resamplerinfo.cpp $(RESAMPLER_DIR)/u48div.cpp
LOCAL_CXXFLAGS = -DINLINE=inline -DHAVE_STDINT_H -DHAVE_INTTYPES_H -DLSB_FIRST -D__LIBRETRO__
LOCAL_C_INCLUDES = $(EMU_DIR) $(COMMON_DIR) $(RESAMPLER_DIR) $(RESAMPLER_DIR_INCLUDE) $(LIBRETRO_DIR) $(INCLUDE_DIR)
include $(BUILD_SHARED_LIBRARY)

View File

@ -0,0 +1 @@
APP_STL := stlport_static

View File

@ -17,7 +17,7 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "cpu.h"
#include "memory.h"
#include "gambatte-memory.h"
#include "savestate.h"
namespace gambatte {

View File

@ -19,7 +19,7 @@
#ifndef CPU_H
#define CPU_H
#include "memory.h"
#include "gambatte-memory.h"
namespace gambatte {

View File

@ -17,7 +17,7 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "interrupter.h"
#include "memory.h"
#include "gambatte-memory.h"
namespace gambatte {

View File

@ -16,7 +16,7 @@
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "memory.h"
#include "gambatte-memory.h"
#include "video.h"
#include "sound.h"
#include "inputgetter.h"

View File

@ -18,7 +18,7 @@
***************************************************************************/
#include "statesaver.h"
#include "savestate.h"
#include "array.h"
#include "gambatte-array.h"
#include <stdint.h>
#include <vector>
#include <cstring>