def generateHeader():
    outfile = resourcePath(('../src/%s-resources.h' % _BASENAME))
    with open(outfile, 'w') as fp:
        fp.write(('#pragma once\n\n#include <QString>\n\nnamespace %s\n{\n' % _NAMESPACE))
        resdir = resourcePath()
        for f in __resourceFiles():
            p = os.path.relpath(f, resdir)
            p = p.replace('\\', '/')
            name = p.replace('/', '_').upper()
            name = name.replace('-', '_')
            name = os.path.splitext(name)[0]
            name = name.ljust(30, ' ')
            fp.write(('\tstatic const QString QRC_%s = ":/%s";\n' % (name, p)))
        fp.write(('} // namespace %s\n\n' % _NAMESPACE))
def generateHeader():
    outfile = resourcePath(('../src/%s-resources.h' % _BASENAME))
    with open(outfile, 'w') as fp:
        fp.write(('#pragma once\n\n#include <QString>\n\nnamespace %s\n{\n' % _NAMESPACE))
        resdir = resourcePath()
        for f in __resourceFiles():
            p = os.path.relpath(f, resdir)
            p = p.replace('\\', '/')
            name = p.replace('/', '_').upper()
            name = name.replace('-', '_')
            name = os.path.splitext(name)[0]
            name = name.ljust(30, ' ')
            fp.write(('\tstatic const QString QRC_%s = ":/%s";\n' % (name, p)))
        fp.write(('} // namespace %s\n\n' % _NAMESPACE))