added a test application for gconf wrapper
authormishas <mikhail.sobolev@gmail.com>
Thu, 12 Apr 2007 06:51:09 +0000 (06:51 +0000)
committermishas <mikhail.sobolev@gmail.com>
Thu, 12 Apr 2007 06:51:09 +0000 (06:51 +0000)
git-svn-id: file:///svnroot/simple-launcher/trunk@166 3ba93dab-e023-0410-b42a-de7732cf370a

Makefile
test2.cc [new file with mode: 0644]

index 1cbed79..ca7b6e0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -16,9 +16,9 @@ TARGET=simple-launcher.so
 DESKTOP_FILE=simple-launcher.desktop
 BACKUP_CONF=simple-launcher.backup
 
 DESKTOP_FILE=simple-launcher.desktop
 BACKUP_CONF=simple-launcher.backup
 
-all: $(TARGET)
+all: test2 $(TARGET)
 
 
-tests: test test1
+tests: test test1 test2
 
 $(TARGET): simple-launcher.o launchable-item.o launcher-item.o sla-list.o utils.o settings-dialog.o gconf-wrapper.o
        $(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
 
 $(TARGET): simple-launcher.o launchable-item.o launcher-item.o sla-list.o utils.o settings-dialog.o gconf-wrapper.o
        $(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
@@ -29,8 +29,11 @@ test: test.o launcher-item.o
 test1: test1.o sla-list.o launcher-item.o
        g++ -g -o $@ $^ $(GTKLIBS) $(DBUSLIBS) $(LIBS)
 
 test1: test1.o sla-list.o launcher-item.o
        g++ -g -o $@ $^ $(GTKLIBS) $(DBUSLIBS) $(LIBS)
 
+test2: test2.o gconf-wrapper.o
+       g++ -g -o $@ $^ $(GCONFLIBS)
+
 clean:
 clean:
-       rm -f *.d *.o $(TARGET) test test1
+       rm -f *.d *.o $(TARGET) test test1 test2
 
 install: $(TARGET)
        install -d $(DESTDIR)/usr/share/applications/hildon-home
 
 install: $(TARGET)
        install -d $(DESTDIR)/usr/share/applications/hildon-home
diff --git a/test2.cc b/test2.cc
new file mode 100644 (file)
index 0000000..ad3d36c
--- /dev/null
+++ b/test2.cc
@@ -0,0 +1,7 @@
+#include <iostream>
+
+#include "gconf-wrapper.h"
+
+int main() {
+       return 0;
+}