compile fixes for cocoa port. also removed some cocoa-port specific code from types.h which is is no longer needed since things have gotten more platform-independant

This commit is contained in:
gecko_reverse 2008-10-12 22:04:45 +00:00
parent 88dac45826
commit cf6d18ad9d
7 changed files with 81 additions and 53 deletions

View File

@ -51,7 +51,7 @@ void ENDGL() {
#include <windows.h>
#include <GL/gl.h>
#include <GL/glext.h>
#elif DESMUME_OBJ_C
#elif DESMUME_COCOA
#include <OpenGL/gl.h>
#include <OpenGL/glext.h>
#else

View File

@ -60,7 +60,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA]]>
<Add option="-arch ppc" />
<Add option="-DDESMUME_COCOA" />
<Add option="-DHAVE_LIBZ" />
<Add option="-DWORDS_BIGENDIAN" />
<Add option="-DHAVE_OPENGL" />
</Compiler>
<Linker>
@ -91,6 +90,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA]]>
<Mode after="always" />
</ExtraCommands>
<Unit filename="../ARM9.h" />
<Unit filename="../Disassembler.cpp" />
<Unit filename="../Disassembler.h" />
<Unit filename="../FIFO.cpp" />
<Unit filename="../FIFO.h" />
<Unit filename="../GPU.cpp" />
@ -172,7 +173,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA]]>
<Option link="1" />
</Unit>
<Unit filename="sndOSX.h" />
<Unit filename="sndOSX.m">
<Unit filename="sndOSX.mm">
<Option compile="1" />
<Option link="1" />
</Unit>
@ -181,9 +182,13 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA]]>
<Option compile="1" />
<Option link="1" />
</Unit>
<Unit filename="../common.cpp" />
<Unit filename="../common.h" />
<Unit filename="../config.h" />
<Unit filename="../cp15.cpp" />
<Unit filename="../cp15.h" />
<Unit filename="../ctrlssdl.cpp" />
<Unit filename="../ctrlssdl.h" />
<Unit filename="../debug.cpp" />
<Unit filename="../debug.h" />
<Unit filename="../dscard.h" />
@ -193,25 +198,32 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA]]>
<Unit filename="../gdbstub.h" />
<Unit filename="../gfx3d.cpp" />
<Unit filename="../gfx3d.h" />
<Unit filename="../gl_vertex.cpp" />
<Unit filename="../gl_vertex.h" />
<Unit filename="../matrix.cpp" />
<Unit filename="../matrix.h" />
<Unit filename="../mc.cpp" />
<Unit filename="../mc.h" />
<Unit filename="../mem.h" />
<Unit filename="../memorystream.h" />
<Unit filename="../readwrite.cpp" />
<Unit filename="../readwrite.h" />
<Unit filename="../registers.h" />
<Unit filename="../render3D.cpp" />
<Unit filename="../render3D.h" />
<Unit filename="../rtc.cpp" />
<Unit filename="../rtc.h" />
<Unit filename="../saves.cpp" />
<Unit filename="../saves.h" />
<Unit filename="../softrender.cpp" />
<Unit filename="../softrender.h" />
<Unit filename="../softrender_config.h" />
<Unit filename="../softrender_desmumefont.h" />
<Unit filename="../softrender_v3sysfont.h" />
<Unit filename="../thumb_instructions.cpp" />
<Unit filename="../thumb_instructions.h" />
<Unit filename="../types.h" />
<Unit filename="../wifi.cpp" />
<Unit filename="../wifi.h" />
<Unit filename="../zero_private.h" />
<Extensions>
<code_completion />
<envvars />

View File

