add waf buildsystem

This commit is contained in:
nillerusr
2021-03-31 20:12:00 +03:00
parent 0b3e8be302
commit 5e870e53c1
52 changed files with 3964 additions and 2 deletions

View File

@@ -0,0 +1,75 @@
#! /usr/bin/env python
# encoding: utf-8
from waflib import Utils
import os
top = '.'
PROJECT_NAME = 'shaderapidx9'
def options(opt):
# stub
return
def configure(conf):
conf.env.append_unique('DEFINES',[
'SHADERAPIDX9',
'SHADER_DLL_EXPORT',
'PROTECTED_THINGS_ENABLE',
'strncpy=use_Q_strncpy_instead',
'_snprintf=use_Q_snprintf_instead',
'GL_GLEXT_PROTOTYPES',
'DX_TO_GL_ABSTRACTION'
])
def build(bld):
source = [
'colorformatdx8.cpp',
'../../public/filesystem_helpers.cpp',
'hardwareconfig.cpp',
'meshbase.cpp',
'meshdx8.cpp',
#'recording.cpp', [$WIN32 && !$GL]
'shaderapidx8.cpp',
'shaderdevicebase.cpp',
'shaderapibase.cpp',
'shaderdevicedx8.cpp',
'shadershadowdx8.cpp',
'texturedx8.cpp',
'TransitionTable.cpp',
'cvballoctracker.cpp',
'vertexdecl.cpp',
'vertexshaderdx8.cpp',
#'wmi.cpp', [$WIN32 && !$GL]
#'textureheap.cpp', [$X360]
'winutils.cpp'# [!$WIN32]
]
includes = [
'.',
'../../public',
'../../public/tier0',
'../../public/tier1',
'../../common',
'../'
] + bld.env.INCLUDES_SDL2
defines = []
libs = ['tier0','tier1','tier2','vstdlib','togl','bitmap','mathlib']
install_path = bld.env.PREFIX
bld.shlib(
source = source,
target = PROJECT_NAME,
name = PROJECT_NAME,
features = 'c cxx',
includes = includes,
defines = defines,
use = libs,
install_path = install_path,
subsystem = bld.env.MSVC_SUBSYSTEM,
idx = bld.get_taskgen_count()
)

View File

@@ -0,0 +1,51 @@
#! /usr/bin/env python
# encoding: utf-8
from waflib import Utils
import os
top = '.'
PROJECT_NAME = 'shaderlib'
def options(opt):
# stub
return
def configure(conf):
conf.define('FAST_MATERIALVAR_ACCESS',1)
def build(bld):
source = [
'BaseShader.cpp',
'ShaderDLL.cpp',
'shaderlib_cvar.cpp'
]
includes = [
'.',
'../../public',
'../../public/tier0',
'../../public/tier1',
'../../common',
'../'
]
defines = []
libs = []
install_path = bld.env.PREFIX
bld.stlib(
source = source,
target = PROJECT_NAME,
name = PROJECT_NAME,
features = 'c cxx',
includes = includes,
defines = defines,
use = libs,
install_path = install_path,
subsystem = bld.env.MSVC_SUBSYSTEM,
idx = bld.get_taskgen_count()
)

View File

