[Gnucash-changes] r11829 - gnucash/branches/cashutil - library changes to clean up the cashutil build

Neil Williams codehelp at cvs.gnucash.org
Fri Nov 4 18:26:23 EST 2005


Author: codehelp
Date: 2005-11-04 18:26:21 -0500 (Fri, 04 Nov 2005)
New Revision: 11829

Added:
   gnucash/branches/cashutil/src/business/business-core/backend-bus.c
   gnucash/branches/cashutil/src/business/business-core/backend-bus.h
   gnucash/branches/cashutil/src/business/business-core/file/backend-bus-file.c
   gnucash/branches/cashutil/src/business/business-core/file/backend-bus-file.h
Modified:
   gnucash/branches/cashutil/cashutil/ChangeLog
   gnucash/branches/cashutil/configure.ac
   gnucash/branches/cashutil/src/business/business-core/Makefile.am
   gnucash/branches/cashutil/src/business/business-core/file/Makefile.am
   gnucash/branches/cashutil/src/engine/Makefile.am
Log:
library changes to clean up the cashutil build

Modified: gnucash/branches/cashutil/cashutil/ChangeLog
===================================================================
--- gnucash/branches/cashutil/cashutil/ChangeLog	2005-11-04 23:22:46 UTC (rev 11828)
+++ gnucash/branches/cashutil/cashutil/ChangeLog	2005-11-04 23:26:21 UTC (rev 11829)
@@ -1,5 +1,20 @@
 2005-11-04  Neil Williams <linux at codehelp.co.uk>
 
+	* src/business/business-core/backend-bus.c :
+	Load the business objects from the GModule.
+	* src/business/business-core/backend-bus.h :
+	* src/business/business-core/file/backend-bus-file.h :
+	Register the business backend handlers from the GModule.
+	* src/business/business-core/file/Makefile.am : New file.
+	* src/business/business-core/file/backend-bus-file.c :
+	Register the business backend handlers from the GModule.
+	* src/business/business-core/Makefile.am : New file.
+	* src/engine/Makefile.am : libcashobjects is no longer a
+	gnucash-only library.
+	* configure.ac : build within a build.
+
+2005-11-04  Neil Williams <linux at codehelp.co.uk>
+
 	* cashutil/cashutil-autogen.sh : Removed.
 	* cashutil/src/backend-bus.c : Moved.
 	* cashutil/src/backend-bus.h : Moved.

Modified: gnucash/branches/cashutil/configure.ac
===================================================================
--- gnucash/branches/cashutil/configure.ac	2005-11-04 23:22:46 UTC (rev 11828)
+++ gnucash/branches/cashutil/configure.ac	2005-11-04 23:26:21 UTC (rev 11829)
@@ -1287,12 +1287,6 @@
           accounts/pt_PT/Makefile
           accounts/sk/Makefile
           accounts/tr_TR/Makefile
-          cashutil/Makefile
-          cashutil/src/Makefile
-          cashutil/doc/Makefile
-          cashutil/doc/xml/Makefile
-          cashutil/doc/man/Makefile
-          cashutil/po/Makefile.in
           doc/Makefile
           doc/examples/Makefile
           intl-scm/Makefile

Modified: gnucash/branches/cashutil/src/business/business-core/Makefile.am
===================================================================
--- gnucash/branches/cashutil/src/business/business-core/Makefile.am	2005-11-04 23:22:46 UTC (rev 11828)
+++ gnucash/branches/cashutil/src/business/business-core/Makefile.am	2005-11-04 23:26:21 UTC (rev 11829)
@@ -6,6 +6,7 @@
 lib_LTLIBRARIES = libcashbusobjects.la
 
 libcashbusobjects_la_SOURCES = \
+  backend-bus.c \
   gncAddress.c  \
   gncBillTerm.c \
   gncCustomer.c \

