am 792cada8: am edd21bd9: Merge "Remove sin/cos workaround for libhoudini" into lmp...
[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())