mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
RptCleanup - Move locale-specific reports to reports directory
This commit is contained in:
parent
0d426fcfe7
commit
f2de292cd6
4
.gitignore
vendored
4
.gitignore
vendored
@ -171,8 +171,8 @@ gnucash/register/ledger-core/test/test-link-module
|
|||||||
gnucash/register/register-core/test/test-link-module
|
gnucash/register/register-core/test/test-link-module
|
||||||
gnucash/register/register-gnome/test/test-link-module
|
gnucash/register/register-gnome/test/test-link-module
|
||||||
gnucash/report/business-reports/gnucash
|
gnucash/report/business-reports/gnucash
|
||||||
gnucash/report/locale-specific/us/gnucash
|
gnucash/report/locale-specific/gnucash
|
||||||
gnucash/report/locale-specific/us/test/test-link-module
|
gnucash/report/locale-specific/test/test-link-module
|
||||||
gnucash/report/gnucash
|
gnucash/report/gnucash
|
||||||
gnucash/report/test/test-link-module
|
gnucash/report/test/test-link-module
|
||||||
gnucash/report/reports/gnucash
|
gnucash/report/reports/gnucash
|
||||||
|
@ -503,7 +503,7 @@ load_gnucash_modules()
|
|||||||
{ "gnucash/import-export/customer-import", 0, TRUE},
|
{ "gnucash/import-export/customer-import", 0, TRUE},
|
||||||
{ "gnucash/report", 0, FALSE },
|
{ "gnucash/report", 0, FALSE },
|
||||||
{ "gnucash/report/stylesheets", 0, FALSE },
|
{ "gnucash/report/stylesheets", 0, FALSE },
|
||||||
{ "gnucash/report/locale-specific/us", 0, FALSE },
|
{ "gnucash/report/locale-specific", 0, FALSE },
|
||||||
{ "gnucash/python", 0, TRUE },
|
{ "gnucash/python", 0, TRUE },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
|
|
||||||
add_subdirectory(jqplot)
|
add_subdirectory(jqplot)
|
||||||
add_subdirectory(locale-specific)
|
|
||||||
add_subdirectory(reports)
|
add_subdirectory(reports)
|
||||||
add_subdirectory(stylesheets)
|
add_subdirectory(stylesheets)
|
||||||
add_subdirectory(test)
|
add_subdirectory(test)
|
||||||
@ -119,5 +118,5 @@ set_local_dist(report_DIST_local CMakeLists.txt
|
|||||||
${report_SCHEME} ${report_SCHEME_1}
|
${report_SCHEME} ${report_SCHEME_1}
|
||||||
${report_SCHEME_2} ${report_SCHEME_3})
|
${report_SCHEME_2} ${report_SCHEME_3})
|
||||||
|
|
||||||
set(report_DIST ${report_DIST_local} ${jqplot_DIST} ${locale_specific_DIST}
|
set(report_DIST ${report_DIST_local} ${jqplot_DIST}
|
||||||
${reports_DIST} ${stylesheets_DIST} ${test_report_DIST} PARENT_SCOPE)
|
${reports_DIST} ${stylesheets_DIST} ${test_report_DIST} PARENT_SCOPE)
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
add_subdirectory(us)
|
|
||||||
|
|
||||||
set_local_dist(locale_specific_DIST_local CMakeLists.txt )
|
|
||||||
set(locale_specific_DIST ${locale_specific_DIST_local} ${locale_specific_us_DIST} PARENT_SCOPE)
|
|
@ -1,51 +0,0 @@
|
|||||||
add_subdirectory(test)
|
|
||||||
|
|
||||||
set(locale_reports_us_SOURCES
|
|
||||||
gncmod-locale-reports-us.c
|
|
||||||
)
|
|
||||||
|
|
||||||
add_library(gncmod-locale-reports-us ${locale_reports_us_SOURCES})
|
|
||||||
|
|
||||||
target_link_libraries(gncmod-locale-reports-us gnc-module gncmod-app-utils gncmod-gnome-utils
|
|
||||||
${GUILE_LDFLAGS} ${GLIB2_LDFLAGS})
|
|
||||||
|
|
||||||
target_compile_definitions(gncmod-locale-reports-us PRIVATE -DG_LOG_DOMAIN=\"gnc.report.locale.us\")
|
|
||||||
|
|
||||||
|
|
||||||
if (APPLE)
|
|
||||||
set_target_properties (gncmod-locale-reports-us PROPERTIES INSTALL_NAME_DIR "${CMAKE_INSTALL_FULL_LIBDIR}/gnucash")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
install(TARGETS gncmod-locale-reports-us
|
|
||||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/gnucash
|
|
||||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/gnucash
|
|
||||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
|
||||||
# No headers to install
|
|
||||||
|
|
||||||
# Scheme
|
|
||||||
|
|
||||||
set(gncmod_local_reports_us_SCHEME taxtxf.scm taxtxf-de_DE.scm)
|
|
||||||
|
|
||||||
set(GUILE_DEPENDS
|
|
||||||
gncmod-html
|
|
||||||
scm-core-utils
|
|
||||||
scm-gettext
|
|
||||||
scm-gnc-module
|
|
||||||
scm-scm
|
|
||||||
scm-test-core
|
|
||||||
scm-tax-us
|
|
||||||
scm-report
|
|
||||||
scm-gnome-utils
|
|
||||||
)
|
|
||||||
|
|
||||||
gnc_add_scheme_targets(scm-report-locale-specific
|
|
||||||
"${gncmod_local_reports_us_SCHEME_1}"
|
|
||||||
gnucash/report
|
|
||||||
"${GUILE_DEPENDS}"
|
|
||||||
FALSE
|
|
||||||
)
|
|
||||||
|
|
||||||
set_local_dist(locale_specific_us_DIST_local CMakeLists.txt
|
|
||||||
${locale_reports_us_SOURCES} ${gncmod_local_reports_us_SCHEME})
|
|
||||||
|
|
||||||
set(locale_specific_us_DIST ${locale_specific_us_DIST_local} ${test_locale_specific_us_DIST} PARENT_SCOPE)
|
|
@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
add_subdirectory(locale-specific)
|
||||||
add_subdirectory(standard/test)
|
add_subdirectory(standard/test)
|
||||||
add_subdirectory(support)
|
add_subdirectory(support)
|
||||||
|
|
||||||
@ -119,7 +120,12 @@ gnc_add_scheme_targets(scm-reports-example
|
|||||||
TRUE
|
TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
add_custom_target(scm-reports ALL DEPENDS scm-reports-standard scm-reports-example scm-reports-common scm-rpt-reports)
|
add_custom_target(scm-reports ALL DEPENDS
|
||||||
|
scm-reports-standard
|
||||||
|
scm-reports-example
|
||||||
|
scm-reports-common
|
||||||
|
scm-rpt-reports
|
||||||
|
scm-reports-locale-specific)
|
||||||
|
|
||||||
set_local_dist(reports_DIST_local CMakeLists.txt ${reports_SCHEME} ${reports_common_SCHEME} ${reports_standard_SCHEME} ${reports_example_SCHEME})
|
set_local_dist(reports_DIST_local CMakeLists.txt ${reports_SCHEME} ${reports_common_SCHEME} ${reports_standard_SCHEME} ${reports_example_SCHEME})
|
||||||
set(reports_DIST ${reports_DIST_local} ${reports_support_DIST} ${test_reports_standard_DIST} PARENT_SCOPE)
|
set(reports_DIST ${reports_DIST_local} ${reports_locale_specific_DIST} ${reports_support_DIST} ${test_reports_standard_DIST} PARENT_SCOPE)
|
||||||
|
53
gnucash/report/reports/locale-specific/CMakeLists.txt
Normal file
53
gnucash/report/reports/locale-specific/CMakeLists.txt
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
add_subdirectory(test)
|
||||||
|
|
||||||
|
set(locale_specific_SOURCES
|
||||||
|
gncmod-locale-specific.c
|
||||||
|
)
|
||||||
|
|
||||||
|
add_library(gncmod-locale-specific ${locale_specific_SOURCES})
|
||||||
|
|
||||||
|
target_link_libraries(gncmod-locale-specific gnc-module gncmod-app-utils gncmod-gnome-utils
|
||||||
|
${GUILE_LDFLAGS} ${GLIB2_LDFLAGS})
|
||||||
|
|
||||||
|
target_compile_definitions(gncmod-locale-specific PRIVATE -DG_LOG_DOMAIN=\"gnc.report.locale\")
|
||||||
|
|
||||||
|
|
||||||
|
if (APPLE)
|
||||||
|
set_target_properties (gncmod-locale-specific PROPERTIES INSTALL_NAME_DIR "${CMAKE_INSTALL_FULL_LIBDIR}/gnucash")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
install(TARGETS gncmod-locale-specific
|
||||||
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/gnucash
|
||||||
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/gnucash
|
||||||
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||||
|
# No headers to install
|
||||||
|
|
||||||
|
# Scheme
|
||||||
|
|
||||||
|
set(gncmod_locale_reports_SCHEME taxtxf.scm taxtxf-de_DE.scm)
|
||||||
|
|
||||||
|
set(GUILE_DEPENDS
|
||||||
|
gncmod-html
|
||||||
|
scm-core-utils
|
||||||
|
scm-gettext
|
||||||
|
scm-gnc-module
|
||||||
|
scm-scm
|
||||||
|
scm-test-core
|
||||||
|
scm-tax-us
|
||||||
|
scm-report
|
||||||
|
scm-gnome-utils
|
||||||
|
)
|
||||||
|
|
||||||
|
gnc_add_scheme_targets(scm-reports-locale-specific-1
|
||||||
|
"${gncmod_locale_reports_SCHEME}"
|
||||||
|
gnucash/report/reports/locale-specific
|
||||||
|
"${GUILE_DEPENDS}"
|
||||||
|
FALSE
|
||||||
|
)
|
||||||
|
|
||||||
|
add_custom_target(scm-reports-locale-specific ALL DEPENDS scm-reports-locale-specific-1)
|
||||||
|
|
||||||
|
set_local_dist(reports_locale_specific_DIST_local CMakeLists.txt
|
||||||
|
${locale_specific_SOURCES} ${gncmod_locale_reports_SCHEME})
|
||||||
|
|
||||||
|
set(reports_locale_specific_DIST ${reports_locale_specific_DIST_local} ${test_locale_specific_DIST} PARENT_SCOPE)
|
@ -1,6 +1,6 @@
|
|||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
* gncmod-locale-reports-us.c
|
* gncmod-locale-reports.c
|
||||||
* module definition/initialization for the US reports
|
* module definition/initialization for the locale specific reports
|
||||||
*
|
*
|
||||||
* Copyright (c) 2001 Linux Developers Group, Inc.
|
* Copyright (c) 2001 Linux Developers Group, Inc.
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
@ -34,35 +34,35 @@
|
|||||||
#include "gnc-module.h"
|
#include "gnc-module.h"
|
||||||
#include "gnc-module-api.h"
|
#include "gnc-module-api.h"
|
||||||
|
|
||||||
GNC_MODULE_API_DECL(libgncmod_locale_reports_us)
|
GNC_MODULE_API_DECL(libgncmod_locale_specific)
|
||||||
|
|
||||||
/* version of the gnc module system interface we require */
|
/* version of the gnc module system interface we require */
|
||||||
int libgncmod_locale_reports_us_gnc_module_system_interface = 0;
|
int libgncmod_locale_specific_gnc_module_system_interface = 0;
|
||||||
|
|
||||||
/* module versioning uses libtool semantics. */
|
/* module versioning uses libtool semantics. */
|
||||||
int libgncmod_locale_reports_us_gnc_module_current = 0;
|
int libgncmod_locale_specific_gnc_module_current = 0;
|
||||||
int libgncmod_locale_reports_us_gnc_module_revision = 0;
|
int libgncmod_locale_specific_gnc_module_revision = 0;
|
||||||
int libgncmod_locale_reports_us_gnc_module_age = 0;
|
int libgncmod_locale_specific_gnc_module_age = 0;
|
||||||
|
|
||||||
|
|
||||||
char *
|
char *
|
||||||
libgncmod_locale_reports_us_gnc_module_path(void)
|
libgncmod_locale_specific_gnc_module_path(void)
|
||||||
{
|
{
|
||||||
/* const char *thislocale = setlocale(LC_ALL, NULL);
|
/* const char *thislocale = setlocale(LC_ALL, NULL);
|
||||||
if (strncmp(thislocale, "de_DE", 5) == 0)
|
if (strncmp(thislocale, "de_DE", 5) == 0)
|
||||||
return g_strdup("gnucash/report/locale-specific/de_DE");
|
return g_strdup("gnucash/report/locale-specific/de_DE");
|
||||||
else */
|
else */
|
||||||
return g_strdup("gnucash/report/locale-specific/us");
|
return g_strdup("gnucash/report/locale-specific");
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
libgncmod_locale_reports_us_gnc_module_description(void)
|
libgncmod_locale_specific_gnc_module_description(void)
|
||||||
{
|
{
|
||||||
return g_strdup("US income tax reports and related material");
|
return g_strdup("US income tax reports and related material");
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
libgncmod_locale_reports_us_gnc_module_init(int refcount)
|
libgncmod_locale_specific_gnc_module_init(int refcount)
|
||||||
{
|
{
|
||||||
const gchar *tax_module, *report_taxtxf;
|
const gchar *tax_module, *report_taxtxf;
|
||||||
/* load the tax info */
|
/* load the tax info */
|
||||||
@ -80,12 +80,12 @@ libgncmod_locale_reports_us_gnc_module_init(int refcount)
|
|||||||
if (is_de_DE)
|
if (is_de_DE)
|
||||||
{
|
{
|
||||||
tax_module = "gnucash/tax/de_DE";
|
tax_module = "gnucash/tax/de_DE";
|
||||||
report_taxtxf = "(use-modules (gnucash report taxtxf-de_DE))";
|
report_taxtxf = "(use-modules (gnucash report reports locale-specific taxtxf-de_DE))";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
tax_module = "gnucash/tax/us";
|
tax_module = "gnucash/tax/us";
|
||||||
report_taxtxf = "(use-modules (gnucash report taxtxf))";
|
report_taxtxf = "(use-modules (gnucash report reports locale-specific taxtxf))";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The gchar* cast is only because the function declaration expects
|
/* The gchar* cast is only because the function declaration expects
|
||||||
@ -113,7 +113,7 @@ libgncmod_locale_reports_us_gnc_module_init(int refcount)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
libgncmod_locale_reports_us_gnc_module_end(int refcount)
|
libgncmod_locale_specific_gnc_module_end(int refcount)
|
||||||
{
|
{
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
@ -66,7 +66,7 @@
|
|||||||
|
|
||||||
;; depends must be outside module scope -- and should eventually go away.
|
;; depends must be outside module scope -- and should eventually go away.
|
||||||
|
|
||||||
(define-module (gnucash report taxtxf-de_DE))
|
(define-module (gnucash report reports locale-specific taxtxf-de_DE))
|
||||||
(use-modules (gnucash utilities))
|
(use-modules (gnucash utilities))
|
||||||
(use-modules (srfi srfi-1))
|
(use-modules (srfi srfi-1))
|
||||||
(use-modules (gnucash core-utils)) ; for gnc:version
|
(use-modules (gnucash core-utils)) ; for gnc:version
|
@ -98,7 +98,7 @@
|
|||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
|
||||||
(define-module (gnucash report taxtxf))
|
(define-module (gnucash report reports locale-specific taxtxf))
|
||||||
(use-modules (gnucash utilities))
|
(use-modules (gnucash utilities))
|
||||||
(use-modules (srfi srfi-1))
|
(use-modules (srfi srfi-1))
|
||||||
(use-modules (gnucash gnc-module))
|
(use-modules (gnucash gnc-module))
|
@ -20,4 +20,4 @@ gnc_add_scheme_test_targets(test-load-report-locale-specific-module
|
|||||||
)
|
)
|
||||||
gnc_add_scheme_tests(test-load-report-locale-specific-module.scm)
|
gnc_add_scheme_tests(test-load-report-locale-specific-module.scm)
|
||||||
|
|
||||||
set_dist_list(test_locale_specific_us_DIST CMakeLists.txt test-link-module.c test-load-report-locale-specific-module.scm)
|
set_dist_list(test_locale_specific_DIST CMakeLists.txt test-link-module.c test-load-report-locale-specific-module.scm)
|
@ -438,9 +438,6 @@ gnucash/report/html-style-sheet.scm
|
|||||||
gnucash/report/html-table.scm
|
gnucash/report/html-table.scm
|
||||||
gnucash/report/html-text.scm
|
gnucash/report/html-text.scm
|
||||||
gnucash/report/html-utilities.scm
|
gnucash/report/html-utilities.scm
|
||||||
gnucash/report/locale-specific/us/gncmod-locale-reports-us.c
|
|
||||||
gnucash/report/locale-specific/us/taxtxf-de_DE.scm
|
|
||||||
gnucash/report/locale-specific/us/taxtxf.scm
|
|
||||||
gnucash/report/options-utilities.scm
|
gnucash/report/options-utilities.scm
|
||||||
gnucash/report/report-core.scm
|
gnucash/report/report-core.scm
|
||||||
gnucash/report/report-register-hooks.scm
|
gnucash/report/report-register-hooks.scm
|
||||||
@ -450,6 +447,9 @@ gnucash/report/reports/example/daily-reports.scm
|
|||||||
gnucash/report/reports/example/hello-world.scm
|
gnucash/report/reports/example/hello-world.scm
|
||||||
gnucash/report/reports/example/sample-graphs.scm
|
gnucash/report/reports/example/sample-graphs.scm
|
||||||
gnucash/report/reports/example/welcome-to-gnucash.scm
|
gnucash/report/reports/example/welcome-to-gnucash.scm
|
||||||
|
gnucash/report/reports/locale-specific/gncmod-locale-specific.c
|
||||||
|
gnucash/report/reports/locale-specific/taxtxf-de_DE.scm
|
||||||
|
gnucash/report/reports/locale-specific/taxtxf.scm
|
||||||
gnucash/report/reports/reports.scm
|
gnucash/report/reports/reports.scm
|
||||||
gnucash/report/reports/standard/account-piecharts.scm
|
gnucash/report/reports/standard/account-piecharts.scm
|
||||||
gnucash/report/reports/standard/account-summary.scm
|
gnucash/report/reports/standard/account-summary.scm
|
||||||
|
Loading…
Reference in New Issue
Block a user