Skip to content

Commit

Permalink
add waf buildsystem
Browse files Browse the repository at this point in the history
  • Loading branch information
nillerusr committed Mar 31, 2021
1 parent 0b3e8be commit 5e870e5
Show file tree
Hide file tree
Showing 52 changed files with 3,964 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.mak
*.mak.vpc_crc
*.vpc_crc
*.a
*.project
lib/
*obj_*
build/
53 changes: 53 additions & 0 deletions appframework/wscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#! /usr/bin/env python
# encoding: utf-8

from waflib import Utils
import os

top = '.'
PROJECT_NAME = 'appframework'

def options(opt):
# stub
return

def configure(conf):
return

def build(bld):
source = [
'AppSystemGroup.cpp',
'../public/filesystem_init.cpp',
# 'vguimatsysapp.cpp' [$WIN32]
# 'winapp.cpp' [$WIN32]
'posixapp.cpp',# [$POSIX]
'sdlmgr.cpp'# [$SDL]
# 'glmrendererinfo_osx.mm' [$OSXALL]
]

includes = [
'.',
'../public',
'../public/tier0',
'../public/tier1'
] + bld.env.INCLUDES_SDL2

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()
)

61 changes: 61 additions & 0 deletions bitmap/wscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
#! /usr/bin/env python
# encoding: utf-8

from waflib import Utils
import os

top = '.'
PROJECT_NAME = 'bitmap'

def options(opt):
# stub
return

def configure(conf):
return

def build(bld):
source = [
'ImageByteSwap.cpp',
'colorconversion.cpp',
'float_bm.cpp',
'float_bm2.cpp',
'float_bm3.cpp',
#'float_bm4.cpp', [$WINDOWS]
'float_bm_bilateral_filter.cpp',
'float_cube.cpp',
'imageformat.cpp',
'psd.cpp',
'resample.cpp',
'tgaloader.cpp',
'tgawriter.cpp',
'bitmap.cpp'
]

includes = [
'.',
'../public',
'../public/tier0',
'../public/tier1',
'../thirdparty/stb'
]

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()
)

52 changes: 52 additions & 0 deletions datacache/wscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#! /usr/bin/env python
# encoding: utf-8

from waflib import Utils
import os

top = '.'
PROJECT_NAME = 'datacache'

def options(opt):
# stub
return

def configure(conf):
return

def build(bld):
source = [
'datacache.cpp',
'mdlcache.cpp',
'../public/studio.cpp',
'../public/studio_virtualmodel.cpp',
'../common/studiobyteswap.cpp'
]

includes = [
'.',
'../public',
'../public/tier0',
'../public/tier1',
'../common'
]

defines = []

libs = ['tier0','tier1','tier2','tier3']

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()
)

58 changes: 58 additions & 0 deletions datamodel/wscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#! /usr/bin/env python
# encoding: utf-8

from waflib import Utils
import os

top = '.'
PROJECT_NAME = 'datamodel'

def options(opt):
return

def configure(conf):
conf.define('DATAMODEL_LIB',1)

def build(bld):
source = [
'clipboardmanager.cpp',
'datamodel.cpp',
'dependencygraph.cpp',
'dmattribute.cpp',
'dmelement.cpp',
'dmelementdictionary.cpp',
'dmelementfactoryhelper.cpp',
'DmElementFramework.cpp',
'dmserializerbinary.cpp',
'dmserializerkeyvalues.cpp',
'dmserializerkeyvalues2.cpp',
'undomanager.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()
)

2 changes: 1 addition & 1 deletion devtools/makefile_base_posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ COPY_DLL_TO_SRV = 0

# We should always specify -Wl,--build-id, as documented at:
# http://linux.die.net/man/1/ld and http://fedoraproject.org/wiki/Releases/FeatureBuildId.http://fedoraproject.org/wiki/Releases/FeatureBuildId
LDFLAGS += -Wl,--build-id -fsanitize=address -fsanitize=undefined
LDFLAGS += -Wl,--build-id

#
# If we should be running in a chroot, check to see if we are. If not, then prefix everything with the
Expand Down
52 changes: 52 additions & 0 deletions dmxloader/wscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#! /usr/bin/env python
# encoding: utf-8

from waflib import Utils
import os

top = '.'
PROJECT_NAME = 'dmxloader'

def options(opt):
# stub
return

def configure(conf):
conf.define('DMXLOADER_LIB',1)

def build(bld):
source = [
'dmxattribute.cpp',
'dmxelement.cpp',
'dmxloader.cpp',
'dmxloadertext.cpp',
'dmxserializationdictionary.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()
)

47 changes: 47 additions & 0 deletions engine/voice_codecs/minimp3/wscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#! /usr/bin/env python
# encoding: utf-8

from waflib import Utils
import os

top = '.'
PROJECT_NAME = 'vaudio_minimp3'

def options(opt):
# stub
return

def configure(conf):
return

def build(bld):
source = [
'mp3codecs.cpp',
]

includes = [
'.',
'../../../public/tier1',
'../../../public/',
'../../../thirdparty/minimp3'
]

defines = []

libs = ['tier0','tier1','vstdlib']

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()
)

Loading

0 comments on commit 5e870e5

Please sign in to comment.