#!/usr/bin/env python3
import sys

inputPath = sys.argv[1]
outputPath = sys.argv[2]

with open(inputPath, "rb") as fp_in :
    contents = bytearray(fp_in.read())
    with open(outputPath, "w") as fp :
        fp.write("#include <cstdint>\n")
        fp.write("#include \"common/span.h\"\n")
        fp.write("static const uint8_t bin_data_pak[] = { ")
        for b in contents:
            fp.write(hex(b) + ", ")
        fp.write("};\n")
        fp.write("extern const Span<const uint8_t> data_pak = bin_data_pak;")

