forked from mia/Aegisub
bd78a5c60e
supply a 48x48 xpm to be included as the application icon. There's probably a better way to do this, like figuring out what the typical application icon size is and supplying different sizes. Originally committed to SVN as r2702.
22 lines
516 B
Awk
22 lines
516 B
Awk
# $Id$
|
|
|
|
! /CURSOR|ICON|^#|^$|^\// {
|
|
image[$1] = $1
|
|
}
|
|
|
|
END {
|
|
print("#define static") > RESRC_CPP
|
|
printf("#include \"wxicon_xpm.xpm\"\n") >> RESRC_CPP
|
|
for (v in image) {
|
|
printf("#include \"../bitmaps/%s_xpm.xpm\"\n", image[v]) >> RESRC_CPP
|
|
}
|
|
|
|
print("#ifndef _RES_H") > RESRC_H
|
|
print("#define _RES_H") >> RESRC_H
|
|
printf("extern char *wxicon_xpm[];\n") >> RESRC_H
|
|
for (v in image) {
|
|
printf("extern char *%s_xpm[];\n", image[v]) >> RESRC_H
|
|
}
|
|
print("#endif /* _RES_H */") >> RESRC_H
|
|
|
|
}
|