1*35238bceSAndroid Build Coastguard Worker# -*- coding: utf-8 -*- 2*35238bceSAndroid Build Coastguard Worker 3*35238bceSAndroid Build Coastguard Worker#------------------------------------------------------------------------- 4*35238bceSAndroid Build Coastguard Worker# drawElements Quality Program utilities 5*35238bceSAndroid Build Coastguard Worker# -------------------------------------- 6*35238bceSAndroid Build Coastguard Worker# 7*35238bceSAndroid Build Coastguard Worker# Copyright 2015 The Android Open Source Project 8*35238bceSAndroid Build Coastguard Worker# 9*35238bceSAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License"); 10*35238bceSAndroid Build Coastguard Worker# you may not use this file except in compliance with the License. 11*35238bceSAndroid Build Coastguard Worker# You may obtain a copy of the License at 12*35238bceSAndroid Build Coastguard Worker# 13*35238bceSAndroid Build Coastguard Worker# http://www.apache.org/licenses/LICENSE-2.0 14*35238bceSAndroid Build Coastguard Worker# 15*35238bceSAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software 16*35238bceSAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS, 17*35238bceSAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18*35238bceSAndroid Build Coastguard Worker# See the License for the specific language governing permissions and 19*35238bceSAndroid Build Coastguard Worker# limitations under the License. 20*35238bceSAndroid Build Coastguard Worker# 21*35238bceSAndroid Build Coastguard Worker#------------------------------------------------------------------------- 22*35238bceSAndroid Build Coastguard Worker 23*35238bceSAndroid Build Coastguard Workerfrom src_util import getGLRegistry, getHybridInterface 24*35238bceSAndroid Build Coastguard Workerfrom gen_call_log_wrapper import genCallLogWrapper 25*35238bceSAndroid Build Coastguard Workerfrom gen_enums import genEnums 26*35238bceSAndroid Build Coastguard Workerfrom gen_versions import genVersions 27*35238bceSAndroid Build Coastguard Workerfrom gen_es_direct_init import genESDirectInit 28*35238bceSAndroid Build Coastguard Workerfrom gen_es_static_library import genESStaticLibrary 29*35238bceSAndroid Build Coastguard Workerfrom gen_ext_init import genExtInit 30*35238bceSAndroid Build Coastguard Workerfrom gen_func_init import genFuncInit 31*35238bceSAndroid Build Coastguard Workerfrom gen_func_ptrs import genFunctionPointers 32*35238bceSAndroid Build Coastguard Workerfrom gen_null_render_context import genNullRenderContext 33*35238bceSAndroid Build Coastguard Workerfrom gen_str_util import genStrUtil 34*35238bceSAndroid Build Coastguard Workerfrom gen_wrapper import genWrapper 35*35238bceSAndroid Build Coastguard Workerfrom gen_query_util import genQueryUtil 36*35238bceSAndroid Build Coastguard Workerimport logging 37*35238bceSAndroid Build Coastguard Workerimport sys 38*35238bceSAndroid Build Coastguard Worker 39*35238bceSAndroid Build Coastguard Workerdef genAll (): 40*35238bceSAndroid Build Coastguard Worker # https://docs.python.org/3/howto/logging.html#what-happens-if-no-configuration-is-provided 41*35238bceSAndroid Build Coastguard Worker # To obtain the pre-3.2 behaviour, logging.lastResort can be set to None. 42*35238bceSAndroid Build Coastguard Worker if (sys.version_info >= (3, 2)): 43*35238bceSAndroid Build Coastguard Worker logging.lastResort=None 44*35238bceSAndroid Build Coastguard Worker 45*35238bceSAndroid Build Coastguard Worker registry = getGLRegistry() 46*35238bceSAndroid Build Coastguard Worker iface = getHybridInterface() 47*35238bceSAndroid Build Coastguard Worker genCallLogWrapper(iface) 48*35238bceSAndroid Build Coastguard Worker genEnums(iface) 49*35238bceSAndroid Build Coastguard Worker genVersions(iface) 50*35238bceSAndroid Build Coastguard Worker genESDirectInit(registry) 51*35238bceSAndroid Build Coastguard Worker genESStaticLibrary(registry) 52*35238bceSAndroid Build Coastguard Worker genExtInit(registry, iface) 53*35238bceSAndroid Build Coastguard Worker genFuncInit(registry) 54*35238bceSAndroid Build Coastguard Worker genFunctionPointers(iface) 55*35238bceSAndroid Build Coastguard Worker genNullRenderContext(iface) 56*35238bceSAndroid Build Coastguard Worker genStrUtil(iface) 57*35238bceSAndroid Build Coastguard Worker genWrapper(iface) 58*35238bceSAndroid Build Coastguard Worker genQueryUtil(iface) 59*35238bceSAndroid Build Coastguard Worker 60*35238bceSAndroid Build Coastguard Workerif __name__ == "__main__": 61*35238bceSAndroid Build Coastguard Worker genAll() 62