401 lines
15 KiB
C
401 lines
15 KiB
C
//@VERSION=Gear v3.18.00
|
|
/*================================================================
|
|
* Client defined section. Do not delete the following tags.
|
|
* You can use this section for custom define information that
|
|
* will be preserved between configuration update or changes by
|
|
* the configuration tool.
|
|
=================================================================*/
|
|
//@CLIENT_SECTION
|
|
// WIN32
|
|
|
|
#if defined(POP_PLATFORM_XENON)
|
|
// cannot do this on ps3 due to a bug ( https://ps3.scedev.net/support/issue/57775 )
|
|
// cannot do this on windows: to many depends lib link with stl that can't be recompiled.
|
|
|
|
// make sure we don't use the iterator debugging crap
|
|
#ifndef _HAS_ITERATOR_DEBUGGING
|
|
#define _HAS_ITERATOR_DEBUGGING 0
|
|
#endif
|
|
|
|
#if _HAS_ITERATOR_DEBUGGING == 1
|
|
#error Disable iterator debugging it's too slow to use in a multithreaded app
|
|
#endif
|
|
#endif
|
|
|
|
#if GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_WIN32
|
|
#ifdef GEAR_DLL
|
|
// no final yet in dll.
|
|
#if GEAR_COMPILE_AUTODETECT == GEAR_COMPILE_DEBUG
|
|
//#pragma message("GEAR:DEBUGDLL")
|
|
#define GEAR_EXTTARGET_DEBUGDLL_WIN32
|
|
#else
|
|
//#pragma message("GEAR:RELEASEDLL")
|
|
#define GEAR_EXTTARGET_RELEASEDLL_WIN32
|
|
#endif
|
|
#else
|
|
// Only select external target when scimitar engine defines are visible!
|
|
#ifdef POP_PLATFORM_WIN32
|
|
#if defined(POP_FINAL) && !defined(POP_TOOLMODE)
|
|
//#pragma message("GEAR:FINAL")
|
|
#define GEAR_EXTTARGET_FINAL_WIN32
|
|
#elif defined(POP_DEBUG) || defined(_DEBUG)
|
|
//#pragma message("GEAR:DEBUG")
|
|
#define GEAR_EXTTARGET_DEBUG_WIN32
|
|
#else
|
|
//#pragma message("GEAR:RELEASE")
|
|
#define GEAR_EXTTARGET_RELEASE_WIN32
|
|
#endif
|
|
#else
|
|
// Detect Dare/DarePlus/SoundEditor on Win32
|
|
#ifdef DARE_PC_STATICLIB
|
|
#if GEAR_COMPILE_AUTODETECT == GEAR_COMPILE_DEBUG
|
|
#define GEAR_EXTTARGET_DEBUG_WIN32
|
|
#else
|
|
#define GEAR_EXTTARGET_RELEASE_WIN32
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
#endif
|
|
#endif
|
|
|
|
// XENON
|
|
#if GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_XENON
|
|
|
|
// Only select external target when scimitar engine defines are visible!
|
|
#ifdef POP_PLATFORM_XENON
|
|
#if defined(POP_FINAL) // || defined(PROFILE) // Need to activate this too
|
|
//#pragma message("GEAR:FINAL")
|
|
#define GEAR_EXTTARGET_FINAL_X360
|
|
#elif defined(POP_DEBUG)
|
|
//#pragma message("GEAR:DEBUG")
|
|
#define GEAR_EXTTARGET_DEBUG_X360
|
|
#else
|
|
//#pragma message("GEAR:RELEASE")
|
|
#define GEAR_EXTTARGET_RELEASE_X360
|
|
#endif
|
|
#endif
|
|
|
|
#endif
|
|
|
|
// PS3 PPU
|
|
#if (GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_PS3_PPU)
|
|
|
|
// Only select external target when scimitar engine defines are visible!
|
|
#ifdef POP_PLATFORM_PS3
|
|
#if defined(POP_FINAL)
|
|
//#warning "GEAR:FINAL"
|
|
#define GEAR_EXTTARGET_FINAL_PS3PPU
|
|
#elif defined(POP_DEBUG)
|
|
//#warning "GEAR:DEBUG"
|
|
#define GEAR_EXTTARGET_DEBUG_PS3PPU
|
|
#else
|
|
//#warning "GEAR:RELEASE"
|
|
#define GEAR_EXTTARGET_RELEASE_PS3PPU
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
// PS3 SPU
|
|
#if (GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_PS3_SPU)
|
|
|
|
#ifdef __SPU__
|
|
#define GEAR_PS3_SPU
|
|
#endif
|
|
|
|
// Damn config tool It doesn't let us uses what we want... Activate modules by hand instead!!
|
|
#define GEAR_CFG_USE_ADAPTIVELOCK
|
|
#define GEAR_CFG_USE_BLOCKINGLOCK
|
|
#define GEAR_CFG_USE_CALLSTACKTRACE
|
|
#define GEAR_CFG_CALLSTACKTRACE_MAX_TRACES 32
|
|
#define GEAR_CFG_USE_RWLOCK
|
|
#define GEAR_CFG_USE_THREAD
|
|
#define GEAR_CFG_DEFAULT_THREAD_STACK_SIZE GEAR_KB(12)
|
|
#define GEAR_CFG_THREAD_NAME_ENABLE GEAR_ENABLE
|
|
#define GEAR_CFG_USE_TLS
|
|
#define GEAR_CFG_TLS_MAX_THREADS_COUNT 16
|
|
#define GEAR_CFG_TLS_MAX_SLOTS 32
|
|
#define GEAR_CFG_USE_BINARYTREE
|
|
#define GEAR_CFG_USE_BITVECTOR
|
|
#define GEAR_CFG_USE_NOTIFIERSTATIC
|
|
#define GEAR_CFG_USE_DLIST
|
|
#define GEAR_CFG_USE_SLIST
|
|
#define GEAR_CFG_USE_BASENOTIFIER
|
|
#define GEAR_CFG_USE_GEARNOMEMCONTAINERINTERFACE
|
|
#define GEAR_CFG_USE_CONDITIONVARIABLE
|
|
#define GEAR_CFG_USE_LOGEVENT_STUB
|
|
#define GEAR_CFG_USE_THREADREGISTRY
|
|
#define GEAR_CFG_USE_STACKSIZEMONITOR_STUB
|
|
#define GEAR_CFG_USE_EVENT
|
|
#define GEAR_CFG_USE_GEARPAIR
|
|
#define GEAR_CFG_USE_STATICSTRING
|
|
#define GEAR_CFG_USE_MEMHOOK
|
|
#define GEAR_CFG_USE_MEMINTERFACE
|
|
#define GEAR_CFG_STACKALLOCATOR_WIPE_MEMORY_ONFREE GEAR_ENABLE
|
|
#define GEAR_CFG_USE_MEMBASEINTERFACE
|
|
#define GEAR_CFG_USE_BASEHOOK
|
|
#define GEAR_CFG_USE_MEMDEFAULTALLOCATOR
|
|
#define GEAR_CFG_MEM_DEFAULT_ALLOCATOR GEAR_ALLOC_DL283
|
|
#define GEAR_CFG_USE_MEMALLOCDL283
|
|
#define GEAR_CFG_MEM_DLMALLOC283_DEBUG GEAR_DISABLE
|
|
#define GEAR_CFG_MEM_DLMALLOC283_ENABLE_MMAP GEAR_ENABLE
|
|
#define GEAR_CFG_MEM_DLMALLOC283_MMAP_THRESHOLD GEAR_KB(256)
|
|
#define GEAR_CFG_MEM_DLMALLOC283_GRANULARITY GEAR_KB(64)
|
|
#define GEAR_CFG_MEM_DLMALLOC283_TRIM_THRESHOLD GEAR_MB(2)
|
|
#define GEAR_CFG_USE_MEMUNIXALLOCATOR
|
|
#define GEAR_CFG_USE_MEMDEFAULTPAGEALLOCATOR
|
|
#define GEAR_CFG_USE_MEMALLOCFIXED
|
|
#define GEAR_CFG_USE_REFCOUNTED
|
|
#define GEAR_CFG_USE_TIME
|
|
#define GEAR_CFG_USE_MEMPAGEINTERFACE
|
|
#define GEAR_CFG_USE_ERROR
|
|
#define GEAR_CFG_USE_MEMALLOCFIXEDWITHFREE
|
|
#define GEAR_CFG_USE_NOTIFIER
|
|
#define GEAR_CFG_USE_GEARVECTOR
|
|
|
|
// Only select external target when scimitar engine defines are visible!
|
|
#ifdef POP_PLATFORM_PS3
|
|
#if defined(POP_FINAL)
|
|
//#warning "GEAR:PS3SPU FINAL"
|
|
#define GEAR_EXTTARGET_FINAL_PS3SPU
|
|
#elif defined(POP_DEBUG)
|
|
//#warning "GEAR:PS3SPU DEBUG"
|
|
#define GEAR_EXTTARGET_DEBUG_PS3SPU
|
|
#else
|
|
//#warning "GEAR:PS3SPU RELEASE"
|
|
#define GEAR_EXTTARGET_RELEASE_PS3SPU
|
|
#endif
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#if (GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_WIN64)
|
|
#ifdef _DEBUG
|
|
#ifndef GEAR_TARGET_DEBUG
|
|
#define GEAR_TARGET_DEBUG
|
|
#endif
|
|
#else
|
|
#ifndef GEAR_TARGET_RELEASE
|
|
#define GEAR_TARGET_RELEASE
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
// DURANGO
|
|
#if GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_DURANGO
|
|
|
|
// Only select external target when scimitar engine defines are visible!
|
|
#ifdef _DURANGO
|
|
#if defined(POP_FINAL) // || defined(PROFILE) // Need to activate this too
|
|
//#pragma message("GEAR:FINAL")
|
|
#define GEAR_EXTTARGET_FINAL_DURANGO
|
|
#elif defined(POP_DEBUG)
|
|
//#pragma message("GEAR:DEBUG")
|
|
#define GEAR_EXTTARGET_DEBUG_DURANGO
|
|
#else
|
|
//#pragma message("GEAR:RELEASE")
|
|
#define GEAR_EXTTARGET_RELEASE_DURANGO
|
|
#endif
|
|
#endif
|
|
|
|
#endif
|
|
|
|
// CUSTOM DEFINES
|
|
#define GEAR_CFG_DISABLE_GLOBAL_ROTATEVECTORV4
|
|
|
|
//@END_SECTION
|
|
|
|
#undef TARGET_PROFILE_SELECTED
|
|
#define GEAR_CFG_EXT_GEARCONFIG
|
|
//================================= Common Profile ====================
|
|
|
|
#include "gearextconfig_common.h"
|
|
|
|
//===================================================================
|
|
//DO NOT DELETE HEADER NEEDED TO KEEP PROFILE NAME
|
|
//================================= PROFILE: Win32Debug (debug, win32) ====================
|
|
#if GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_WIN32 && ( defined(GEAR_TARGET_DEBUG) || defined(GEAR_EXTTARGET_DEBUG_WIN32) )
|
|
//===================================================================
|
|
|
|
#include "gearextconfig_win32debug.h"
|
|
|
|
#endif
|
|
|
|
//===================================================================
|
|
//DO NOT DELETE HEADER NEEDED TO KEEP PROFILE NAME
|
|
//================================= PROFILE: Win32Release (release, win32) ====================
|
|
#if GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_WIN32 && ( defined(GEAR_TARGET_RELEASE) || defined(GEAR_EXTTARGET_RELEASE_WIN32) )
|
|
|
|
#include "gearextconfig_win32release.h"
|
|
|
|
#endif
|
|
|
|
//===================================================================
|
|
//DO NOT DELETE HEADER NEEDED TO KEEP PROFILE NAME
|
|
//================================= PROFILE: Win32Final (release1, win32) ====================
|
|
#if GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_WIN32 && ( defined(GEAR_TARGET_RELEASE1) || defined(GEAR_EXTTARGET_FINAL_WIN32) )
|
|
|
|
#include "gearextconfig_win32final.h"
|
|
|
|
#endif
|
|
|
|
//===================================================================
|
|
//DO NOT DELETE HEADER NEEDED TO KEEP PROFILE NAME
|
|
//================================= PROFILE: X360Debug (debug, xenon) ====================
|
|
#if GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_XENON && ( defined(GEAR_TARGET_DEBUG) || defined(GEAR_EXTTARGET_DEBUG_X360) )
|
|
|
|
#include "gearextconfig_x360debug.h"
|
|
|
|
#endif
|
|
|
|
//===================================================================
|
|
//DO NOT DELETE HEADER NEEDED TO KEEP PROFILE NAME
|
|
//================================= PROFILE: X360Release (release, xenon) ====================
|
|
#if GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_XENON && ( defined(GEAR_TARGET_RELEASE) || defined(GEAR_EXTTARGET_RELEASE_X360) )
|
|
|
|
#include "gearextconfig_x360release.h"
|
|
|
|
#endif
|
|
|
|
//===================================================================
|
|
//DO NOT DELETE HEADER NEEDED TO KEEP PROFILE NAME
|
|
//================================= PROFILE: X360Final (release1, xenon) ====================
|
|
#if GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_XENON && ( defined(GEAR_TARGET_RELEASE1) || defined(GEAR_EXTTARGET_FINAL_X360) )
|
|
|
|
#include "gearextconfig_x360final.h"
|
|
|
|
#endif
|
|
|
|
//===================================================================
|
|
//DO NOT DELETE HEADER NEEDED TO KEEP PROFILE NAME
|
|
//================================= PROFILE: PS3Debug (debug, ps3_ppu) ====================
|
|
#if GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_PS3_PPU && ( defined(GEAR_TARGET_DEBUG) || defined(GEAR_EXTTARGET_DEBUG_PS3PPU) )
|
|
|
|
#include "gearextconfig_ps3debug.h"
|
|
|
|
#endif
|
|
|
|
//===================================================================
|
|
//DO NOT DELETE HEADER NEEDED TO KEEP PROFILE NAME
|
|
//================================= PROFILE: PS3Release (release, ps3_ppu) ====================
|
|
#if GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_PS3_PPU && ( defined(GEAR_TARGET_RELEASE) || defined(GEAR_EXTTARGET_RELEASE_PS3PPU) )
|
|
|
|
#include "gearextconfig_ps3release.h"
|
|
|
|
#endif
|
|
|
|
//===================================================================
|
|
//DO NOT DELETE HEADER NEEDED TO KEEP PROFILE NAME
|
|
//================================= PROFILE: PS3Final (release1, ps3_ppu) ====================
|
|
#if GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_PS3_PPU && ( defined(GEAR_TARGET_RELEASE1) || defined(GEAR_EXTTARGET_FINAL_PS3PPU) )
|
|
|
|
#include "gearextconfig_ps3final.h"
|
|
|
|
#endif
|
|
|
|
//===================================================================
|
|
//DO NOT DELETE HEADER NEEDED TO KEEP PROFILE NAME
|
|
//================================= PROFILE: PS3SPUDebug (debug, ps3_spu) ====================
|
|
#if GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_PS3_SPU && ( defined(GEAR_TARGET_DEBUG) || defined(GEAR_EXTTARGET_DEBUG_PS3SPU) )
|
|
|
|
#include "gearextconfig_ps3spudebug.h"
|
|
|
|
#endif
|
|
|
|
//===================================================================
|
|
//DO NOT DELETE HEADER NEEDED TO KEEP PROFILE NAME
|
|
//================================= PROFILE: PS3SPURelease (release, ps3_spu) ====================
|
|
#if GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_PS3_SPU && ( defined(GEAR_TARGET_RELEASE) || defined(GEAR_EXTTARGET_RELEASE_PS3SPU) )
|
|
|
|
#include "gearextconfig_ps3spurelease.h"
|
|
|
|
#endif
|
|
|
|
//===================================================================
|
|
//DO NOT DELETE HEADER NEEDED TO KEEP PROFILE NAME
|
|
//================================= PROFILE: PS3SPUFinal (release1, ps3_spu) ====================
|
|
#if GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_PS3_SPU && ( defined(GEAR_TARGET_RELEASE1) || defined(GEAR_EXTTARGET_FINAL_PS3SPU) )
|
|
|
|
#include "gearextconfig_ps3spufinal.h"
|
|
|
|
#endif
|
|
|
|
//===================================================================
|
|
//DO NOT DELETE HEADER NEEDED TO KEEP PROFILE NAME
|
|
//================================= PROFILE: Win32DebugDLL (debug2, win32) ====================
|
|
#if GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_WIN32 && ( defined(GEAR_TARGET_DEBUG2) || defined(GEAR_EXTTARGET_DEBUGDLL_WIN32) )
|
|
|
|
#include "gearextconfig_win32debugdll.h"
|
|
|
|
#endif
|
|
|
|
//===================================================================
|
|
//DO NOT DELETE HEADER NEEDED TO KEEP PROFILE NAME
|
|
//================================= PROFILE: Win32ReleaseDLL (release2, win32) ====================
|
|
#if GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_WIN32 && ( defined(GEAR_TARGET_RELEASE2) || defined(GEAR_EXTTARGET_RELEASEDLL_WIN32) )
|
|
|
|
#include "gearextconfig_win32releasedll.h"
|
|
|
|
#endif
|
|
|
|
//===================================================================
|
|
//DO NOT DELETE HEADER NEEDED TO KEEP PROFILE NAME
|
|
//================================= PROFILE: Win64Release (release, win64) ====================
|
|
#if GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_WIN64 && defined(GEAR_TARGET_RELEASE)
|
|
|
|
#include "gearextconfig_win64release.h"
|
|
|
|
#endif
|
|
|
|
//===================================================================
|
|
//DO NOT DELETE HEADER NEEDED TO KEEP PROFILE NAME
|
|
//================================= PROFILE: Win64Debug (debug, win64) ====================
|
|
#if GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_WIN64 && defined(GEAR_TARGET_DEBUG)
|
|
|
|
#include "gearextconfig_win64debug.h"
|
|
|
|
#endif
|
|
|
|
//===================================================================
|
|
//DO NOT DELETE HEADER NEEDED TO KEEP PROFILE NAME
|
|
//================================= PROFILE: DurangoDebug (debug, durango) ====================
|
|
#if GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_DURANGO && ( defined(GEAR_TARGET_DEBUG) || defined(GEAR_EXTTARGET_DEBUG_DURANGO) )
|
|
|
|
#include "gearextconfig_durangodebug.h"
|
|
|
|
#endif
|
|
|
|
|
|
//===================================================================
|
|
//DO NOT DELETE HEADER NEEDED TO KEEP PROFILE NAME
|
|
//================================= PROFILE: DurangoRelease (release, durango) ====================
|
|
#if GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_DURANGO && ( defined(GEAR_TARGET_RELEASE) || defined(GEAR_EXTTARGET_RELEASE_DURANGO) )
|
|
|
|
#include "gearextconfig_durangorelease.h"
|
|
|
|
#endif
|
|
|
|
//===================================================================
|
|
//DO NOT DELETE HEADER NEEDED TO KEEP PROFILE NAME
|
|
//================================= PROFILE: DurangoFinal (release1, durango) ====================
|
|
#if GEAR_PLATFORM_AUTODETECT == GEAR_PLATFORM_DURANGO && ( defined(GEAR_TARGET_RELEASE1) || defined(GEAR_EXTTARGET_FINAL_DURANGO) )
|
|
|
|
#include "gearextconfig_durangofinal.h"
|
|
|
|
#endif
|
|
|
|
//===================================================================
|
|
//@CONFIG_TARGETGUARD_SECTION
|
|
#if ! defined(TARGET_PROFILE_SELECTED)
|
|
#error "No profile were selected in gearextconfig.h"
|
|
#endif
|
|
//@END_CONFIG_TARGETGUARD_SECTION
|
|
//===================================================================
|
|
/*================================================================
|
|
* Configuration data section :
|
|
* This section is used by the tool to save , unique information related
|
|
* to your current config like profile groups,etc.
|
|
=================================================================*/
|
|
//@CONFIG_DATA_SECTION
|
|
//@END_CONFIG_DATA_SECTION
|
|
|