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>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="Makefile" />
|
<None Include="Makefile" />
|
||||||
<None Include="Makefile.1xx" />
|
|
||||||
<None Include="Makefile.3xx" />
|
|
||||||
<None Include="Makefile.hge" />
|
<None Include="Makefile.hge" />
|
||||||
<None Include="readme.txt" />
|
<None Include="readme.txt" />
|
||||||
<None Include="..\Tutorials\02.RenderingImages\Images.sln" />
|
|
||||||
<None Include="..\projects\mtg\mtg.vsprops" />
|
<None Include="..\projects\mtg\mtg.vsprops" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
|||||||
13
JGE/Makefile
13
JGE/Makefile
@@ -60,9 +60,6 @@ endif
|
|||||||
ifeq ($(MAKECMDGOALS),3xx)
|
ifeq ($(MAKECMDGOALS),3xx)
|
||||||
DEFAULT_RULE = 3xx
|
DEFAULT_RULE = 3xx
|
||||||
endif
|
endif
|
||||||
ifeq ($(MAKECMDGOALS),1xx)
|
|
||||||
DEFAULT_RULE = 1xx
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(DEFAULT_RULE),3xx)
|
ifeq ($(DEFAULT_RULE),3xx)
|
||||||
TARGET_ARCHITECTURE = psp
|
TARGET_ARCHITECTURE = psp
|
||||||
@@ -70,12 +67,6 @@ TARGET_LIB = libjge300.a
|
|||||||
CXXFLAGS += -DDEVHOOK -DPSPFW3XX
|
CXXFLAGS += -DDEVHOOK -DPSPFW3XX
|
||||||
PSP_FW_VERSION=371
|
PSP_FW_VERSION=371
|
||||||
endif
|
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)
|
ifeq ($(TARGET_ARCHITECTURE),psp)
|
||||||
PSPSDK = $(shell psp-config --pspsdk-path)
|
PSPSDK = $(shell psp-config --pspsdk-path)
|
||||||
@@ -83,7 +74,7 @@ PSPDIR = $(shell psp-config --psp-prefix)
|
|||||||
OBJS = $(GENERIC_OBJS) $(PSP_OBJS)
|
OBJS = $(GENERIC_OBJS) $(PSP_OBJS)
|
||||||
TARGET_HGE = libhgetools.a
|
TARGET_HGE = libhgetools.a
|
||||||
INCDIR = include/psp include/psp/freetype2 ../Boost
|
INCDIR = include/psp include/psp/freetype2 ../Boost
|
||||||
CXXFLAGS += -O2 -G0 -DPSPENV -DPSP
|
CXXFLAGS += -O2 -G0 -DPSP
|
||||||
LIBDIR = lib/psp
|
LIBDIR = lib/psp
|
||||||
endif
|
endif
|
||||||
ifeq ($(TARGET_ARCHITECTURE),linux)
|
ifeq ($(TARGET_ARCHITECTURE),linux)
|
||||||
@@ -112,8 +103,6 @@ linux: $(TARGET_LIB) hge
|
|||||||
|
|
||||||
3xx: $(TARGET_LIB)
|
3xx: $(TARGET_LIB)
|
||||||
|
|
||||||
1xx: $(TARGET_LIB)
|
|
||||||
|
|
||||||
install: $(TARGET_LIB) hge
|
install: $(TARGET_LIB) hge
|
||||||
|
|
||||||
hge: $(TARGET_HGE)
|
hge: $(TARGET_HGE)
|
||||||
|
|||||||
@@ -21,6 +21,10 @@ std::string ToHex(T* pointer)
|
|||||||
return stream.str();
|
return stream.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef LINUX
|
||||||
|
#define OutputDebugString(val) (std::cerr << val);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined (WIN32) || defined (LINUX)
|
#if defined (WIN32) || defined (LINUX)
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
|
|
||||||
@@ -29,7 +33,7 @@ std::string ToHex(T* pointer)
|
|||||||
{ \
|
{ \
|
||||||
std::ostringstream stream; \
|
std::ostringstream stream; \
|
||||||
stream << inString << std::endl; \
|
stream << inString << std::endl; \
|
||||||
OutputDebugString(stream.str().c_str()); \
|
OutputDebugString(stream.str().c_str()); \
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define DebugTrace(inString) \
|
#define DebugTrace(inString) \
|
||||||
@@ -47,7 +51,7 @@ std::string ToHex(T* pointer)
|
|||||||
#ifndef DebugTrace
|
#ifndef DebugTrace
|
||||||
#define DebugTrace(inString) \
|
#define DebugTrace(inString) \
|
||||||
{ \
|
{ \
|
||||||
std::cout << inString << std::endl; \
|
std::cerr << inString << std::endl; \
|
||||||
}
|
}
|
||||||
#endif //DEBUG
|
#endif //DEBUG
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ PSP_EBOOT_UNKPNG = pic0.png
|
|||||||
PSP_EBOOT_PIC1 = pic1.png
|
PSP_EBOOT_PIC1 = pic1.png
|
||||||
INCDIR = ../../JGE/include ../../JGE/include/psp ../../JGE/include/psp/freetype2 ../../JGE/src ../../projects/mtg/include ../../Boost
|
INCDIR = ../../JGE/include ../../JGE/include/psp ../../JGE/include/psp/freetype2 ../../JGE/src ../../projects/mtg/include ../../Boost
|
||||||
LIBDIR = ../../JGE/lib/psp
|
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
|
else
|
||||||
OBJS += objs/TestSuiteAI.o
|
OBJS += objs/TestSuiteAI.o
|
||||||
INCDIR = -I../../JGE/include -I../../JGE/src -I/usr/X11/include -I../../projects/mtg/include -I../../Boost
|
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)
|
LDFLAGS += $(LIBS)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
debug: CXXFLAGS += -ggdb3 -D_DEBUG -DDEBUG
|
debug: CXXFLAGS += -ggdb3 -D_DEBUG -DDEBUG
|
||||||
|
|
||||||
log: CXXFLAGS += -DDOLOG
|
log: CXXFLAGS += -DDOLOG
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(TARGET_ARCHITECTURE),psp)
|
ifeq ($(TARGET_ARCHITECTURE),psp)
|
||||||
include $(PSPSDK)/lib/build.mak
|
include $(PSPSDK)/lib/build.mak
|
||||||
|
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ protected:
|
|||||||
|
|
||||||
// not sure this is necessary, adding it to potentially prevent SIGHUP on the psp
|
// 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
|
// 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));
|
boost::this_thread::sleep(boost::posix_time::milliseconds(10));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ protected:
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if PSPENV
|
#ifdef PSP
|
||||||
if (ramAvailableLineareMax() < MIN_LINEAR_RAM)
|
if (ramAvailableLineareMax() < MIN_LINEAR_RAM)
|
||||||
{
|
{
|
||||||
DebugTrace("Memory below minimum threshold!!");
|
DebugTrace("Memory below minimum threshold!!");
|
||||||
|
|||||||
@@ -7,9 +7,6 @@
|
|||||||
|
|
||||||
#if (defined (WIN32) || defined (LINUX)) && defined (_DEBUG)
|
#if (defined (WIN32) || defined (LINUX)) && defined (_DEBUG)
|
||||||
#define TESTSUITE 1
|
#define TESTSUITE 1
|
||||||
|
|
||||||
#else
|
|
||||||
#define OutputDebugString(val) {}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "limits.h"
|
#include "limits.h"
|
||||||
@@ -21,19 +18,6 @@
|
|||||||
#define NEW new
|
#define NEW new
|
||||||
#endif
|
#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
|
#ifndef RESPATH
|
||||||
#define RESPATH "Res"
|
#define RESPATH "Res"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
#include "WFont.h"
|
#include "WFont.h"
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#ifdef PSPENV
|
#ifdef PSP
|
||||||
#include "pspsdk.h"
|
#include "pspsdk.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -164,7 +164,7 @@ u32 ramAvailableLineareMax(void)
|
|||||||
size = 0;
|
size = 0;
|
||||||
sizeblock = RAM_BLOCK;
|
sizeblock = RAM_BLOCK;
|
||||||
|
|
||||||
#ifdef PSPENV
|
#ifdef PSP
|
||||||
int disableInterrupts = pspSdkDisableInterrupts();
|
int disableInterrupts = pspSdkDisableInterrupts();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -190,7 +190,7 @@ u32 ramAvailableLineareMax(void)
|
|||||||
free(ram);
|
free(ram);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PSPENV
|
#ifdef PSP
|
||||||
pspSdkEnableInterrupts(disableInterrupts);
|
pspSdkEnableInterrupts(disableInterrupts);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -207,7 +207,7 @@ u32 ramAvailable(void)
|
|||||||
size = 0;
|
size = 0;
|
||||||
count = 0;
|
count = 0;
|
||||||
|
|
||||||
#ifdef PSPENV
|
#ifdef PSP
|
||||||
int disableInterrupts = pspSdkDisableInterrupts();
|
int disableInterrupts = pspSdkDisableInterrupts();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -247,7 +247,7 @@ u32 ramAvailable(void)
|
|||||||
free(ram);
|
free(ram);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PSPENV
|
#ifdef PSP
|
||||||
pspSdkEnableInterrupts(disableInterrupts);
|
pspSdkEnableInterrupts(disableInterrupts);
|
||||||
#endif
|
#endif
|
||||||
return size;
|
return size;
|
||||||
|
|||||||
@@ -184,7 +184,6 @@
|
|||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<ProgramDatabaseFile>.\Debug/template.pdb</ProgramDatabaseFile>
|
<ProgramDatabaseFile>.\Debug/template.pdb</ProgramDatabaseFile>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
<OptimizeReferences>true</OptimizeReferences>
|
|
||||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||||
<DataExecutionPrevention>
|
<DataExecutionPrevention>
|
||||||
</DataExecutionPrevention>
|
</DataExecutionPrevention>
|
||||||
@@ -425,8 +424,6 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="Makefile" />
|
<None Include="Makefile" />
|
||||||
<None Include="Makefile.1xx" />
|
|
||||||
<None Include="Makefile.3xx" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="include\ActionElement.h" />
|
<ClInclude Include="include\ActionElement.h" />
|
||||||
|
|||||||
@@ -627,8 +627,6 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="Makefile" />
|
<None Include="Makefile" />
|
||||||
<None Include="Makefile.1xx" />
|
|
||||||
<None Include="Makefile.3xx" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Filter Include="src">
|
<Filter Include="src">
|
||||||
|
|||||||
Reference in New Issue
Block a user