Browse Source

wscript: add --use-ccache option

android-fixes
nillerusr 3 years ago
parent
commit
887c0c73f6
  1. 8
      wscript

8
wscript

@ -198,6 +198,9 @@ def options(opt): @@ -198,6 +198,9 @@ def options(opt):
grp.add_option('--use-togl', action = 'store', dest = 'GL', type = 'int', default = True,
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.add_subproject(projects['game'])
@ -366,9 +369,10 @@ def configure(conf): @@ -366,9 +369,10 @@ def configure(conf):
conf.env.BINDIR = conf.env.PREFIX
else:
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:
conf.add_subproject(projects['dedicated'])

Loading…
Cancel
Save