mirror of
https://github.com/celisej567/source-engine.git
synced 2025-12-31 21:48:22 +03:00
fix windows build scripts, add windows opus support
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 = [
|
||||
'.',
|
||||
|
||||
@@ -19,7 +19,8 @@ def configure(conf):
|
||||
|
||||
def build(bld):
|
||||
source = [
|
||||
'shaderapiempty.cpp'
|
||||
'shaderapiempty.cpp',
|
||||
'../../public/tier0/memoverride.cpp'
|
||||
]
|
||||
|
||||
includes = [
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user