am 08b5461b: am 6105d36c: Require renderability of SRGB,UNSIGNED_BYTE from NV_sRGB_fo...
[platform/upstream/VK-GL-CTS.git] / scripts / opengl / gen_es_static_library.py
1 # -*- coding: utf-8 -*-
2
3 from src_util import *
4
5 GEN_VERSIONS = set(["2.0", "3.0"])
6
7 def commandLibraryEntry (command):
8         return "\t{ \"%s\",\t(deFunctionPtr)%s }," % (command.name, command.name)
9
10 def genESStaticLibrary (registry):
11         genCommandLists(registry, commandLibraryEntry,
12                                         check           = lambda api, version: api == 'gles2' and version in GEN_VERSIONS,
13                                         directory       = EGL_DIR,
14                                         filePattern     = "egluStatic%sLibrary.inl",
15                                         align           = True)
16
17 if __name__ == "__main__":
18         genESStaticLibrary(getGLRegistry())