Added: gnucash/branches/cashutil/src/business/business-core/backend-bus.c
===================================================================
--- gnucash/branches/cashutil/src/business/business-core/backend-bus.c	2005-11-04 23:22:46 UTC (rev 11828)
+++ gnucash/branches/cashutil/src/business/business-core/backend-bus.c	2005-11-04 23:26:21 UTC (rev 11829)
@@ -0,0 +1,55 @@
+/***************************************************************************
+ *            backend-bus.c
+ *
+ *  Sun Sep 25 15:59:50 2005
+ *  Copyright  2005  Neil Williams
+ *  linux at codehelp.co.uk
+ ****************************************************************************/
+
+/*
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program 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 General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+ 
+#include <libxml/xmlmemory.h>
+#include <libxml/tree.h>
+#include <libxml/parser.h>
+#include <libxml/xmlschemas.h>
+
+#include "gncAddressP.h"
+#include "gncBillTermP.h"
+#include "gncCustomerP.h"
+#include "gncEmployeeP.h"
+#include "gncEntryP.h"
+#include "gncInvoiceP.h"
+#include "gncJobP.h"
+#include "gncVendorP.h"
+#include "gncTaxTableP.h"
+#include "gncOrderP.h"
+#include "backend-bus.h"
+
+gboolean bus_cashobjects_register(void)
+{
+	g_return_val_if_fail(gncInvoiceRegister(), FALSE);
+	g_return_val_if_fail ( gncJobRegister (),  FALSE);
+	g_return_val_if_fail(gncBillTermRegister(), FALSE);
+	g_return_val_if_fail(gncCustomerRegister(), FALSE);
+	g_return_val_if_fail(gncAddressRegister(), FALSE);
+	g_return_val_if_fail(gncEmployeeRegister(), FALSE);
+	g_return_val_if_fail ( gncEntryRegister (), FALSE);
+	g_return_val_if_fail (gncVendorRegister (), FALSE);
+	g_return_val_if_fail(gncTaxTableRegister(), FALSE);
+	g_return_val_if_fail ( gncOrderRegister (), FALSE);
+	return TRUE;
+}

Added: gnucash/branches/cashutil/src/business/business-core/backend-bus.h
===================================================================
--- gnucash/branches/cashutil/src/business/business-core/backend-bus.h	2005-11-04 23:22:46 UTC (rev 11828)
+++ gnucash/branches/cashutil/src/business/business-core/backend-bus.h	2005-11-04 23:26:21 UTC (rev 11829)
@@ -0,0 +1,26 @@
+/***************************************************************************
+ *            backend-bus.h
+ *
+ *  Sun Sep 25 16:02:07 2005
+ *  Copyright  2005  Neil Williams
+ *  linux at codehelp.co.uk
+ ****************************************************************************/
+
+/*
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program 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 General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+ 
+gboolean bus_cashobjects_register (void);
+

Modified: gnucash/branches/cashutil/src/business/business-core/file/Makefile.am
===================================================================
--- gnucash/branches/cashutil/src/business/business-core/file/Makefile.am	2005-11-04 23:22:46 UTC (rev 11828)
+++ gnucash/branches/cashutil/src/business/business-core/file/Makefile.am	2005-11-04 23:26:21 UTC (rev 11829)
@@ -16,6 +16,7 @@
   ${GLIB_CFLAGS}
 
 libgnc_backend_bus_la_SOURCES = \
+  backend-bus-file.c \
   gnc-address-xml-v2.c \
   gnc-bill-term-xml-v2.c \
   gnc-customer-xml-v2.c \

Added: gnucash/branches/cashutil/src/business/business-core/file/backend-bus-file.c
===================================================================
--- gnucash/branches/cashutil/src/business/business-core/file/backend-bus-file.c	2005-11-04 23:22:46 UTC (rev 11828)
+++ gnucash/branches/cashutil/src/business/business-core/file/backend-bus-file.c	2005-11-04 23:26:21 UTC (rev 11829)
@@ -0,0 +1,60 @@
+/***************************************************************************
+ *            backend-bus-file.c
+ *
+ *  Sun Sep 25 15:59:50 2005
+ *  Copyright  2005  Neil Williams
+ *  linux at codehelp.co.uk
+ ****************************************************************************/
+
+/*
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program 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 General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+ 
+#include <libxml/xmlmemory.h>
+#include <libxml/tree.h>
+#include <libxml/parser.h>
+#include <libxml/xmlschemas.h>
+
+#include "gnc-address-xml-v2.h"
+#include "gnc-bill-term-xml-v2.h"
+#include "gnc-customer-xml-v2.h"
+#include "gnc-employee-xml-v2.h"
+#include "gnc-entry-xml-v2.h"
+#include "gnc-invoice-xml-v2.h"
+#include "gnc-job-xml-v2.h"
+#include "gnc-order-xml-v2.h"
+#include "gnc-owner-xml-v2.h"
+#include "gnc-tax-table-xml-v2.h"
+#include "gnc-vendor-xml-v2.h"
+
+#include "backend-bus-file.h"
+
+void
+backend_business_add (void)
+{
+	gnc_address_xml_initialize ();
+	gnc_billterm_xml_initialize ();
+	gnc_customer_xml_initialize ();
+	gnc_employee_xml_initialize ();
+	gnc_entry_xml_initialize ();
+	gnc_invoice_xml_initialize ();
+	gnc_job_xml_initialize ();
+	gnc_order_xml_initialize ();
+	gnc_owner_xml_initialize ();
+	gnc_taxtable_xml_initialize ();
+	gnc_vendor_xml_initialize ();
+}
+
+

Added: gnucash/branches/cashutil/src/business/business-core/file/backend-bus-file.h
===================================================================
--- gnucash/branches/cashutil/src/business/business-core/file/backend-bus-file.h	2005-11-04 23:22:46 UTC (rev 11828)
+++ gnucash/branches/cashutil/src/business/business-core/file/backend-bus-file.h	2005-11-04 23:26:21 UTC (rev 11829)
@@ -0,0 +1,26 @@
+/***************************************************************************
+ *            backend-bus-file.h
+ *
+ *  Sun Sep 25 16:02:07 2005
+ *  Copyright  2005  Neil Williams
+ *  linux at codehelp.co.uk
+ ****************************************************************************/
+
+/*
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program 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 General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+ 
+void backend_business_add (void);
+

Modified: gnucash/branches/cashutil/src/engine/Makefile.am
===================================================================
--- gnucash/branches/cashutil/src/engine/Makefile.am	2005-11-04 23:22:46 UTC (rev 11828)
+++ gnucash/branches/cashutil/src/engine/Makefile.am	2005-11-04 23:26:21 UTC (rev 11829)
@@ -4,7 +4,6 @@
 pkglib_LTLIBRARIES = \
   libgw-engine.la \
   libgw-kvp.la \
-  libcashobjects.la \
   libgncmod-engine.la
 
 AM_CFLAGS = \
@@ -79,7 +78,7 @@
 				 
 if USE_LIBQOF
 
-lib_LTLIBRARIES = libqof.la
+lib_LTLIBRARIES = libqof.la libcashobjects.la
 
 libqof_la_LDFLAGS= -version-info $(LIBQOF_LIBRARY_VERSION) 
 
@@ -102,6 +101,8 @@
 
 else
 
+lib_LTLIBRARIES = libcashobjects.la
+
 libqof_la_SOURCES =
 
 qofincludedir = ${pkgincludedir}
@@ -117,6 +118,7 @@
   cap-gains.c \
   cashobjects.c \
   FreqSpec.c \
+  gnc-budget.c \
   gnc-filepath-utils.c \
   gnc-lot.c \
   gnc-commodity.c \



More information about the gnucash-changes mailing list