Skip to content

Commit 5e870e5

Browse files
committed
add waf buildsystem
1 parent 0b3e8be commit 5e870e5

File tree

52 files changed

+3964
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+3964
-2
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*.mak
2+
*.mak.vpc_crc
3+
*.vpc_crc
4+
*.a
5+
*.project
6+
lib/
7+
*obj_*
8+
build/

appframework/wscript

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#! /usr/bin/env python
2+
# encoding: utf-8
3+
4+
from waflib import Utils
5+
import os
6+
7+
top = '.'
8+
PROJECT_NAME = 'appframework'
9+
10+
def options(opt):
11+
# stub
12+
return
13+
14+
def configure(conf):
15+
return
16+
17+
def build(bld):
18+
source = [
19+
'AppSystemGroup.cpp',
20+
'../public/filesystem_init.cpp',
21+
# 'vguimatsysapp.cpp' [$WIN32]
22+
# 'winapp.cpp' [$WIN32]
23+
'posixapp.cpp',# [$POSIX]
24+
'sdlmgr.cpp'# [$SDL]
25+
# 'glmrendererinfo_osx.mm' [$OSXALL]
26+
]
27+
28+
includes = [
29+
'.',
30+
'../public',
31+
'../public/tier0',
32+
'../public/tier1'
33+
] + bld.env.INCLUDES_SDL2
34+
35+
defines = []
36+
37+
libs = []
38+
39+
install_path = bld.env.PREFIX
40+
41+
bld.stlib(
42+
source = source,
43+
target = PROJECT_NAME,
44+
name = PROJECT_NAME,
45+
features = 'c cxx',
46+
includes = includes,
47+
defines = defines,
48+
use = libs,
49+
install_path = install_path,
50+
subsystem = bld.env.MSVC_SUBSYSTEM,
51+
idx = bld.get_taskgen_count()
52+
)
53+

bitmap/wscript

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
#! /usr/bin/env python
2+
# encoding: utf-8
3+
4+
from waflib import Utils
5+
import os
6+
7+
top = '.'
8+
PROJECT_NAME = 'bitmap'
9+
10+
def options(opt):
11+
# stub
12+
return
13+
14+
def configure(conf):
15+
return
16+
17+
def build(bld):
18+
source = [
19+
'ImageByteSwap.cpp',
20+
'colorconversion.cpp',
21+
'float_bm.cpp',
22+
'float_bm2.cpp',
23+
'float_bm3.cpp',
24+
#'float_bm4.cpp', [$WINDOWS]
25+
'float_bm_bilateral_filter.cpp',
26+
'float_cube.cpp',
27+
'imageformat.cpp',
28+
'psd.cpp',
29+
'resample.cpp',
30+
'tgaloader.cpp',
31+
'tgawriter.cpp',
32+
'bitmap.cpp'
33+
]
34+
35+
includes = [
36+
'.',
37+
'../public',
38+
'../public/tier0',
39+
'../public/tier1',
40+
'../thirdparty/stb'
41+
]
42+
43+
defines = []
44+
45+
libs = []
46+
47+
install_path = bld.env.PREFIX
48+
49+
bld.stlib(
50+
source = source,
51+
target = PROJECT_NAME,
52+
name = PROJECT_NAME,
53+
features = 'c cxx',
54+
includes = includes,
55+
defines = defines,
56+
use = libs,
57+
install_path = install_path,
58+
subsystem = bld.env.MSVC_SUBSYSTEM,
59+
idx = bld.get_taskgen_count()
60+
)
61+

datacache/wscript

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
#! /usr/bin/env python
2+
# encoding: utf-8
3+
4+
from waflib import Utils
5+
import os
6+
7+
top = '.'
8+
PROJECT_NAME = 'datacache'
9+
10+
def options(opt):
11+
# stub
12+
return
13+
14+
def configure(conf):
15+
return
16+
17+
def build(bld):
18+
source = [
19+
'datacache.cpp',
20+
'mdlcache.cpp',
21+
'../public/studio.cpp',
22+
'../public/studio_virtualmodel.cpp',
23+
'../common/studiobyteswap.cpp'
24+
]
25+
26+
includes = [
27+
'.',
28+
'../public',
29+
'../public/tier0',
30+
'../public/tier1',
31+
'../common'
32+
]
33+
34+
defines = []
35+
36+
libs = ['tier0','tier1','tier2','tier3']
37+
38+
install_path = bld.env.PREFIX
39+
40+
bld.shlib(
41+
source = source,
42+
target = PROJECT_NAME,
43+
name = PROJECT_NAME,
44+
features = 'c cxx',
45+
includes = includes,
46+
defines = defines,
47+
use = libs,
48+
install_path = install_path,
49+
subsystem = bld.env.MSVC_SUBSYSTEM,
50+
idx = bld.get_taskgen_count()
51+
)
52+

