|
|
@ -214,18 +214,19 @@ def configure(conf): |
|
|
|
with open('mod_options.txt') as fd: |
|
|
|
with open('mod_options.txt') as fd: |
|
|
|
lines = fd.readlines() |
|
|
|
lines = fd.readlines() |
|
|
|
for line in lines: |
|
|
|
for line in lines: |
|
|
|
p = regex.match(line.strip()) |
|
|
|
m = regex.match(line.strip()) |
|
|
|
if p: |
|
|
|
if m: |
|
|
|
conf.start_msg("* " + p[3]) |
|
|
|
p = m.groups() |
|
|
|
if p[2] == 'ON': |
|
|
|
conf.start_msg("* " + p[2]) |
|
|
|
conf.env[p[1]] = True |
|
|
|
if p[1] == 'ON': |
|
|
|
conf.define(p[1], 1) |
|
|
|
conf.env[p[0]] = True |
|
|
|
elif p[2] == 'OFF': |
|
|
|
conf.define(p[0], 1) |
|
|
|
conf.env[p[1]] = False |
|
|
|
elif p[1] == 'OFF': |
|
|
|
conf.undefine(p[1]) |
|
|
|
conf.env[p[0]] = False |
|
|
|
|
|
|
|
conf.undefine(p[0]) |
|
|
|
else: |
|
|
|
else: |
|
|
|
conf.env[p[1]] = p[2] |
|
|
|
conf.env[p[0]] = p[1] |
|
|
|
conf.end_msg(p[2]) |
|
|
|
conf.end_msg(p[1]) |
|
|
|
if conf.env.HLDEMO_BUILD and conf.env.OEM_BUILD: |
|
|
|
if conf.env.HLDEMO_BUILD and conf.env.OEM_BUILD: |
|
|
|
conf.fatal('Don\'t mix Demo and OEM builds!') |
|
|
|
conf.fatal('Don\'t mix Demo and OEM builds!') |
|
|
|
|
|
|
|
|
|
|
|