source-engine/tier1/wscript

91 lines
1.6 KiB
Plaintext
Raw Normal View History

2021-03-31 17:12:00 +00:00
#! /usr/bin/env python
# encoding: utf-8
from waflib import Utils
import os
top = '.'
PROJECT_NAME = 'tier1'
def options(opt):
# stub
return
def configure(conf):
conf.env.append_unique('DEFINES', ['TIER1_STATIC_LIB=1'])
def build(bld):
print(bld)
source = [
'../utils/lzma/C/LzmaDec.c',
'bitbuf.cpp',
'byteswap.cpp',
'characterset.cpp',
'checksum_crc.cpp',
'checksum_md5.cpp',
'checksum_sha1.cpp',
'commandbuffer.cpp',
'convar.cpp',
'datamanager.cpp',
'diff.cpp',
'generichash.cpp',
'ilocalize.cpp',
'interface.cpp',
'KeyValues.cpp',
'keyvaluesjson.cpp',
'kvpacker.cpp',
'lzmaDecoder.cpp',
'lzss.cpp', # [!$SOURCESDK]
'mempool.cpp',
'memstack.cpp',
'NetAdr.cpp',
'newbitbuf.cpp',
# 'pathmatch.cpp', # [$LINUXALL]
2021-03-31 17:12:00 +00:00
# 'processor_detect.cpp', # [$WINDOWS||$X360]
'processor_detect_linux.cpp', # [$POSIX]
'qsort_s.cpp', # [$LINUXALL||$PS3]
'rangecheckedvar.cpp',
'reliabletimer.cpp',
'snappy-sinksource.cpp',
'snappy-stubs-internal.cpp',
'snappy.cpp',
'sparsematrix.cpp',
'splitstring.cpp',
'stringpool.cpp',
'strtools.cpp',
'strtools_unicode.cpp',
'tier1.cpp',
'tokenreader.cpp',
'uniqueid.cpp',
'utlbinaryblock.cpp',
'utlbuffer.cpp',
'utlbufferutil.cpp',
'utlstring.cpp',
'utlsymbol.cpp'
]
includes = [
'.',
'../public',
'../public/tier1',
2021-04-25 20:36:09 +00:00
'../public/tier0',
'../common'
2021-03-31 17:12:00 +00:00
]
defines = []
libs = []
bld.stlib(
source = source,
target = PROJECT_NAME,
name = PROJECT_NAME,
features = 'c cxx',
includes = includes,
defines = defines,
use = libs,
subsystem = bld.env.MSVC_SUBSYSTEM,
idx = bld.get_taskgen_count()
)