Build gnucash main file as C++

This commit is contained in:
Geert Janssens 2020-05-19 17:30:55 +02:00
parent 9bf2b026ac
commit 736979f932
3 changed files with 46 additions and 43 deletions

View File

@ -32,7 +32,7 @@ else()
endif()
set (gnucash_SOURCES
gnucash.c
gnucash.cpp
gnucash-gresources.c
${GNUCASH_RESOURCE_FILE}
)
@ -259,7 +259,7 @@ gnc_add_scheme_targets(price-quotes
DEPENDS "scm-engine;scm-app-utils;scm-gnome-utils")
set_local_dist(gnucash_DIST_local CMakeLists.txt environment.in generate-gnc-script
gnucash.c gnucash.rc.in gnucash-valgrind.in gnucash-gresources.xml ${gresource_files}
gnucash.cpp gnucash.rc.in gnucash-valgrind.in gnucash-gresources.xml ${gresource_files}
price-quotes.scm ${gnucash_EXTRA_DIST})
set (gnucash_DIST ${gnucash_DIST_local} ${gnome_DIST} ${gnome_search_DIST} ${gnome_utils_DIST}

View File

@ -1,5 +1,5 @@
/*
* gnucash.c -- The program entry point for GnuCash
* gnucash.cpp -- The program entry point for GnuCash
*
* Copyright (C) 2006 Chris Shoemaker <c.shoemaker@cox.net>
*
@ -28,49 +28,52 @@
#include <libguile.h>
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include "glib.h"
#include "gnc-module.h"
#include "gnc-path.h"
#include "binreloc.h"
#include "gnc-locale-utils.h"
#include "gnc-version.h"
#include "gnc-engine.h"
#include "gnc-environment.h"
#include "gnc-filepath-utils.h"
#include "gnc-ui-util.h"
#include "gnc-file.h"
#include "gnc-hooks.h"
#include "top-level.h"
#include "gfec.h"
#include "gnc-commodity.h"
#include "gnc-prefs.h"
#include "gnc-prefs-utils.h"
#include "gnc-gsettings.h"
#include "gnc-report.h"
#include "gnc-main-window.h"
#include "gnc-splash.h"
#include "gnc-gnome-utils.h"
#include "gnc-plugin-bi-import.h"
#include "gnc-plugin-csv-export.h"
#include "gnc-plugin-csv-import.h"
#include "gnc-plugin-customer-import.h"
#include "gnc-plugin-file-history.h"
#include "gnc-plugin-log-replay.h"
#include "gnc-plugin-qif-import.h"
#include "gnc-plugin-report-system.h"
#include "dialog-new-user.h"
#include "gnc-session.h"
#include "gnc-engine-guile.h"
#include "gnucash-register.h"
#include "swig-runtime.h"
#include "guile-mappings.h"
#include "search-core-type.h"
#include "window-report.h"
#include <glib.h>
#include <binreloc.h>
#include <gnc-locale-utils.h>
#include <gnc-engine.h>
#include <gnc-ui-util.h>
#include <gnc-commodity.h>
#include <swig-runtime.h>
#include <guile-mappings.h>
#include <window-report.h>
#ifdef __MINGW32__
#include <Windows.h>
#include <fcntl.h>
#endif
extern "C" {
#include <dialog-new-user.h>
#include <gfec.h>
#include <gnc-engine-guile.h>
#include <gnc-environment.h>
#include <gnc-file.h>
#include <gnc-filepath-utils.h>
#include <gnc-gnome-utils.h>
#include <gnc-gsettings.h>
#include <gnc-hooks.h>
#include <gnc-main-window.h>
#include <gnc-module.h>
#include <gnc-path.h>
#include <gnc-plugin-bi-import.h>
#include <gnc-plugin-csv-export.h>
#include <gnc-plugin-csv-import.h>
#include <gnc-plugin-customer-import.h>
#include <gnc-plugin-file-history.h>
#include <gnc-plugin-log-replay.h>
#include <gnc-plugin-qif-import.h>
#include <gnc-plugin-report-system.h>
#include <gnc-prefs.h>
#include <gnc-prefs-utils.h>
#include <gnc-report.h>
#include <gnc-session.h>
#include <gnc-splash.h>
#include <gnc-version.h>
#include <gnucash-register.h>
#include <search-core-type.h>
#include <top-level.h>
}
/* This static indicates the debugging module that this .o belongs to. */
static QofLogModule log_module = GNC_MOD_GUI;
@ -501,7 +504,7 @@ load_gnucash_modules()
int i, len;
struct
{
gchar * name;
const gchar * name;
int version;
gboolean optional;
} modules[] =

View File

@ -210,7 +210,7 @@ gnucash/gnome-utils/print-session.c
gnucash/gnome-utils/search-param.c
gnucash/gnome-utils/tree-view-utils.c
gnucash/gnome-utils/window-main-summarybar.c
gnucash/gnucash.c
gnucash/gnucash.cpp
gnucash/gschemas/org.gnucash.dialogs.business.gschema.xml.in
gnucash/gschemas/org.gnucash.dialogs.checkprinting.gschema.xml.in
gnucash/gschemas/org.gnucash.dialogs.commodities.gschema.xml.in