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:
@@ -388,11 +388,8 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Makefile" />
|
||||
<None Include="Makefile.1xx" />
|
||||
<None Include="Makefile.3xx" />
|
||||
<None Include="Makefile.hge" />
|
||||
<None Include="readme.txt" />
|
||||
<None Include="..\Tutorials\02.RenderingImages\Images.sln" />
|
||||
<None Include="..\projects\mtg\mtg.vsprops" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
|
||||
13
JGE/Makefile
13
JGE/Makefile
@@ -60,9 +60,6 @@ endif
|
||||
ifeq ($(MAKECMDGOALS),3xx)
|
||||
DEFAULT_RULE = 3xx
|
||||
endif
|
||||
ifeq ($(MAKECMDGOALS),1xx)
|
||||
DEFAULT_RULE = 1xx
|
||||
endif
|
||||
|
||||
ifeq ($(DEFAULT_RULE),3xx)
|
||||
TARGET_ARCHITECTURE = psp
|
||||
@@ -70,12 +67,6 @@ TARGET_LIB = libjge300.a
|
||||
CXXFLAGS += -DDEVHOOK -DPSPFW3XX
|
||||
PSP_FW_VERSION=371
|
||||
endif
|
||||
ifeq ($(DEFAULT_RULE),1xx)
|
||||
OBJS = $(GENERIC_OBJS) $(PSP_OBJS)
|
||||
TARGET_LIB = libjge100.a
|
||||
TARGET_ARCHITECTURE = psp
|
||||
PSP_FW_VERSION=150
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET_ARCHITECTURE),psp)
|
||||
PSPSDK = $(shell psp-config --pspsdk-path)
|
||||
@@ -83,7 +74,7 @@ PSPDIR = $(shell psp-config --psp-prefix)
|
||||
OBJS = $(GENERIC_OBJS) $(PSP_OBJS)
|
||||
TARGET_HGE = libhgetools.a
|
||||
INCDIR = include/psp include/psp/freetype2 ../Boost
|
||||
CXXFLAGS += -O2 -G0 -DPSPENV -DPSP
|
||||
CXXFLAGS += -O2 -G0 -DPSP
|
||||
LIBDIR = lib/psp
|
||||
endif
|
||||
ifeq ($(TARGET_ARCHITECTURE),linux)
|
||||
@@ -112,8 +103,6 @@ linux: $(TARGET_LIB) hge
|
||||
|
||||
3xx: $(TARGET_LIB)
|
||||
|
||||
1xx: $(TARGET_LIB)
|
||||
|
||||
install: $(TARGET_LIB) hge
|
||||
|
||||
hge: $(TARGET_HGE)
|
||||
|
||||
@@ -21,6 +21,10 @@ std::string ToHex(T* pointer)
|
||||
return stream.str();
|
||||
}
|
||||
|
||||
#ifdef LINUX
|
||||
#define OutputDebugString(val) (std::cerr << val);
|
||||
#endif
|
||||
|
||||
#if defined (WIN32) || defined (LINUX)
|
||||
#ifdef _DEBUG
|
||||
|
||||
@@ -29,7 +33,7 @@ std::string ToHex(T* pointer)
|
||||
{ \
|
||||
std::ostringstream stream; \
|
||||
stream << inString << std::endl; \
|
||||
OutputDebugString(stream.str().c_str()); \
|
||||
OutputDebugString(stream.str().c_str()); \
|
||||
}
|
||||
#else
|
||||
#define DebugTrace(inString) \
|
||||
@@ -47,7 +51,7 @@ std::string ToHex(T* pointer)
|
||||
#ifndef DebugTrace
|
||||
#define DebugTrace(inString) \
|
||||
{ \
|
||||
std::cout << inString << std::endl; \
|
||||
std::cerr << inString << std::endl; \
|
||||
}
|
||||
#endif //DEBUG
|
||||
#endif
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ protected:
|
||||
return true;
|
||||
}
|
||||
|
||||
#if PSPENV
|
||||
#ifdef PSP
|
||||
if (ramAvailableLineareMax() < MIN_LINEAR_RAM)
|
||||
{
|
||||
DebugTrace("Memory below minimum threshold!!");
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -627,8 +627,6 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Makefile" />
|
||||
<None Include="Makefile.1xx" />
|
||||
<None Include="Makefile.3xx" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Filter Include="src">
|
||||
|
||||
Reference in New Issue
Block a user