mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-20 12:36:05 +08:00
TF2 win64 + Ambuild tier1/mathlib + long=devil (#198)
* 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>
This commit is contained in:
45
mathlib/AMBuilder
Normal file
45
mathlib/AMBuilder
Normal file
@ -0,0 +1,45 @@
|
||||
# vim: set ts=2 sw=2 tw=99 noet ft=python:
|
||||
import os, sys
|
||||
|
||||
def AddSourceFilesFromDir(path, files):
|
||||
list = []
|
||||
for file in files:
|
||||
list.append(os.path.join(path, file))
|
||||
return list
|
||||
|
||||
builder.SetBuildFolder('/')
|
||||
|
||||
project = builder.StaticLibraryProject('mathlib')
|
||||
project.sources = [
|
||||
'anorms.cpp',
|
||||
'bumpvects.cpp',
|
||||
'color_conversion.cpp',
|
||||
'halton.cpp',
|
||||
'IceKey.cpp',
|
||||
'imagequant.cpp',
|
||||
'lightdesc.cpp',
|
||||
'mathlib_base.cpp',
|
||||
'polyhedron.cpp',
|
||||
'powsse.cpp',
|
||||
'quantize.cpp',
|
||||
'randsse.cpp',
|
||||
'simdvectormatrix.cpp',
|
||||
'sparse_convolution_noise.cpp',
|
||||
'sse.cpp',
|
||||
'sseconst.cpp',
|
||||
'ssenoise.cpp',
|
||||
'vector.cpp',
|
||||
'vmatrix.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', 'mathlib')
|
||||
]
|
||||
|
||||
HL2SDK.libs += builder.Add(project)
|
Reference in New Issue
Block a user