scons: wire the new generator for es1 and es2

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
This commit is contained in:
Emil Velikov 2018-11-20 17:44:43 +00:00 committed by Emil Velikov
parent 0842bc879b
commit 3bf08292d2

View file

@ -27,13 +27,27 @@ def mapi_objects(env, printer, mode):
# generate ABI header
GLAPI = '../glapi/'
header = env.CodeGenerate(
target = header_name,
script = '../mapi_abi.py',
source = [GLAPI + 'gen/gl_and_es_API.xml'] + env.Glob(GLAPI + 'gen/*.xml'),
command = python_cmd + ' $SCRIPT ' + \
'--printer %s $SOURCE > $TARGET' % (printer),
)
if printer != 'glapi':
if printer == 'es1api':
abi_tag = 'glesv1'
else:
abi_tag = 'glesv2'
header = env.CodeGenerate(
target = header_name,
script = '../new/gen_gldispatch_mapi.py',
source = GLAPI + 'registry/gl.xml'
command = python_cmd + ' $SCRIPT ' + \
'%s $SOURCE > $TARGET' % (abi_tag),
)
else:
header = env.CodeGenerate(
target = header_name,
script = '../mapi_abi.py',
source = [GLAPI + 'gen/gl_and_es_API.xml'] + env.Glob(GLAPI + 'gen/*.xml'),
command = python_cmd + ' $SCRIPT ' + \
'--printer %s $SOURCE > $TARGET' % (printer),
)
cpppath = [
header[0].dir,