fix windows build scripts, add windows opus support

This commit is contained in:
HappyDOGE
2022-07-28 14:27:56 +03:00
parent 90cd6e0e15
commit 3faf6a69ac
149 changed files with 396 additions and 170 deletions

View File

@@ -39,7 +39,9 @@ void FastCopy( byte *pDest, const byte *pSrc, size_t nBytes )
int nBytesFull = nBytes - ( nBytes % BYTES_PER_FULL );
for ( byte *pLimit = pDest + nBytesFull; pDest < pLimit; pDest += BYTES_PER_FULL, pSrc += BYTES_PER_FULL )
{
// memcpy( pDest, pSrc, BYTES_PER_FULL);
#ifdef PLATFORM_64BITS
memcpy( pDest, pSrc, BYTES_PER_FULL);
#else
__asm
{
mov esi, pSrc
@@ -63,6 +65,7 @@ void FastCopy( byte *pDest, const byte *pSrc, size_t nBytes )
movntps [edi + 96], xmm6
movntps [edi + 112], xmm7
}
#endif
}
nBytes -= nBytesFull;
}

View File

@@ -44,6 +44,7 @@ def build(bld):
'vertexdecl.cpp',
'vertexshaderdx8.cpp',
#'textureheap.cpp', [$X360]
'../../public/tier0/memoverride.cpp'
]
if bld.env.DEST_OS == 'win32' and not bld.env.GL:
@@ -54,8 +55,6 @@ def build(bld):
if bld.env.DEST_OS != 'win32':
source += ['winutils.cpp']
else:
source += ['../../public/tier0/memoverride.cpp']
includes = [
'.',

View File

@@ -19,7 +19,8 @@ def configure(conf):
def build(bld):
source = [
'shaderapiempty.cpp'
'shaderapiempty.cpp',
'../../public/tier0/memoverride.cpp'
]
includes = [

View File

@@ -553,7 +553,7 @@ public:
// Asserts to make sure that we aren't using any skipped combinations.
// Asserts to make sure that we are setting all of the combination vars.
#ifdef _DEBUG
bool bAllDynamicVarsDefined = m_bPIXELFOGTYPE && m_bLIGHTING_PREVIEW && m_bSTATIC_LIGHT_LIGHTMAP;
bool bAllDynamicVarsDefined = m_bPIXELFOGTYPE && m_bLIGHTING_PREVIEW; // && m_bSTATIC_LIGHT_LIGHTMAP
Assert( bAllDynamicVarsDefined );
#endif // _DEBUG
return ( 1 * m_nPIXELFOGTYPE ) + ( 2 * m_nLIGHTING_PREVIEW ) + 0;

View File

@@ -125,7 +125,8 @@ def build(bld):
'worldvertextransition_dx8_helper.cpp',
'writez_dx9.cpp',
'writestencil_dx9.cpp',
'eyeball.cpp'
'eyeball.cpp',
'../../public/tier0/memoverride.cpp'
# $Folder 'stdshader_dbg Files', [$X360]
# {
# 'debugdepth.cpp',

View File

@@ -44,18 +44,16 @@ def build(bld):
'cmatlightmaps.cpp',
'cmatrendercontext.cpp',
'cmatqueuedrendercontext.cpp',
'ctexturecompositor.cpp'
'ctexturecompositor.cpp',
'../public/tier0/memoverride.cpp'
]
if bld.env.DEST_OS == 'win32':
source += ['../public/tier0/memoverride.cpp']
includes = [
'.',
'../../public',
'../../public/tier0',
'../../public/tier1',
'../../common',
'../public',
'../public/tier0',
'../public/tier1',
'../common',
'../'
] + bld.env.INCLUDES_SDL2