mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-01-04 00:23:25 +08:00
8a6d1c6cd2
* Fix compilation for windows, setup ambuild * Add built tier1 and mathlib for win64 * Ensure compilation is working on windows and linux * Add -fPIC * Add compiled libs, with optimisation enabled * Added windows lib * Fix hl2sdk for windows * Longs are the devil * Fix up threadtools functions * Add updated libs * Rework lib naming, and package script * Update lib directory according to new packaging --------- Co-authored-by: Kenzzer <kenzzer@users.noreply.github.com>
48 lines
1.0 KiB
Python
48 lines
1.0 KiB
Python
# vim: set ts=2 sw=2 tw=99 noet ft=python:
|
|
import os, sys
|
|
|
|
builder.SetBuildFolder('/')
|
|
|
|
project = builder.StaticLibraryProject('tier1')
|
|
|
|
project.sources = [
|
|
'bitbuf.cpp',
|
|
'byteswap.cpp',
|
|
'characterset.cpp',
|
|
'checksum_crc.cpp',
|
|
'checksum_md5.cpp',
|
|
'commandbuffer.cpp',
|
|
'convar.cpp',
|
|
'datamanager.cpp',
|
|
'diff.cpp',
|
|
'generichash.cpp',
|
|
'interface.cpp',
|
|
'KeyValues.cpp',
|
|
'mempool.cpp',
|
|
'memstack.cpp',
|
|
'NetAdr.cpp',
|
|
'newbitbuf.cpp',
|
|
'processor_detect.cpp',
|
|
'rangecheckedvar.cpp',
|
|
'stringpool.cpp',
|
|
'strtools.cpp',
|
|
'tier1.cpp',
|
|
'undiff.cpp',
|
|
'uniqueid.cpp',
|
|
'utlbuffer.cpp',
|
|
'utlbufferutil.cpp',
|
|
'utlstring.cpp',
|
|
'utlsymbol.cpp'
|
|
]
|
|
|
|
for cxx in HL2SDK.targets:
|
|
binary = HL2SDK.ConfigureLibrary(project, cxx, builder)
|
|
compiler = binary.compiler
|
|
|
|
compiler.cxxincludes += [
|
|
os.path.join(builder.currentSourcePath, '..', 'public'),
|
|
os.path.join(builder.currentSourcePath, '..', 'public', 'tier0'),
|
|
os.path.join(builder.currentSourcePath, '..', 'public', 'tier1')
|
|
]
|
|
|
|
HL2SDK.libs += builder.Add(project) |