| 1 | # |
| 2 | # This file is part of DisOrder. |
| 3 | # Copyright (C) 2005-2010 Richard Kettlewell |
| 4 | # |
| 5 | # This program is free software: you can redistribute it and/or modify |
| 6 | # it under the terms of the GNU General Public License as published by |
| 7 | # the Free Software Foundation, either version 3 of the License, or |
| 8 | # (at your option) any later version. |
| 9 | # |
| 10 | # This program is distributed in the hope that it will be useful, |
| 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | # GNU General Public License for more details. |
| 14 | # |
| 15 | # You should have received a copy of the GNU General Public License |
| 16 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | # |
| 18 | |
| 19 | pkghttp_DATA=cross.png down.png downdown.png edit.png nocross.png \ |
| 20 | nodown.png nodowndown.png noup.png noupup.png tick.png up.png upup.png \ |
| 21 | notes.png play.png pause.png random.png randomcross.png notescross.png \ |
| 22 | propagate.png speaker.png speakercross.png directory.png logo.png \ |
| 23 | logosmall.png logo256.png |
| 24 | |
| 25 | EXTRA_DIST=$(pkghttp_DATA) duck.png disobedience16x16.xpm \ |
| 26 | disobedience32x32.xpm cross.svg go.svg notes.svg noteson.svg pause.svg \ |
| 27 | query.svg queryon.svg speaker.svg speakeron.svg cross32.png \ |
| 28 | pause32.png play32.png playdisabled32.png playenabled32.png \ |
| 29 | randomdisabled32.png randomenabled32.png rtpdisabled32.png \ |
| 30 | rtpenabled32.png duck55.png cards24.png cards48.png \ |
| 31 | cards-simple-fanned.svg cards-thin.svg disobedience128x128.png \ |
| 32 | disobedience256x256.png disobedience48x48.png disobedience64x64.png |
| 33 | |
| 34 | DISOBEDIENCE_IMAGES=up.png down.png cards24.png logo256.png duck.png \ |
| 35 | propagate.png |
| 36 | |
| 37 | if GTK |
| 38 | noinst_HEADERS=images.h |
| 39 | |
| 40 | images.h: $(DISOBEDIENCE_IMAGES) |
| 41 | set -e; \ |
| 42 | exec > @$.new; \ |
| 43 | for png in $^; do \ |
| 44 | name=`echo $$png | $(GNUSED) 's,.*/,,;s,\.png,,;'`; \ |
| 45 | gdk-pixbuf-csource --raw --name=image_$$name $$png; \ |
| 46 | done; \ |
| 47 | echo "static const struct image images[] = {"; \ |
| 48 | for png in `echo $^`; do \ |
| 49 | name=`echo $$png | $(GNUSED) 's,.*/,,;s,\.png,,;'`; \ |
| 50 | echo " { \"$$name.png\", image_$$name },"; \ |
| 51 | done|sort; \ |
| 52 | echo "};" |
| 53 | mv @$.new $@ |
| 54 | endif |
| 55 | |
| 56 | CLEANFILES=$(SEDFILES) images.h |