mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-01-31 09:15:11 +00:00
wscript: add --use-ccache option
This commit is contained in:
parent
88e720bfc1
commit
887c0c73f6
8
wscript
8
wscript
@ -198,6 +198,9 @@ def options(opt):
|
|||||||
grp.add_option('--use-togl', action = 'store', dest = 'GL', type = 'int', default = True,
|
grp.add_option('--use-togl', action = 'store', dest = 'GL', type = 'int', default = True,
|
||||||
help = 'build engine with ToGL [default: %default]')
|
help = 'build engine with ToGL [default: %default]')
|
||||||
|
|
||||||
|
grp.add_option('--use-ccache', action = 'store_true', dest = 'CCACHE', default = False,
|
||||||
|
help = 'build using ccache [default: %default]')
|
||||||
|
|
||||||
opt.load('compiler_optimizations subproject')
|
opt.load('compiler_optimizations subproject')
|
||||||
|
|
||||||
# opt.add_subproject(projects['game'])
|
# opt.add_subproject(projects['game'])
|
||||||
@ -366,9 +369,10 @@ def configure(conf):
|
|||||||
conf.env.BINDIR = conf.env.PREFIX
|
conf.env.BINDIR = conf.env.PREFIX
|
||||||
else:
|
else:
|
||||||
conf.env.LIBDIR = conf.env.BINDIR = conf.env.PREFIX
|
conf.env.LIBDIR = conf.env.BINDIR = conf.env.PREFIX
|
||||||
print(conf.env.PREFIX)
|
|
||||||
|
|
||||||
|
|
||||||
|
if conf.options.CCACHE:
|
||||||
|
conf.env.CC.insert(0, 'ccache')
|
||||||
|
conf.env.CXX.insert(0, 'ccache')
|
||||||
|
|
||||||
if conf.options.DEDICATED:
|
if conf.options.DEDICATED:
|
||||||
conf.add_subproject(projects['dedicated'])
|
conf.add_subproject(projects['dedicated'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user