am dd7e6963: am 7f94bf05: Remove failing random ubo test from must pass list.
[platform/upstream/VK-GL-CTS.git] / scripts / opengl / gen_enums.py
1 # -*- coding: utf-8 -*-
2
3 import os
4 import string
5
6 from src_util import *
7
8 def enumDefinition (enum):
9         return "#define %s\t%s" % (enum.name, normalizeConstant(enum.value))
10
11 def genEnums (iface):
12         src = indentLines(map(enumDefinition, iface.enums))
13         writeInlFile(os.path.join(OPENGL_INC_DIR, "glwEnums.inl"), src)
14
15 if __name__ == "__main__":
16         import logging, sys
17         logging.basicConfig(stream=sys.stderr, level=logging.INFO)
18         genEnums(getGLInterface())