Minor project cleanup:

- Consolidated duplicate PSP / PSPENV defines;
- removed some ancillary file crap from the 2010 projects;
- pulled 1xx references from the makefiles;
- consolidated multiple #defines for OutputDebugString into one header (previously was split between config.h & DebugRoutines.h).
This commit is contained in:
wrenczes@gmail.com
2011-04-22 13:12:36 +00:00
parent 1827e99780
commit ae227a7cb8
10 changed files with 15 additions and 50 deletions
+1 -5
View File
@@ -37,7 +37,7 @@ PSP_EBOOT_UNKPNG = pic0.png
PSP_EBOOT_PIC1 = pic1.png
INCDIR = ../../JGE/include ../../JGE/include/psp ../../JGE/include/psp/freetype2 ../../JGE/src ../../projects/mtg/include ../../Boost
LIBDIR = ../../JGE/lib/psp
CFLAGS = -O2 -G0 -DPSPFW3XX -DDEVHOOK -DUSE_PRECOMPILED_HEADERS=1 -DPSPENV -DPSP
CFLAGS = -O2 -G0 -DPSPFW3XX -DDEVHOOK -DUSE_PRECOMPILED_HEADERS=1 -DPSP
else
OBJS += objs/TestSuiteAI.o
INCDIR = -I../../JGE/include -I../../JGE/src -I/usr/X11/include -I../../projects/mtg/include -I../../Boost
@@ -56,15 +56,11 @@ CXXFLAGS += $(CFLAGS)
LDFLAGS += $(LIBS)
debug: CXXFLAGS += -ggdb3 -D_DEBUG -DDEBUG
log: CXXFLAGS += -DDOLOG
ifeq ($(TARGET_ARCHITECTURE),psp)
include $(PSPSDK)/lib/build.mak
+1 -1
View File
@@ -188,7 +188,7 @@ protected:
// not sure this is necessary, adding it to potentially prevent SIGHUP on the psp
// rumour has it that if a worker thread doesn't allow the main thread a chance to run, it can hang the unit
#ifdef PSPENV
#ifdef PSP
boost::this_thread::sleep(boost::posix_time::milliseconds(10));
#endif
}
+1 -1
View File
@@ -97,7 +97,7 @@ protected:
return true;
}
#if PSPENV
#ifdef PSP
if (ramAvailableLineareMax() < MIN_LINEAR_RAM)
{
DebugTrace("Memory below minimum threshold!!");
-16
View File
@@ -7,9 +7,6 @@
#if (defined (WIN32) || defined (LINUX)) && defined (_DEBUG)
#define TESTSUITE 1
#else
#define OutputDebugString(val) {}
#endif
#include "limits.h"
@@ -21,19 +18,6 @@
#define NEW new
#endif
#ifdef QT_CONFIG
#include <QtGlobal>
#define OutputDebugString(val) qDebug(val)
#else
#ifdef LINUX
#ifdef _DEBUG
#define OutputDebugString(val) (std::cerr << val);
#else
#define OutputDebugString(val) {}
#endif
#endif
#endif
#ifndef RESPATH
#define RESPATH "Res"
#endif
+5 -5
View File
@@ -7,7 +7,7 @@
#include "WFont.h"
#include <sys/stat.h>
#ifdef PSPENV
#ifdef PSP
#include "pspsdk.h"
#endif
@@ -164,7 +164,7 @@ u32 ramAvailableLineareMax(void)
size = 0;
sizeblock = RAM_BLOCK;
#ifdef PSPENV
#ifdef PSP
int disableInterrupts = pspSdkDisableInterrupts();
#endif
@@ -190,7 +190,7 @@ u32 ramAvailableLineareMax(void)
free(ram);
}
#ifdef PSPENV
#ifdef PSP
pspSdkEnableInterrupts(disableInterrupts);
#endif
@@ -207,7 +207,7 @@ u32 ramAvailable(void)
size = 0;
count = 0;
#ifdef PSPENV
#ifdef PSP
int disableInterrupts = pspSdkDisableInterrupts();
#endif
@@ -247,7 +247,7 @@ u32 ramAvailable(void)
free(ram);
}
#ifdef PSPENV
#ifdef PSP
pspSdkEnableInterrupts(disableInterrupts);
#endif
return size;
-3
View File
@@ -184,7 +184,6 @@
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>.\Debug/template.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
@@ -425,8 +424,6 @@
</ItemGroup>
<ItemGroup>
<None Include="Makefile" />
<None Include="Makefile.1xx" />
<None Include="Makefile.3xx" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="include\ActionElement.h" />
-2
View File
@@ -627,8 +627,6 @@
</ItemGroup>
<ItemGroup>
<None Include="Makefile" />
<None Include="Makefile.1xx" />
<None Include="Makefile.3xx" />
</ItemGroup>
<ItemGroup>
<Filter Include="src">