Source

pyGAP / game / assets / common / textures / wscript

Full commit
#! /usr/bin/env python
# encoding: utf-8

from tools import utils


def build(bld):
    bld.declare_chain(
        name='textures',
        rule=utils.copy,
        color='GREEN',
        ext_in='.png',
        ext_out='.png.etc',
        reentrant=True,
    )
    bld.declare_chain(
        name='compress_textures',
        rule=utils.compress,
        color='BLUE',
        ext_in='.etc',
        ext_out='.etcz',
        reentrant=False,
    )
    bld(source=bld.path.ant_glob('**/*.png'))