@@ -0,0 +1,167 @@
#! /usr/bin/env python
# encoding: utf-8
from waflib import Utils
import os
top = '.'
PROJECT_NAME = 'stdshader_dx9'
def options(opt):
# stub
return
def configure(conf):
conf.env.append_unique('DEFINES',[
'STDSHADER_DX9_DLL_EXPORT',
'FAST_MATERIALVAR_ACCESS'
])
def build(bld):
source = [
'aftershock.cpp',
'aftershock_helper.cpp',
'AccumBuff4Sample.cpp',
'accumbuff5sample.cpp',
'BaseVSShader.cpp',
'bik_dx90.cpp',
'Bloom.cpp',
'BlurFilterX.cpp',
'BlurFilterY.cpp',
'BufferClearObeyStencil_dx9.cpp',
'cable_dx9.cpp',
'cloak.cpp',
'cloak_blended_pass_helper.cpp',
'cloak_dx9_helper.cpp',
'cloud_dx9.cpp',
'colorcorrection.cpp',
'compositor.cpp',
'core_dx9.cpp',
'color_projection.cpp',
'debugmrttexture.cpp',
#'debugmorphaccumulator_dx9.cpp', [$WIN32]
'DebugTextureView.cpp',
'DecalBaseTimesLightmapAlphaBlendSelfIllum_dx9.cpp',
'DecalModulate_dx9.cpp',
'depthwrite.cpp',
'Downsample.cpp',
'downsample_nohdr.cpp',
'Engine_Post_dx9.cpp',
'emissive_scroll_blended_pass_helper.cpp',
'eye_refract.cpp',
'eye_refract_helper.cpp',
'eyes_dx8_dx9_helper.cpp',
'eyes_dx9.cpp',
'eyeglint_dx9.cpp',
'filmdust_dx8_dx9.cpp',
'filmgrain_dx8_dx9.cpp',
'flesh_interior_blended_pass_helper.cpp',
'floatcombine.cpp',
'floatcombine_autoexpose.cpp',
'floattoscreen.cpp',
'floattoscreen_vanilla.cpp',
'HDRCombineTo16Bit.cpp',
'HDRSelectRange.cpp',
'hsl_filmgrain_pass1.cpp',
'hsl_filmgrain_pass2.cpp',
'hsv.cpp',
'introscreenspaceeffect.cpp',
'lightmappedgeneric_dx9.cpp',
'lightmappedgeneric_dx9_helper.cpp',
'lightmappedreflective.cpp',
'modulate_dx9.cpp',
'MonitorScreen_dx9.cpp',
#'morphaccumulate_dx9.cpp', [$WIN32]
#'morphweight_dx9.cpp', [$WIN32]
'motion_blur_dx9.cpp',
'occlusion_dx9.cpp',
'particlelitgeneric_dx9.cpp',
'particlelitgeneric_dx9_helper.cpp',
'particlesphere_dx9.cpp',
'portal.cpp',
'portalstaticoverlay.cpp',
'portal_refract.cpp',
'portal_refract_helper.cpp',
'pyro_vision.cpp',
'refract.cpp',
'refract_dx9_helper.cpp',
#'rendertargetblit_x360.cpp', [$X360]
'sample4x4.cpp',
'sample4x4_blend.cpp',
'screenspace_general.cpp',
'sfm_blurfilterx.cpp',
'sfm_blurfiltery.cpp',
'sfm_downsample.cpp',
'sfm_integercombine.cpp',
'shadow.cpp',
'shadowbuild_dx9.cpp',
'shadowmodel_dx9.cpp',
'shatteredglass.cpp',
'showz.cpp',
'skin_dx9_helper.cpp',
'sky_dx9.cpp',
'sky_hdr_dx9.cpp',
'sprite_dx9.cpp',
'spritecard.cpp',
'teeth.cpp',
'TreeLeaf.cpp',
'unlitgeneric_dx9.cpp',
'unlittwotexture_dx9.cpp',
'vertexlitgeneric_dx9.cpp',
'vertexlitgeneric_dx9_helper.cpp',
'volume_clouds.cpp',
'volume_clouds_helper.cpp',
'vortwarp_dx9.cpp',
'vr_distort_hud.cpp',
'vr_distort_texture.cpp',
'warp.cpp',
'water.cpp',
'weapon_sheen_pass_helper.cpp',
'windowimposter_dx90.cpp',
'wireframe_dx9.cpp',
'worldtwotextureblend.cpp',
'worldvertexalpha.cpp',
'worldvertextransition.cpp',
'worldvertextransition_dx8_helper.cpp',
'writez_dx9.cpp',
'writestencil_dx9.cpp',
'eyeball.cpp'
# $Folder 'stdshader_dbg Files', [$X360]
# {
# 'debugdepth.cpp',
# 'DebugDrawEnvmapMask.cpp',
# 'debugluxel.cpp',
# 'debugnormalmap.cpp',
# 'debugtangentspace.cpp',
# 'fillrate.cpp',
]
includes = [
'.',
'../../public',
'../../public/tier0',
'../../public/tier1',
'fxctmp9',
'vshtmp9'
] + bld.env.INCLUDES_SDL2
defines = []
libs = ['tier0','shaderlib','tier1','mathlib']
install_path = bld.env.PREFIX
bld.shlib(
source = source,
target = PROJECT_NAME,
name = PROJECT_NAME,
features = 'c cxx',
includes = includes,
defines = defines,
use = libs,
install_path = install_path,
subsystem = bld.env.MSVC_SUBSYSTEM,
idx = bld.get_taskgen_count()
)

77
materialsystem/wscript Executable file
View File

@@ -0,0 +1,77 @@
#! /usr/bin/env python
# encoding: utf-8
from waflib import Utils
import os
top = '.'
PROJECT_NAME = 'materialsystem'
def options(opt):
# stub
return
def configure(conf):
conf.env.append_unique('DEFINES',[
'DEFINE_MATERIALSYSTEM_INTERFACE',
'MATERIALSYSTEM_EXPORTS',
'PROTECTED_THINGS_ENABLE',
'strncpy=use_Q_strncpy_instead',
'_snprintf=use_Q_snprintf_instead'
])
def build(bld):
source = [
'CColorCorrection.cpp',
'cmaterial.cpp',
'cmaterial_queuefriendly.cpp',
'CMaterialSubRect.cpp',
'cmaterialvar.cpp',
'cmatnullrendercontext.cpp',
'colorspace.cpp',
'ctexture.cpp',
'../public/filesystem_helpers.cpp',
'imagepacker.cpp',
'mat_stub.cpp',
'materialsystem_global.cpp',
'morph.cpp',
'occlusionquerymgr.cpp',
'shadersystem.cpp',
'texturemanager.cpp',
'pch_materialsystem.cpp',
'cmaterialdict.cpp',
'cmaterialsystem.cpp',
'cmatlightmaps.cpp',
'cmatrendercontext.cpp',
'cmatqueuedrendercontext.cpp',
'ctexturecompositor.cpp'
]
includes = [
'.',
'../../public',
'../../public/tier0',
'../../public/tier1',
'../../common',
'../'
] + bld.env.INCLUDES_SDL2
defines = []
libs = ['tier0','tier1','tier2','vstdlib','mathlib','bitmap','shaderlib','vtf']
install_path = bld.env.PREFIX
bld.shlib(
source = source,
target = PROJECT_NAME,
name = PROJECT_NAME,
features = 'c cxx',
includes = includes,
defines = defines,
use = libs,
install_path = install_path,
subsystem = bld.env.MSVC_SUBSYSTEM,
idx = bld.get_taskgen_count()
)