else: arch = "" if len(sys.argv) > 3: cfg = sys.argv[3] else: cfg = "" ci = compiler_info(compiler, arch, cfg) if 0 == len(ci.name): print("Wrong configuration\n") sys.exit(1) print("Building external libs...") for arch in ci.arch_list: build_external_libs(ci, arch) print("Building KFL...") for arch in ci.arch_list: build_KFL(ci, arch) print("Building glloader...") for arch in ci.arch_list: if not arch[3]: build_glloader(ci, arch) print("Building kfont...") for arch in ci.arch_list: build_kfont(ci, arch) print("Building MeshMLLib...")
import sys from build_external import build_external_libs from blib_util import * from build_KFL import * from build_glloader import * from build_DXBC2GLSL import * from build_kfont import * from build_MeshMLLib import * from build_KlayGE import * if __name__ == "__main__": cfg = cfg_from_argv(sys.argv) bi = build_info(cfg.compiler, cfg.archs, cfg.cfg) print("Building external libs...") build_external_libs(bi) print("Building KFL...") build_KFL(bi) print("Building glloader...") build_glloader(bi) print("Building DXBC2GLSL...") build_DXBC2GLSL(bi) print("Building kfont...") build_kfont(bi) print("Building MeshMLLib...") build_MeshMLLib(bi)