r18819 - gnucash/trunk/src - Remove C executable from cmake as it is no longer necessary.
Christian Stimming
cstim at code.gnucash.org
Thu Mar 4 15:04:35 EST 2010
Author: cstim
Date: 2010-03-04 15:04:35 -0500 (Thu, 04 Mar 2010)
New Revision: 18819
Trac: http://svn.gnucash.org/trac/changeset/18819
Removed:
gnucash/trunk/src/test-core/CMakeLists.txt
gnucash/trunk/src/test-core/test-main.c
Modified:
gnucash/trunk/src/CMakeLists.txt
Log:
Remove C executable from cmake as it is no longer necessary.
Modified: gnucash/trunk/src/CMakeLists.txt
===================================================================
--- gnucash/trunk/src/CMakeLists.txt 2010-03-04 20:04:15 UTC (rev 18818)
+++ gnucash/trunk/src/CMakeLists.txt 2010-03-04 20:04:35 UTC (rev 18819)
@@ -137,7 +137,6 @@
ADD_SUBDIRECTORY (gnc-module)
ADD_SUBDIRECTORY (engine)
ADD_SUBDIRECTORY (backend/xml)
-ADD_SUBDIRECTORY (test-core)
ADD_SUBDIRECTORY (gnc)
Deleted: gnucash/trunk/src/test-core/CMakeLists.txt
===================================================================
--- gnucash/trunk/src/test-core/CMakeLists.txt 2010-03-04 20:04:15 UTC (rev 18818)
+++ gnucash/trunk/src/test-core/CMakeLists.txt 2010-03-04 20:04:35 UTC (rev 18819)
@@ -1,36 +0,0 @@
-# CMakeLists.txt for src/test-core
-
-
-# A test executable
-LINK_DIRECTORIES (${GLIB2_LIBRARY_DIRS}
- ${GMODULE_LIBRARY_DIRS}
- ${GOBJECT_LIBRARY_DIRS}
- ${GTHREAD_LIBRARY_DIRS}
- ${GCONF2_LIBRARY_DIRS}
-)
-ADD_EXECUTABLE (test-main
- test-main.c
-)
-
-INCLUDE_DIRECTORIES (${GLIB2_INCLUDE_DIRS})
-INCLUDE_DIRECTORIES (${LIBINTL_INCLUDE_PATH})
-INCLUDE_DIRECTORIES (${REGEX_INCLUDE_PATH})
-INCLUDE_DIRECTORIES (${LIBGUILE_INCLUDE_PATH})
-INCLUDE_DIRECTORIES (${CMAKE_BINARY_DIR}/src ) # for config.h
-INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/src) # for gnc-ui.h
-INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/src/libqof/qof) # for qof.h
-INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/src/gnc-module) # for gnc-glib-utils.h
-INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/src/core-utils) # for gnc-glib-utils.h
-INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/src/engine) # for gnc-glib-utils.h
-INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/src/backend/xml)
-INCLUDE_DIRECTORIES (${CMAKE_BINARY_DIR}/src/engine) # for swig-runtime.h
-
-TARGET_LINK_LIBRARIES (test-main gnc-backend-xml engine gnc-module core-utils qof)
-TARGET_LINK_LIBRARIES (test-main ${GCONF2_LIBRARIES})
-TARGET_LINK_LIBRARIES (test-main ${GTHREAD_LIBRARIES} ${GOBJECT_LIBRARIES} ${GMODULE_LIBRARIES} ${GLIB2_LIBRARIES})
-TARGET_LINK_LIBRARIES (test-main ${LIBGUILE_LIBRARIES})
-TARGET_LINK_LIBRARIES (test-main ${LIBXML2_LIBRARIES})
-TARGET_LINK_LIBRARIES (test-main ${ZLIB_LIBRARIES})
-IF (WIN32)
- TARGET_LINK_LIBRARIES (test-main ${LIBINTL_LIBRARY} ${REGEX_LIBRARY})
-ENDIF (WIN32)
Deleted: gnucash/trunk/src/test-core/test-main.c
===================================================================
--- gnucash/trunk/src/test-core/test-main.c 2010-03-04 20:04:15 UTC (rev 18818)
+++ gnucash/trunk/src/test-core/test-main.c 2010-03-04 20:04:35 UTC (rev 18819)
@@ -1,170 +0,0 @@
-/*
- * gnucash-bin.c -- The program entry point for GnuCash
- *
- * Copyright (C) 2006 Chris Shoemaker <c.shoemaker at cox.net>
- *
- * 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, contact:
- *
- * Free Software Foundation Voice: +1-617-542-5942
- * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
- * Boston, MA 02110-1301, USA gnu at gnu.org
- */
-#include "config.h"
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <libguile.h>
-#include <glib/gi18n.h>
-#include <glib.h>
-#include "gnc-module/gnc-module.h"
-#include "engine/gnc-path.h"
-#include "engine/binreloc.h"
-/* #include "gnc-version.h" */
-#include "engine/gnc-engine.h"
-#include "engine/gnc-filepath-utils.h"
-#include "engine/gnc-hooks.h"
-#include "engine/gnc-commodity.h"
-#include "core-utils/gnc-main.h"
-#include "engine/gnc-session.h"
-#include "engine/engine-helpers.h"
-#include "swig-runtime.h"
-
-#include "gnc-backend-xml.h"
-
-#ifdef HAVE_GETTEXT
-# include <libintl.h>
-# include <locale.h>
-#endif
-
-#define APP_GNUCASH "/apps/gnucash"
-
-/* GNUCASH_SVN is defined whenever we're building from an SVN tree */
-#ifdef GNUCASH_SVN
-static int is_development_version = TRUE;
-#else
-static int is_development_version = FALSE;
-#endif
-
-static gchar **log_flags = NULL;
-static gchar *log_to_filename = NULL;
-
-static void
-gnc_log_init()
-{
- if (log_to_filename != NULL)
- {
- qof_log_init_filename_special(log_to_filename);
- }
- else
- {
- /* initialize logging to our file. */
- gchar *tracefilename;
- tracefilename = g_build_filename(g_get_tmp_dir(), "gnucash.trace",
- (gchar *)NULL);
- qof_log_init_filename(tracefilename);
- g_free(tracefilename);
- }
-
- // set a reasonable default.
- qof_log_set_default(QOF_LOG_WARNING);
-
- gnc_log_default();
-
- if (gnc_is_debugging())
- {
- qof_log_set_level("", QOF_LOG_INFO);
- qof_log_set_level("qof", QOF_LOG_INFO);
- qof_log_set_level("gnc", QOF_LOG_INFO);
- }
-
- {
- gchar *log_config_filename;
- log_config_filename = gnc_build_dotgnucash_path("log.conf");
- if (g_file_test(log_config_filename, G_FILE_TEST_EXISTS))
- qof_log_parse_log_config(log_config_filename);
- g_free(log_config_filename);
- }
-
- if (log_flags != NULL)
- {
- int i = 0;
- for (; log_flags[i] != NULL; i++)
- {
- QofLogLevel level;
- gchar **parts = NULL;
-
- gchar *log_opt = log_flags[i];
- parts = g_strsplit(log_opt, "=", 2);
- if (parts == NULL || parts[0] == NULL || parts[1] == NULL)
- {
- g_warning("string [%s] not parseable", log_opt);
- continue;
- }
-
- level = qof_log_level_from_string(parts[1]);
- qof_log_set_level(parts[0], level);
- g_strfreev(parts);
- }
- }
-}
-
-
-int
-main(int argc, char ** argv)
-{
-#if !defined(G_THREADS_ENABLED) || defined(G_THREADS_IMPL_NONE)
-# error "No GLib thread implementation available!"
-#endif
- g_thread_init(NULL);
-
-#ifdef ENABLE_BINRELOC
- {
- GError *binreloc_error = NULL;
- if (!gbr_init(&binreloc_error))
- {
- g_print("main: Error on gbr_init: %s\n", binreloc_error->message);
- g_error_free(binreloc_error);
- }
- }
-#else
- g_message("main: binreloc relocation support was disabled at configure time.\n");
-#endif
-
-#ifdef HAVE_GETTEXT
- {
- gchar *localedir = gnc_path_get_localedir();
- /* setlocale(LC_ALL, ""); is already called by gtk_set_locale()
- via gtk_init(). */
- bindtextdomain(GETTEXT_PACKAGE, localedir);
- textdomain(GETTEXT_PACKAGE);
- bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
- g_free(localedir);
- }
-#endif
-
- qof_log_init();
- qof_log_set_default(QOF_LOG_INFO);
-
- gnc_log_init();
-
- gnc_module_system_init();
-
- qof_backend_module_init();
-
- /* gnc_gnome_init (argc, argv, VERSION); */
- /* gnc_gui_init(); */
- /* scm_boot_guile(argc, argv, inner_main, 0); */
- exit(0); /* never reached */
-}
More information about the gnucash-changes
mailing list