changeset: 54:380acd1537c4
tag: tip
user: pancake <pancake_AT_nopcode.org>
date: Wed Aug 18 20:14:28 2010 +0200
files: Makefile README swk.c
description:
* Add 'uninstall' target
* Add more information in README
* Display warning when image cannot be loaded
diff -r 8cf583724ae4 -r 380acd1537c4 Makefile
--- a/Makefile Fri Jul 02 01:40:54 2010 +0200
+++ b/Makefile Wed Aug 18 20:14:28 2010 +0200
@@ -51,6 +51,13 @@
mkdir -p ${DESTDIR}/${LIBDIR}/pkgconfig
cp swk.pc ${DESTDIR}/${LIBDIR}/pkgconfig/swk.pc
+deinstall uninstall:
+ rm -f ${DESTDIR}/${INCDIR}/swk.h
+ rm -f ${DESTDIR}/${LIBDIR}/libswk.a
+ rm -f ${DESTDIR}/${LIBDIR}/libswk.so
+ rm -f ${DESTDIR}/${LIBDIR}/mk/swk.mk
+ rm -f ${DESTDIR}/${LIBDIR}/pkgconfig/swk.pc
+
static: libswk.a
shared: libswk.so
diff -r 8cf583724ae4 -r 380acd1537c4 README
--- a/README Fri Jul 02 01:40:54 2010 +0200
+++ b/README Wed Aug 18 20:14:28 2010 +0200
@@ -3,8 +3,20 @@
swk is a minimalist widget kit with support for SDL and X11
+How to build for SDL:
+---------------------
+make PREFIX=/usr
+sudo make install PREFIX=/usr
+
+
+How to build for X11:
+---------------------
+make x PREFIX=/usr
+sudo make install PREFIX=/usr
+
+
Requirements
-============
+------------
In order to build swk you need SDL, SDL-ttf and SDL-image
ArchLinux: pacman -S sdl sdl_ttf sdl_image
diff -r 8cf583724ae4 -r 380acd1537c4 swk.c
--- a/swk.c Fri Jul 02 01:40:54 2010 +0200
+++ b/swk.c Wed Aug 18 20:14:28 2010 +0200
@@ -525,8 +525,11 @@
void
swk_image(SwkEvent *e) {
- if(e->box->data == NULL)
+ if(e->box->data == NULL) {
e->box->data = swk_gi_img_load(e->box->text);
+ if(e->box->data)
+ fprintf(stderr, "Cannot find image %s\n", e->box->text);
+ }
switch(e->type) {
case EExpose:
if (e->box->data)
Received on Wed Aug 18 2010 - 20:17:59 CEST
This archive was generated by hypermail 2.2.0 : Wed Aug 18 2010 - 20:24:03 CEST