datamodel/wscript

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#! /usr/bin/env python
2+
# encoding: utf-8
3+
4+
from waflib import Utils
5+
import os
6+
7+
top = '.'
8+
PROJECT_NAME = 'datamodel'
9+
10+
def options(opt):
11+
return
12+
13+
def configure(conf):
14+
conf.define('DATAMODEL_LIB',1)
15+
16+
def build(bld):
17+
source = [
18+
'clipboardmanager.cpp',
19+
'datamodel.cpp',
20+
'dependencygraph.cpp',
21+
'dmattribute.cpp',
22+
'dmelement.cpp',
23+
'dmelementdictionary.cpp',
24+
'dmelementfactoryhelper.cpp',
25+
'DmElementFramework.cpp',
26+
'dmserializerbinary.cpp',
27+
'dmserializerkeyvalues.cpp',
28+
'dmserializerkeyvalues2.cpp',
29+
'undomanager.cpp'
30+
]
31+
32+
includes = [
33+
'.',
34+
'../public',
35+
'../public/tier0',
36+
'../public/tier1',
37+
'../common'
38+
]
39+
40+
defines = []
41+
42+
libs = []
43+
44+
install_path = bld.env.PREFIX
45+
46+
bld.stlib(
47+
source = source,
48+
target = PROJECT_NAME,
49+
name = PROJECT_NAME,
50+
features = 'c cxx',
51+
includes = includes,
52+
defines = defines,
53+
use = libs,
54+
install_path = install_path,
55+
subsystem = bld.env.MSVC_SUBSYSTEM,
56+
idx = bld.get_taskgen_count()
57+
)
58+

devtools/makefile_base_posix.mak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ COPY_DLL_TO_SRV = 0
116116

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

121121
#
122122
# If we should be running in a chroot, check to see if we are. If not, then prefix everything with the

dmxloader/wscript

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
#! /usr/bin/env python
2+
# encoding: utf-8
3+
4+
from waflib import Utils
5+
import os
6+
7+
top = '.'
8+
PROJECT_NAME = 'dmxloader'
9+
10+
def options(opt):
11+
# stub
12+
return
13+
14+
def configure(conf):
15+
conf.define('DMXLOADER_LIB',1)
16+
17+
def build(bld):
18+
source = [
19+
'dmxattribute.cpp',
20+
'dmxelement.cpp',
21+
'dmxloader.cpp',
22+
'dmxloadertext.cpp',
23+
'dmxserializationdictionary.cpp'
24+
]
25+
26+
includes = [
27+
'.',
28+
'../public',
29+
'../public/tier0',
30+
'../public/tier1',
31+
'../common'
32+
]
33+
34+
defines = []
35+
36+
libs = []
37+
38+
install_path = bld.env.PREFIX
39+
40+
bld.stlib(
41+
source = source,
42+
target = PROJECT_NAME,
43+
name = PROJECT_NAME,
44+
features = 'c cxx',
45+
includes = includes,
46+
defines = defines,
47+
use = libs,
48+
install_path = install_path,
49+
subsystem = bld.env.MSVC_SUBSYSTEM,
50+
idx = bld.get_taskgen_count()
51+
)
52+
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#! /usr/bin/env python
2+
# encoding: utf-8
3+
4+
from waflib import Utils
5+
import os
6+
7+
top = '.'
8+
PROJECT_NAME = 'vaudio_minimp3'
9+
10+
def options(opt):
11+
# stub
12+
return
13+
14+
def configure(conf):
15+
return
16+
17+
def build(bld):
18+
source = [
19+
'mp3codecs.cpp',
20+
]
21+
22+
includes = [
23+
'.',
24+
'../../../public/tier1',
25+
'../../../public/',
26+
'../../../thirdparty/minimp3'
27+
]
28+
29+
defines = []
30+
31+
libs = ['tier0','tier1','vstdlib']
32+
33+
install_path = bld.env.PREFIX
34+
35+
bld.shlib(
36+
source = source,
37+
target = PROJECT_NAME,
38+
name = PROJECT_NAME,
39+
features = 'c cxx',
40+
includes = includes,
41+
defines = defines,
42+
use = libs,
43+
install_path = install_path,
44+
subsystem = bld.env.MSVC_SUBSYSTEM,
45+
idx = bld.get_taskgen_count()
46+
)
47+

0 commit comments

Comments
 (0)