@ -7,6 +7,10 @@
objects = {
/* Begin PBXBuildFile section */
721F43D10EA2A18F0037FB33 /* common.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 721F43C50EA2A18F0037FB33 /* common.cpp */; };
721F43D20EA2A18F0037FB33 /* rtc.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 721F43C90EA2A18F0037FB33 /* rtc.cpp */; };
721F43D30EA2A18F0037FB33 /* softrender.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 721F43CB0EA2A18F0037FB33 /* softrender.cpp */; };
721F43E50EA2A23F0037FB33 /* sndOSX.mm in Sources */ = {isa = PBXBuildFile; fileRef = 721F43E40EA2A23F0037FB33 /* sndOSX.mm */; };
722764620E78E18100AEDC8B /* arm_instructions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7227644A0E78E18100AEDC8B /* arm_instructions.cpp */; };
722764630E78E18100AEDC8B /* armcpu.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7227644B0E78E18100AEDC8B /* armcpu.cpp */; };
722764640E78E18100AEDC8B /* bios.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7227644C0E78E18100AEDC8B /* bios.cpp */; };
@ -16,7 +20,6 @@
722764680E78E18100AEDC8B /* Disassembler.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 722764500E78E18100AEDC8B /* Disassembler.cpp */; };
722764690E78E18100AEDC8B /* FIFO.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 722764510E78E18100AEDC8B /* FIFO.cpp */; };
7227646A0E78E18100AEDC8B /* fs-linux.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 722764520E78E18100AEDC8B /* fs-linux.cpp */; };
7227646C0E78E18100AEDC8B /* gl_vertex.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 722764550E78E18100AEDC8B /* gl_vertex.cpp */; };
7227646D0E78E18100AEDC8B /* GPU.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 722764560E78E18100AEDC8B /* GPU.cpp */; };
7227646E0E78E18100AEDC8B /* matrix.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 722764570E78E18100AEDC8B /* matrix.cpp */; };
7227646F0E78E18100AEDC8B /* mc.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 722764580E78E18100AEDC8B /* mc.cpp */; };
@ -48,7 +51,6 @@
729BEC760D9D55DB00ED561B /* preferences.m in Sources */ = {isa = PBXBuildFile; fileRef = 729BEC660D9D55DB00ED561B /* preferences.m */; };
729BEC770D9D55DB00ED561B /* rom_info.m in Sources */ = {isa = PBXBuildFile; fileRef = 729BEC680D9D55DB00ED561B /* rom_info.m */; };
729BEC780D9D55DB00ED561B /* screenshot.m in Sources */ = {isa = PBXBuildFile; fileRef = 729BEC6A0D9D55DB00ED561B /* screenshot.m */; };
729BEC790D9D55DB00ED561B /* sndOSX.m in Sources */ = {isa = PBXBuildFile; fileRef = 729BEC6C0D9D55DB00ED561B /* sndOSX.m */; };
729BEC7A0D9D55DB00ED561B /* video_output_view.m in Sources */ = {isa = PBXBuildFile; fileRef = 729BEC6E0D9D55DB00ED561B /* video_output_view.m */; };
729BECE70D9D57F600ED561B /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 729BECE60D9D57F600ED561B /* OpenGL.framework */; };
729BECF00D9D581900ED561B /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 729BECEF0D9D581900ED561B /* AudioUnit.framework */; };
@ -61,6 +63,19 @@
1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
29B97324FDCFA39411CA2CEA /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = "<absolute>"; };
29B97325FDCFA39411CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = "<absolute>"; };
721F43C50EA2A18F0037FB33 /* common.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = common.cpp; path = ../common.cpp; sourceTree = SOURCE_ROOT; };
721F43C60EA2A18F0037FB33 /* common.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = common.h; path = ../common.h; sourceTree = SOURCE_ROOT; };
721F43C70EA2A18F0037FB33 /* memorystream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = memorystream.h; path = ../memorystream.h; sourceTree = SOURCE_ROOT; };
721F43C80EA2A18F0037FB33 /* readwrite.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = readwrite.h; path = ../readwrite.h; sourceTree = SOURCE_ROOT; };
721F43C90EA2A18F0037FB33 /* rtc.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = rtc.cpp; path = ../rtc.cpp; sourceTree = SOURCE_ROOT; };
721F43CA0EA2A18F0037FB33 /* rtc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = rtc.h; path = ../rtc.h; sourceTree = SOURCE_ROOT; };
721F43CB0EA2A18F0037FB33 /* softrender.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = softrender.cpp; path = ../softrender.cpp; sourceTree = SOURCE_ROOT; };
721F43CC0EA2A18F0037FB33 /* softrender.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = softrender.h; path = ../softrender.h; sourceTree = SOURCE_ROOT; };
721F43CD0EA2A18F0037FB33 /* softrender_config.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = softrender_config.h; path = ../softrender_config.h; sourceTree = SOURCE_ROOT; };
721F43CE0EA2A18F0037FB33 /* softrender_desmumefont.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = softrender_desmumefont.h; path = ../softrender_desmumefont.h; sourceTree = SOURCE_ROOT; };
721F43CF0EA2A18F0037FB33 /* softrender_v3sysfont.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = softrender_v3sysfont.h; path = ../softrender_v3sysfont.h; sourceTree = SOURCE_ROOT; };
721F43D00EA2A18F0037FB33 /* zero_private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = zero_private.h; path = ../zero_private.h; sourceTree = SOURCE_ROOT; };
721F43E40EA2A23F0037FB33 /* sndOSX.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = sndOSX.mm; sourceTree = "<group>"; };
7227644A0E78E18100AEDC8B /* arm_instructions.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = arm_instructions.cpp; path = ../arm_instructions.cpp; sourceTree = SOURCE_ROOT; };
7227644B0E78E18100AEDC8B /* armcpu.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = armcpu.cpp; path = ../armcpu.cpp; sourceTree = SOURCE_ROOT; };
7227644C0E78E18100AEDC8B /* bios.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = bios.cpp; path = ../bios.cpp; sourceTree = SOURCE_ROOT; };
@ -71,7 +86,6 @@
722764510E78E18100AEDC8B /* FIFO.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = FIFO.cpp; path = ../FIFO.cpp; sourceTree = SOURCE_ROOT; };
722764520E78E18100AEDC8B /* fs-linux.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "fs-linux.cpp"; path = "../fs-linux.cpp"; sourceTree = SOURCE_ROOT; };
722764540E78E18100AEDC8B /* gdbstub.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = gdbstub.h; path = ../gdbstub.h; sourceTree = SOURCE_ROOT; };
722764550E78E18100AEDC8B /* gl_vertex.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = gl_vertex.cpp; path = ../gl_vertex.cpp; sourceTree = SOURCE_ROOT; };
722764560E78E18100AEDC8B /* GPU.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = GPU.cpp; path = ../GPU.cpp; sourceTree = SOURCE_ROOT; };
722764570E78E18100AEDC8B /* matrix.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = matrix.cpp; path = ../matrix.cpp; sourceTree = SOURCE_ROOT; };
722764580E78E18100AEDC8B /* mc.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = mc.cpp; path = ../mc.cpp; sourceTree = SOURCE_ROOT; };
@ -115,7 +129,6 @@
729BEC690D9D55DB00ED561B /* screenshot.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = screenshot.h; sourceTree = SOURCE_ROOT; };
729BEC6A0D9D55DB00ED561B /* screenshot.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = screenshot.m; sourceTree = SOURCE_ROOT; };
729BEC6B0D9D55DB00ED561B /* sndOSX.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sndOSX.h; sourceTree = SOURCE_ROOT; };
729BEC6C0D9D55DB00ED561B /* sndOSX.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = sndOSX.m; sourceTree = SOURCE_ROOT; };
729BEC6D0D9D55DB00ED561B /* video_output_view.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = video_output_view.h; sourceTree = SOURCE_ROOT; };
729BEC6E0D9D55DB00ED561B /* video_output_view.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = video_output_view.m; sourceTree = SOURCE_ROOT; };
729BEC9A0D9D57AF00ED561B /* ARM9.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ARM9.h; path = ../ARM9.h; sourceTree = SOURCE_ROOT; };
@ -124,7 +137,6 @@
729BECA00D9D57AF00ED561B /* bios.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = bios.h; path = ../bios.h; sourceTree = SOURCE_ROOT; };
729BECA10D9D57AF00ED561B /* bits.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = bits.h; path = ../bits.h; sourceTree = SOURCE_ROOT; };
729BECA30D9D57AF00ED561B /* cflash.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = cflash.h; path = ../cflash.h; sourceTree = SOURCE_ROOT; };
729BECA40D9D57AF00ED561B /* config.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = config.h; path = ../config.h; sourceTree = SOURCE_ROOT; };
729BECA60D9D57AF00ED561B /* cp15.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = cp15.h; path = ../cp15.h; sourceTree = SOURCE_ROOT; };
729BECA80D9D57AF00ED561B /* debug.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = debug.h; path = ../debug.h; sourceTree = SOURCE_ROOT; };
729BECAA0D9D57AF00ED561B /* Disassembler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Disassembler.h; path = ../Disassembler.h; sourceTree = SOURCE_ROOT; };
@ -132,7 +144,6 @@
729BECAC0D9D57AF00ED561B /* fat.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = fat.h; path = ../fat.h; sourceTree = SOURCE_ROOT; };
729BECAE0D9D57AF00ED561B /* FIFO.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = FIFO.h; path = ../FIFO.h; sourceTree = SOURCE_ROOT; };
729BECB00D9D57AF00ED561B /* fs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = fs.h; path = ../fs.h; sourceTree = SOURCE_ROOT; };
729BECB20D9D57AF00ED561B /* gl_vertex.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = gl_vertex.h; path = ../gl_vertex.h; sourceTree = SOURCE_ROOT; };
729BECB40D9D57AF00ED561B /* GPU.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GPU.h; path = ../GPU.h; sourceTree = SOURCE_ROOT; };
729BECB60D9D57AF00ED561B /* matrix.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = matrix.h; path = ../matrix.h; sourceTree = SOURCE_ROOT; };
729BECB80D9D57AF00ED561B /* mc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = mc.h; path = ../mc.h; sourceTree = SOURCE_ROOT; };
@ -194,7 +205,6 @@
729BEC690D9D55DB00ED561B /* screenshot.h */,
729BEC6A0D9D55DB00ED561B /* screenshot.m */,
729BEC6B0D9D55DB00ED561B /* sndOSX.h */,
729BEC6C0D9D55DB00ED561B /* sndOSX.m */,
729BEC6E0D9D55DB00ED561B /* video_output_view.m */,
729BEC6D0D9D55DB00ED561B /* video_output_view.h */,
);
@ -229,6 +239,19 @@
29B97314FDCFA39411CA2CEA /* DeSmuME */ = {
isa = PBXGroup;
children = (
721F43E40EA2A23F0037FB33 /* sndOSX.mm */,
721F43C50EA2A18F0037FB33 /* common.cpp */,
721F43C60EA2A18F0037FB33 /* common.h */,
721F43C70EA2A18F0037FB33 /* memorystream.h */,
721F43C80EA2A18F0037FB33 /* readwrite.h */,
721F43C90EA2A18F0037FB33 /* rtc.cpp */,
721F43CA0EA2A18F0037FB33 /* rtc.h */,
721F43CB0EA2A18F0037FB33 /* softrender.cpp */,
721F43CC0EA2A18F0037FB33 /* softrender.h */,
721F43CD0EA2A18F0037FB33 /* softrender_config.h */,
721F43CE0EA2A18F0037FB33 /* softrender_desmumefont.h */,
721F43CF0EA2A18F0037FB33 /* softrender_v3sysfont.h */,
721F43D00EA2A18F0037FB33 /* zero_private.h */,
729BECEF0D9D581900ED561B /* AudioUnit.framework */,
729BECE60D9D57F600ED561B /* OpenGL.framework */,
080E96DDFE201D6D7F000001 /* Cocoa Port */,
@ -260,7 +283,6 @@
722764510E78E18100AEDC8B /* FIFO.cpp */,
722764520E78E18100AEDC8B /* fs-linux.cpp */,
722764540E78E18100AEDC8B /* gdbstub.h */,
722764550E78E18100AEDC8B /* gl_vertex.cpp */,
722764560E78E18100AEDC8B /* GPU.cpp */,
722764570E78E18100AEDC8B /* matrix.cpp */,
722764580E78E18100AEDC8B /* mc.cpp */,
@ -278,7 +300,6 @@
729BECA00D9D57AF00ED561B /* bios.h */,
729BECA10D9D57AF00ED561B /* bits.h */,
729BECA30D9D57AF00ED561B /* cflash.h */,
729BECA40D9D57AF00ED561B /* config.h */,
729BECA60D9D57AF00ED561B /* cp15.h */,
729BECA80D9D57AF00ED561B /* debug.h */,
729BECAA0D9D57AF00ED561B /* Disassembler.h */,
@ -286,7 +307,6 @@
729BECAC0D9D57AF00ED561B /* fat.h */,
729BECAE0D9D57AF00ED561B /* FIFO.h */,
729BECB00D9D57AF00ED561B /* fs.h */,
729BECB20D9D57AF00ED561B /* gl_vertex.h */,
729BECB40D9D57AF00ED561B /* GPU.h */,
729BECB60D9D57AF00ED561B /* matrix.h */,
729BECB80D9D57AF00ED561B /* mc.h */,
@ -431,7 +451,6 @@
729BEC760D9D55DB00ED561B /* preferences.m in Sources */,
729BEC770D9D55DB00ED561B /* rom_info.m in Sources */,
729BEC780D9D55DB00ED561B /* screenshot.m in Sources */,
729BEC790D9D55DB00ED561B /* sndOSX.m in Sources */,
729BEC7A0D9D55DB00ED561B /* video_output_view.m in Sources */,
7277B8EB0D9F25F700D283BD /* about.m in Sources */,
7233955A0E596E9100999693 /* speed_limit_selection_window.m in Sources */,
@ -444,7 +463,6 @@
722764680E78E18100AEDC8B /* Disassembler.cpp in Sources */,
722764690E78E18100AEDC8B /* FIFO.cpp in Sources */,
7227646A0E78E18100AEDC8B /* fs-linux.cpp in Sources */,
7227646C0E78E18100AEDC8B /* gl_vertex.cpp in Sources */,
7227646D0E78E18100AEDC8B /* GPU.cpp in Sources */,
7227646E0E78E18100AEDC8B /* matrix.cpp in Sources */,
7227646F0E78E18100AEDC8B /* mc.cpp in Sources */,
@ -461,6 +479,10 @@
728E5E210E7F54CC00608344 /* GPU_osd.cpp in Sources */,
72D89DE50E83973A008D9B64 /* screen_state.m in Sources */,
72D89E370E845C7E008D9B64 /* readwrite.cpp in Sources */,
721F43D10EA2A18F0037FB33 /* common.cpp in Sources */,
721F43D20EA2A18F0037FB33 /* rtc.cpp in Sources */,
721F43D30EA2A18F0037FB33 /* softrender.cpp in Sources */,
721F43E50EA2A23F0037FB33 /* sndOSX.mm in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@ -512,8 +534,8 @@
ARCHS = "$(ONLY_ACTIVE_ARCH_PRE_XCODE_3_1)";
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
HAVE_OPENGL,
DESMUME_OBJ_C,
HAVE_OPENGL,
HAVE_LIBZ,
DESMUME_COCOA,
);
@ -533,8 +555,8 @@
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ONLY_ACTIVE_ARCH_PRE_XCODE_3_1)";
GCC_PREPROCESSOR_DEFINITIONS = (
HAVE_OPENGL,
DESMUME_OBJ_C,
HAVE_OPENGL,
HAVE_LIBZ,
DESMUME_COCOA,
);

View File

@ -1,7 +1,7 @@
EXTRA_DIST = cocoa_util.m DeSmuME.cbp globals.h main.m main_window.h main_window.m nds_control.h nds_control.m preferences.m \
about.m DeSmuME.icns English.strings Info.plist InfoPlist.strings input.h input.m \
Japanese.strings makeapp.sh PkgInfo preferences.h rom_info.h rom_info.m screenshot.h screenshot.m \
sndOSX.h sndOSX.m video_output_view.h video_output_view.m \
sndOSX.h sndOSX.mm video_output_view.h video_output_view.m \
DeSmuME.xcodeproj/project.pbxproj \
English.nib/classes.nib English.nib/info.nib English.nib/keyedobjects.nib \
Japanese.nib/classes.nib Japanese.nib/info.nib Japanese.nib/keyedobjects.nib

View File

@ -12,7 +12,7 @@ compile = {
:files => Dir['*.m'] + Dir['*.mm'] + Dir['dialogs/*.m'] + Dir['dialogs/*.mm'] + ([
'MMU', 'SPU', 'cflash', 'fs-linux', 'matrix', 'FIFO', 'NDSSystem', 'arm_instructions', 'cp15', 'mc',
'thumb_instructions', 'GPU', 'OGLRender', 'armcpu', 'gfx3d', 'render3D', 'wifi', 'GPU_osd', 'ROMReader',
'bios', 'debug', 'gl_vertex', 'saves', 'readwrite'].map { |core_file| '../' + core_file + '.cpp' } ),
'bios', 'debug', 'saves', 'readwrite', 'rtc', 'softrender', 'common'].map { |core_file| '../' + core_file + '.cpp' } ),
:defines => {
:global => ['DESMUME_OBJ_C'],
:cocoa => ['DESMUME_COCOA', 'HAVE_LIBZ', 'HAVE_OPENGL']},

View File

@ -42,8 +42,6 @@
#ifndef FASTCALL
#ifdef __MINGW32__
#define FASTCALL __attribute__((fastcall))
#elif defined (DESMUME_OBJ_C)
#define FASTCALL __attribute__((fastcall))
#elif defined (__i386__)
#define FASTCALL __attribute__((regparm(3)))
#elif defined(_MSC_VER) || defined(__INTEL_COMPILER)
@ -61,14 +59,6 @@
#endif
#endif
#ifdef DESMUME_OBJ_C
#define __declspec(ignore)
inline void printlog(const char *s, ...) {}
#ifdef __BIG_ENDIAN__
#define WORDS_BIGENDIAN
#endif
#endif
#if defined(__LP64__)
typedef unsigned char u8;
typedef unsigned short u16;
@ -163,6 +153,10 @@ typedef int desmume_BOOL;
#define PACKED
#endif
#ifdef __BIG_ENDIAN__
#define WORDS_BIGENDIAN
#endif
#ifdef WORDS_BIGENDIAN
# define LOCAL_BE
#else