mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
engine - move guile code to bindings/guile
This commit tries to do the minimum necessary to move the guile bits from engine to bindings/guile. As engine is a very central piece in the software, this unfortunately still touches many other source files: - A few helper objects have been squashed together: * engine-helpers-guile.[ch] (of which the c part is extracted from engine-helpers.c) * gncBusGuile.[ch] * gnc-hooks-scm.[ch] - The initialization function of gncmod-engine no longer initializes the scm bits. Any scm code that wants to interact with the engine code now has to load the (gnucash engine) scm module, or sometimes (gnucash business-core). The bulk of changes in this commit actually is updating all the scm consumers to do so. - scm-scm target has been removed. Instead (gnucash utilities) is part of scm-engine. A few dependency graphs have been updated for this. More refinements will be in followup commits.
This commit is contained in:
@@ -76,9 +76,8 @@ add_xml_test(test-load-xml2 test-load-xml2.cpp
|
||||
# GNC_TEST_FILES=${CMAKE_CURRENT_SOURCE_DIR}/test-files/xml2
|
||||
#)
|
||||
|
||||
gnc_add_test_with_guile(test-load-example-account
|
||||
add_xml_test(test-load-example-account
|
||||
"${test_backend_xml_module_SOURCES};test-load-example-account.cpp"
|
||||
XML_TEST_INCLUDE_DIRS XML_TEST_LIBS
|
||||
GNC_ACCOUNT_PATH=${CMAKE_SOURCE_DIR}/data/accounts/C
|
||||
)
|
||||
target_compile_options(test-load-example-account PRIVATE -DU_SHOW_CPLUSPLUS_API=0)
|
||||
|
||||
@@ -37,7 +37,6 @@ extern "C"
|
||||
#include "test-engine-stuff.h"
|
||||
}
|
||||
|
||||
#include <libguile.h>
|
||||
#include "test-file-stuff.h"
|
||||
#include "io-gncxml-v2.h"
|
||||
|
||||
@@ -65,13 +64,15 @@ test_load_file (const char* filename)
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
guile_main (void* closure, int argc, char** argv)
|
||||
int
|
||||
main (int argc, char** argv)
|
||||
{
|
||||
const char* location = g_getenv ("GNC_ACCOUNT_PATH");
|
||||
GSList* list = NULL;
|
||||
GDir* ea_dir;
|
||||
|
||||
g_setenv ("GNC_UNINSTALLED", "1", TRUE);
|
||||
|
||||
if (!location)
|
||||
{
|
||||
location = "../../../../data/accounts/C";
|
||||
@@ -115,11 +116,3 @@ guile_main (void* closure, int argc, char** argv)
|
||||
print_test_results ();
|
||||
exit (get_rv ());
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char** argv)
|
||||
{
|
||||
g_setenv ("GNC_UNINSTALLED", "1", TRUE);
|
||||
scm_boot_guile (argc, argv, guile_main, NULL);
|
||||
exit (get_rv ());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user