summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 257feed)
raw | patch | inline | side by side (parent: 257feed)
author | ishmal <ishmal@users.sourceforge.net> | |
Sun, 18 Mar 2007 23:50:32 +0000 (23:50 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Sun, 18 Mar 2007 23:50:32 +0000 (23:50 +0000) |
14 files changed:
src/pedro/Makefile.mingw | patch | blob | history | |
src/pedro/geckoembed.cpp | [new file with mode: 0644] | patch | blob |
src/pedro/geckoembed.h | [new file with mode: 0644] | patch | blob |
src/pedro/pedroconfig.cpp | patch | blob | history | |
src/pedro/pedroconfig.h | patch | blob | history | |
src/pedro/pedrodom.cpp | patch | blob | history | |
src/pedro/pedrodom.h | patch | blob | history | |
src/pedro/pedrogui.cpp | patch | blob | history | |
src/pedro/pedrogui.h | patch | blob | history | |
src/pedro/pedromain.cpp | patch | blob | history | |
src/pedro/pedroutil.cpp | patch | blob | history | |
src/pedro/pedroutil.h | patch | blob | history | |
src/pedro/pedroxmpp.cpp | patch | blob | history | |
src/pedro/pedroxmpp.h | patch | blob | history |
index f108c2c2feb9dff80eb30a198e92c2533f1faf03..81c3d6ef6d472ea066f7ef9213cdb9ac03b0df3a 100644 (file)
--- a/src/pedro/Makefile.mingw
+++ b/src/pedro/Makefile.mingw
# Authors:
# Bob Jamison
#
-# Copyright (C) 2005-2006 Bob Jamison
+# Copyright (C) 2005-2007 Bob Jamison
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
ifeq ($(ARCH),win32)
####### Where is your GTK directory?
-GTK=c:/gtk28
+GTK=c:/gtk210
####### Same thing, DOS style
-GTKDOS=c:\gtk28
+GTKDOS=c:\gtk210
#SSL=openssl-0.9.8a
SSL=$(GTK)
-CFLAGS = -g -Wall -DHAVE_SSL
+
+
+CFLAGS = -g -Wall -DHAVE_SSL \
+-DRELAYTOOL_SSL="static const int libssl_is_present=1; static int __attribute__((unused)) libssl_symbol_is_present(char *s){ return 1; }"
+
INC = -I. -I$(GTK)/include -I$(SSL)/include
all: test.exe pedro.exe
GTKINC = -DGLIBMM_DLL \
--I$(GTK)/include/glibmm-2.4 -I$(GTK)/lib/glibmm-2.4/include \
--I$(GTK)/include/gtkmm-2.4 -I$(GTK)/lib/gtkmm-2.4/include \
--I$(GTK)/include/gdkmm-2.4 -I$(GTK)/lib/gdkmm-2.4/include \
--I$(GTK)/include/pangomm-1.4 \
--I$(GTK)/include/atkmm-1.6 -I$(GTK)/include/cairo \
--I$(GTK)/include/sigc++-2.0 -I$(GTK)/lib/sigc++-2.0/include \
--I$(GTK)/include/gtk-2.0 -I$(GTK)/lib/gtk-2.0/include \
--I$(GTK)/include/atk-1.0 -I$(GTK)/include/pango-1.0 \
--I$(GTK)/include/glib-2.0 -I$(GTK)/lib/glib-2.0/include
-
+-I$(GTK)/include/glibmm-2.4 -I$(GTK)/lib/glibmm-2.4/include \
+-I$(GTK)/include/gtkmm-2.4 -I$(GTK)/lib/gtkmm-2.4/include \
+-I$(GTK)/include/gdkmm-2.4 -I$(GTK)/lib/gdkmm-2.4/include \
+-I$(GTK)/include/pangomm-1.4 -I$(GTK)/include/pangomm-1.4 \
+-I$(GTK)/include/atkmm-1.6 -I$(GTK)/include/cairomm-1.0 \
+-I$(GTK)/include/sigc++-2.0 -I$(GTK)/lib/sigc++-2.0/include \
+-I$(GTK)/include/gtk-2.0 -I$(GTK)/lib/gtk-2.0/include \
+-I$(GTK)/include/atk-1.0 -I$(GTK)/include/pango-1.0 \
+-I$(GTK)/include/glib-2.0 -I$(GTK)/lib/glib-2.0/include \
+-I$(GTK)/include/cairo
####### Our Gtk libs
-GTKLIBS = -L$(GTK)/lib -lloudmouth-1 \
+GTKLIBS = -L$(GTK)/lib \
-lgtkmm-2.4 -lgdkmm-2.4 -lglibmm-2.4 \
-latkmm-1.6 -lpangomm-1.4 -lsigc-2.0 \
-lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 \
GUIOBJ = \
pedrogui.o \
+geckoembed.o \
pedromain.o
groupchat: libpedro.a work/groupchat.o
$(CXX) -o $@ work/groupchat.o libpedro.a $(LIBSC)
-pedro.exe: libpedro.a pedromain.o pedrogui.o
+pedro.exe: libpedro.a $(GUIOBJ)
$(CXX) -o $@ pedromain.o pedrogui.o libpedro.a $(GTKLIBS) $(LIBS)
pedro: libpedro.a pedromain.o pedrogui.o
$(CXX) -o $@ pedromain.o pedrogui.o libpedro.a $(GTKLIBS) $(LIBS)
pedrogui.o: pedrogui.cpp pedrogui.h
$(CXX) $(CFLAGS) $(INC) $(GTKINC) -c -o $@ $<
+geckoembed.o: geckoembed.cpp geckoembed.h
+ $(CXX) $(CFLAGS) $(INC) $(GTKINC) -c -o $@ $<
+
.cpp.o:
$(CXX) $(CFLAGS) $(INC) -c -o $@ $<
diff --git a/src/pedro/geckoembed.cpp b/src/pedro/geckoembed.cpp
--- /dev/null
+++ b/src/pedro/geckoembed.cpp
@@ -0,0 +1,59 @@
+/*
+ * Implementation the Pedro mini-XMPP client
+ *
+ * Authors:
+ * Bob Jamison
+ *
+ * Copyright (C) 2007 Bob Jamison
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include <stdio.h>
+#include <stdarg.h>
+
+#ifdef GECKO_EMBED
+
+#include "geckoembed.h"
+
+
+namespace Pedro
+{
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+} //namespace Pedro
+
+#endif /* GECKO_EMBED */
+//########################################################################
+//# E N D O F F I L E
+//########################################################################
+
diff --git a/src/pedro/geckoembed.h b/src/pedro/geckoembed.h
--- /dev/null
+++ b/src/pedro/geckoembed.h
@@ -0,0 +1,64 @@
+#ifndef __GECKOEMBED_H__
+#define __GECKOEMBED_H__
+/*
+ * Implementation the Pedro mini-XMPP client
+ *
+ * Authors:
+ * Bob Jamison
+ *
+ * Copyright (C) 2005-2007 Bob Jamison
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include <stdio.h>
+#include <stdarg.h>
+
+
+namespace Pedro
+{
+
+
+class GeckoEmbed
+{
+public:
+
+ GeckoEmbed()
+ {
+ init();
+ }
+
+ virtual ~GeckoEmbed()
+ {
+ }
+
+
+
+private:
+
+ void init()
+ {
+ }
+
+
+};
+
+
+} //namespace Pedro
+#define __GECKOEMBED_H__
+//########################################################################
+//# E N D O F F I L E
+//########################################################################
+
index f6de670cd11ccfd0b128cbf6eb023f3b3a70a516..fdade21d7743f07eee16ebf1a4ea8320f8e5ab9c 100644 (file)
* Authors:
* Bob Jamison
*
- * Copyright (C) 2005-2006 Bob Jamison
+ * Copyright (C) 2005-2007 Bob Jamison
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
index 554c47ba9a416a9b44a6a0b261b0c36749241325..f3fb96e72e5704ac4b171b924957583d116bfcc7 100644 (file)
--- a/src/pedro/pedroconfig.h
+++ b/src/pedro/pedroconfig.h
* Authors:
* Bob Jamison
*
- * Copyright (C) 2005-2006 Bob Jamison
+ * Copyright (C) 2005-2007 Bob Jamison
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
diff --git a/src/pedro/pedrodom.cpp b/src/pedro/pedrodom.cpp
index de6b99cf4534bd7d0650354e39d6e6822217469f..a15d742516c77a4e1f3cf0008319688f75ad2169 100644 (file)
--- a/src/pedro/pedrodom.cpp
+++ b/src/pedro/pedrodom.cpp
* Authors:
* Bob Jamison
*
- * Copyright (C) 2005 Bob Jamison
+ * Copyright (C) 2005-2007 Bob Jamison
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
diff --git a/src/pedro/pedrodom.h b/src/pedro/pedrodom.h
index cc9a322f983f93842a5116daa69db3a67042cdea..0d418ac20d6537ab724e48788898023ab8a6d124 100644 (file)
--- a/src/pedro/pedrodom.h
+++ b/src/pedro/pedrodom.h
* Authors:
* Bob Jamison
*
- * Copyright (C) 2005-2006 Bob Jamison
+ * Copyright (C) 2005-2007 Bob Jamison
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
diff --git a/src/pedro/pedrogui.cpp b/src/pedro/pedrogui.cpp
index 4b4bccbaa53489ffd93d5c3f6e6cdab57e04f414..6bdbe3422c16dbb726936f70954cbdd5cf8a0059 100644 (file)
--- a/src/pedro/pedrogui.cpp
+++ b/src/pedro/pedrogui.cpp
* Authors:
* Bob Jamison
*
- * Copyright (C) 2005 Bob Jamison
+ * Copyright (C) 2005-2007 Bob Jamison
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
diff --git a/src/pedro/pedrogui.h b/src/pedro/pedrogui.h
index a8b8964bafe43faefb67a2b2c61c4cade42fcd94..dfafc0edfd033a1c1522c898412fff3e94674d6c 100644 (file)
--- a/src/pedro/pedrogui.h
+++ b/src/pedro/pedrogui.h
* Authors:
* Bob Jamison
*
- * Copyright (C) 2005 Bob Jamison
+ * Copyright (C) 2005-2007 Bob Jamison
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
index 9cee6d99231bfefb417ba1757d91904721af0891..60322f718b2b63760beeda5d3395520691875bc6 100644 (file)
--- a/src/pedro/pedromain.cpp
+++ b/src/pedro/pedromain.cpp
+/*
+ * Implementation the Pedro mini-XMPP client
+ *
+ * Authors:
+ * Bob Jamison
+ *
+ * Copyright (C) 2005-2007 Bob Jamison
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
#include <stdio.h>
+
+
+
+//#######################################################################
+//# G E C K O (xulrunner)
+//#######################################################################
+
+#ifdef GECKO_EMBED
+
+
+#include "geckoembed.h"
+
+int main(int argc, char *argv[])
+{
+ GeckoEmbed embedder;
+
+ embedder.run();
+
+ return 0;
+}
+
+
+//#######################################################################
+//# G T K M M (pedrogui)
+//#######################################################################
+#else /* NOT GECKO_EMBED */
+
+
+
#include "pedrogui.h"
int main(int argc, char *argv[])
+#endif /* GECKO_EMBED */
+
+
+
+
#ifdef __WIN32__
#include <windows.h>
-
extern "C" int __export WINAPI
WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
char *lpszCmdLine, int nCmdShow)
#endif
+
+
+//########################################################################
+//# E N D O F F I L E
+//########################################################################
+
index 13577bf8f716dd1bf99c57492fe7886a08ef5442..d1fb15edca86cfc4ad0b54a4244e458e76578960 100644 (file)
--- a/src/pedro/pedroutil.cpp
+++ b/src/pedro/pedroutil.cpp
* Authors:
* Bob Jamison
*
- * Copyright (C) 2005-2006 Bob Jamison
+ * Copyright (C) 2005-2007 Bob Jamison
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
diff --git a/src/pedro/pedroutil.h b/src/pedro/pedroutil.h
index 8f1d14cc73875b1935ef0069d1aa6920b80363ce..aba9e47154335ab0ad4aea298d96541c6ee3428c 100644 (file)
--- a/src/pedro/pedroutil.h
+++ b/src/pedro/pedroutil.h
* Authors:
* Bob Jamison
*
- * Copyright (C) 2006 Bob Jamison
+ * Copyright (C) 2005-2007 Bob Jamison
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
index 2dc20debaf372148c8b4e4447bc3a038496e414c..efe51d277ff05c9573091251407a38deb8eb7e70 100644 (file)
--- a/src/pedro/pedroxmpp.cpp
+++ b/src/pedro/pedroxmpp.cpp
* Authors:
* Bob Jamison
*
- * Copyright (C) 2005-2006 Bob Jamison
+ * Copyright (C) 2005-2007 Bob Jamison
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
diff --git a/src/pedro/pedroxmpp.h b/src/pedro/pedroxmpp.h
index 34b6d039067a2faf76c8584dc4584782c55ee770..1ad849b9903e517dccd03718ce7a8207b848a0b2 100644 (file)
--- a/src/pedro/pedroxmpp.h
+++ b/src/pedro/pedroxmpp.h
* Authors:
* Bob Jamison
*
- * Copyright (C) 2005-2006 Bob Jamison
+ * Copyright (C) 2005-2007 Bob Jamison
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public