Remove Autotools

This commit is contained in:
Rob Gowin
2017-12-02 19:50:14 -06:00
parent ebbcd30f39
commit 54ac7f23e0
326 changed files with 187 additions and 12767 deletions

View File

@@ -5,5 +5,5 @@ ADD_SUBDIRECTORY (sql)
SET_LOCAL_DIST(backend_DIST_local CMakeLists.txt Makefile.am)
SET_LOCAL_DIST(backend_DIST_local CMakeLists.txt )
SET(backend_DIST ${backend_DIST_local} ${backend_dbi_DIST} ${backend_sql_DIST} ${backend_xml_DIST} PARENT_SCOPE)

View File

@@ -1,6 +0,0 @@
if WITH_DBI
DBI_DIR=dbi
endif
SUBDIRS = xml sql ${DBI_DIR}
EXTRA_DIST = CMakeLists.txt

View File

@@ -19,7 +19,7 @@ SET (backend_dbi_noinst_HEADERS
)
SET_LOCAL_DIST(backend_dbi_DIST_local
${backend_dbi_SOURCES} ${backend_dbi_noinst_HEADERS} CMakeLists.txt Makefile.am)
${backend_dbi_SOURCES} ${backend_dbi_noinst_HEADERS} CMakeLists.txt )
SET(backend_dbi_DIST ${backend_dbi_DIST_local} ${test_dbi_backend_DIST} PARENT_SCOPE)
# Add dependency on config.h

View File

@@ -1,46 +0,0 @@
SUBDIRS = . test
# Now a shared library AND a GModule
pkglib_LTLIBRARIES = libgncmod-backend-dbi.la
# "${top_srcdir}/common/debug" below is for the splint header
AM_CPPFLAGS = \
-I.. -I../.. \
-DLOCALE_DIR=\""$(datadir)/locale"\" \
-I${top_srcdir}/libgnucash/backend \
-I${top_srcdir}/libgnucash/backend/sql \
-I${top_srcdir}/common/debug \
-I${top_srcdir}/libgnucash/engine \
-I${top_srcdir}/libgnucash/core-utils \
-I${top_srcdir}/borrowed/libc \
-I${top_srcdir}/common \
${GLIB_CFLAGS} \
${BOOST_CPPFLAGS} \
${WARN_CFLAGS}
libgncmod_backend_dbi_la_SOURCES = \
gnc-backend-dbi.cpp \
gnc-dbisqlconnection.cpp \
gnc-dbisqlresult.cpp
noinst_HEADERS = \
gnc-backend-dbi.h \
gnc-backend-dbi.hpp \
gnc-dbisqlconnection.hpp \
gnc-dbisqlresult.hpp \
gnc-dbiprovider.hpp \
gnc-dbiproviderimpl.hpp
libgncmod_backend_dbi_la_LDFLAGS = -shared -avoid-version
libgncmod_backend_dbi_la_LIBADD = \
${GLIB_LIBS} \
${top_builddir}/libgnucash/backend/sql/libgnc-backend-sql.la \
${top_builddir}/libgnucash/engine/libgncmod-engine.la \
${top_builddir}/libgnucash/core-utils/libgnc-core-utils.la \
${BOOST_LDFLAGS} -lboost_regex \
${LIBDBI_LIBS}
AM_CPPFLAGS += -DG_LOG_DOMAIN=\"gnc.backend.dbi\"
EXTRA_DIST = CMakeLists.txt

View File

@@ -24,7 +24,7 @@ SET(test_dbi_backend_SOURCES
SET(test_dbi_backend_HEADERS test-dbi-business-stuff.h test-dbi-stuff.h)
SET_DIST_LIST(test_dbi_backend_DIST ${test_dbi_backend_SOURCES} ${test_dbi_backend_HEADERS} test-dbi.xml CMakeLists.txt Makefile.am)
SET_DIST_LIST(test_dbi_backend_DIST ${test_dbi_backend_SOURCES} ${test_dbi_backend_HEADERS} test-dbi.xml CMakeLists.txt )
# This test does not work on Win32
IF (WITH_SQL AND NOT WIN32)

View File

@@ -1,81 +0,0 @@
# Makefile.am for src/backend/dbi/test
include $(top_srcdir)/test-templates/Makefile.decl
AM_CPPFLAGS = \
-I${top_srcdir}/borrowed/libc \
-I${top_srcdir}/common \
-I${top_srcdir}/libgnucash/core-utils \
-I${top_srcdir}/libgnucash/gnc-module \
-I${top_srcdir}/common/test-core \
-I${top_srcdir}/libgnucash/engine \
-I${top_srcdir}/libgnucash/engine/test-core \
-I${top_srcdir}/libgnucash/backend/sql \
-DTEST_MYSQL_URL=\"${TEST_MYSQL_URL}\" \
-DTEST_PGSQL_URL=\"${TEST_PGSQL_URL}\" \
${GLIB_CFLAGS} \
${GUILE_CFLAGS} \
${BOOST_CPPFLAGS}
LDADD = ${top_builddir}/common/test-core/libtest-core.la \
${top_builddir}/libgnucash/gnc-module/libgnc-module.la \
${top_builddir}/libgnucash/engine/libgncmod-engine.la \
${top_builddir}/libgnucash/engine/test-core/libgncmod-test-engine.la \
${top_builddir}/libgnucash/core-utils/libgnc-core-utils.la \
${top_builddir}/libgnucash/backend/sql/libgnc-backend-sql.la \
${top_builddir}/libgnucash/backend/xml/libgnc-backend-xml-utils.la \
${top_builddir}/borrowed/libc/libc-missing.la
GNC_TEST_DEPS = \
--gnc-module-dir ${top_builddir}/libgnucash/engine \
--guile-load-dir ${top_builddir}/libgnucash/engine \
--library-dir ${top_builddir}/libgnucash/core-utils \
--library-dir ${top_builddir}/libgnucash/gnc-module \
--library-dir ${top_builddir}/libgnucash/engine \
--library-dir ${top_builddir}/libgnucash/backend/xml
TESTS_ENVIRONMENT = \
GNC_BUILDDIR=${abs_top_builddir} \
GNC_ACCOUNT_PATH=${top_srcdir}/accounts/C \
SRCDIR=${srcdir} \
${gnc_dbd_dir_override} \
$(shell ${abs_top_srcdir}/common/gnc-test-env.pl --noexports ${GNC_TEST_DEPS})
EXTRA_DIST += \
test-dbi-stuff.h \
test-dbi-business-stuff.h \
test-dbi.xml \
CMakeLists.txt
check_PROGRAMS = test-backend-dbi
TESTS = ${check_PROGRAMS}
if CUSTOM_GNC_DBD_DIR
gnc_dbd_dir_override = GNC_DBD_DIR="@GNC_DBD_DIR@"
endif
test_backend_dbi_SOURCES = \
test-backend-dbi.cpp \
test-backend-dbi-basic.cpp \
test-dbi-stuff.cpp \
test-dbi-business-stuff.cpp \
../gnc-dbisqlconnection.cpp \
../gnc-backend-dbi.cpp \
../gnc-dbisqlresult.cpp
test_backend_dbi_CPPFLAGS = \
-DDBI_TEST_XML_FILENAME=\"${srcdir}/test-dbi.xml\" \
${AM_CPPFLAGS}
test_backend_dbi_LDADD = \
${BOOST_LDFLAGS} -lboost_regex \
${LIBDBI_LIBS} \
${LDADD}
AM_CPPFLAGS += -DG_LOG_DOMAIN=\"gnc.backend.dbi\"
# If you let make run parallel builds it complains that there is no rule to make
# libgncmod-test-dbi.la. This is wrong, but I can't figure out how to fix it
# so I'll turn off parallel builds
#.NOTPARALLEL:

View File

@@ -58,7 +58,7 @@ SET (backend_sql_noinst_HEADERS
escape.h
)
SET_LOCAL_DIST(backend_sql_DIST_local ${backend_sql_SOURCES} ${backend_sql_noinst_HEADERS} CMakeLists.txt Makefile.am)
SET_LOCAL_DIST(backend_sql_DIST_local ${backend_sql_SOURCES} ${backend_sql_noinst_HEADERS} CMakeLists.txt )
SET(backend_sql_DIST ${backend_sql_DIST_local} ${test_backend_sql_DIST} PARENT_SCOPE)
# Add dependency on config.h

View File

@@ -1,84 +0,0 @@
include $(top_srcdir)/test-templates/Makefile.decl
SUBDIRS = . test
TEST_SUBDIRS = test
# Now a shared library AND a GModule
lib_LTLIBRARIES = libgnc-backend-sql.la
# "${top_srcdir}/common/debug" below is for the splint header
AM_CPPFLAGS = \
-I.. -I../.. \
-DLOCALE_DIR=\""$(datadir)/locale"\" \
-I${top_srcdir}/libgnucash/backend \
-I${top_srcdir}/common/debug \
-I${top_srcdir}/libgnucash/engine \
-I${top_srcdir}/libgnucash/core-utils\
-I${top_srcdir}/borrowed/libc\
${GLIB_CFLAGS} \
${GUILE_CFLAGS} \
${WARN_CFLAGS} \
${BOOST_CPPFLAGS}
libgnc_backend_sql_la_SOURCES = \
gnc-account-sql.cpp \
gnc-address-sql.cpp \
gnc-bill-term-sql.cpp \
gnc-book-sql.cpp \
gnc-budget-sql.cpp \
gnc-commodity-sql.cpp \
gnc-customer-sql.cpp \
gnc-employee-sql.cpp \
gnc-entry-sql.cpp \
gnc-invoice-sql.cpp \
gnc-job-sql.cpp \
gnc-lots-sql.cpp \
gnc-order-sql.cpp \
gnc-owner-sql.cpp \
gnc-price-sql.cpp \
gnc-recurrence-sql.cpp \
gnc-schedxaction-sql.cpp \
gnc-slots-sql.cpp \
gnc-tax-table-sql.cpp \
gnc-transaction-sql.cpp \
gnc-vendor-sql.cpp \
gnc-sql-backend.cpp \
gnc-sql-result.cpp \
gnc-sql-column-table-entry.cpp \
gnc-sql-object-backend.cpp \
escape.cpp
noinst_HEADERS = \
gnc-account-sql.h \
gnc-bill-term-sql.h \
gnc-book-sql.h \
gnc-budget-sql.h \
gnc-commodity-sql.h \
gnc-customer-sql.h \
gnc-employee-sql.h \
gnc-entry-sql.h \
gnc-invoice-sql.h \
gnc-job-sql.h \
gnc-lots-sql.h \
gnc-order-sql.h \
gnc-price-sql.h \
gnc-recurrence-sql.h \
gnc-schedxaction-sql.h \
gnc-slots-sql.h \
gnc-tax-table-sql.h \
gnc-transaction-sql.h \
gnc-vendor-sql.h \
gnc-sql-backend.hpp \
gnc-sql-connection.hpp \
gnc-sql-result.hpp \
gnc-sql-column-table-entry.hpp \
gnc-sql-object-backend.hpp \
escape.h
libgnc_backend_sql_la_LIBADD = \
${GLIB_LIBS} \
${GUILE_LIBS} \
${top_builddir}/libgnucash/engine/libgncmod-engine.la
AM_CPPFLAGS += -DG_LOG_DOMAIN=\"gnc.backend.sql\"
EXTRA_DIST += CMakeLists.txt

View File

@@ -12,7 +12,7 @@ SET(test_backend_sql_SOURCES test-sqlbe.cpp utest-gnc-backend-sql.cpp)
SET(BACKEND_SQL_TEST_LIBS gnc-backend-sql gncmod-engine test-core)
SET_DIST_LIST(test_backend_sql_DIST ${test_backend_sql_SOURCES} CMakeLists.txt
Makefile.am test-column-types.cpp)
test-column-types.cpp)
IF(WITH_SQL)
# This test does not actually do anything.

View File

@@ -1,72 +0,0 @@
SUBDIRS = .
include $(top_srcdir)/test-templates/Makefile.decl
MODULEPATH = libgnucash/backend/sql
test_column_types_SOURCES = \
test-column-types.cpp
check_PROGRAMS = \
test-column-types \
test-sqlbe
TESTS = ${check_PROGRAMS}
GNC_TEST_DEPS = \
--gnc-module-dir ${top_builddir}/libgnucash/engine \
--guile-load-dir ${top_builddir}/libgnucash/engine \
--library-dir ${top_builddir}/libgnucash/core-utils \
--library-dir ${top_builddir}/libgnucash/gnc-module \
--library-dir ${top_builddir}/libgnucash/engine \
--library-dir ${top_builddir}/libgnucash/backend/sql
TESTS_ENVIRONMENT = \
GNC_ACCOUNT_PATH=${top_srcdir}/accounts/C \
SRCDIR=${srcdir} \
$(shell ${abs_top_srcdir}/common/gnc-test-env.pl --noexports ${GNC_TEST_DEPS})
LDADD = ${top_builddir}/common/test-core/libtest-core.la \
${top_builddir}/libgnucash/gnc-module/libgnc-module.la \
${top_builddir}/libgnucash/backend/sql/libgnc-backend-sql.la \
${top_builddir}/libgnucash/engine/libgncmod-engine.la \
${top_builddir}/libgnucash/engine/test-core/libgncmod-test-engine.la \
${top_builddir}/libgnucash/core-utils/libgnc-core-utils.la \
${top_builddir}/borrowed/libc/libc-missing.la
AM_CPPFLAGS = \
-I${top_srcdir}/borrowed/libc \
-I${top_srcdir}/common \
-I${top_srcdir}/libgnucash/core-utils \
-I${top_srcdir}/libgnucash/gnc-module \
-I${top_srcdir}/common/test-core \
-I${top_srcdir}/libgnucash/engine \
-I${top_srcdir}/libgnucash/engine/test-core \
-I${top_srcdir}/libgnucash/backend/sql \
${GLIB_CFLAGS} \
${GUILE_CFLAGS}
AM_CPPFLAGS += -DG_LOG_DOMAIN=\"gnc.backend.sql\"
#test_sqlbedir = ${top_srcdir}/${MODULEPATH}/test
test_sqlbe_SOURCES = \
test-sqlbe.cpp \
utest-gnc-backend-sql.cpp
test_sqlbe_LDADD = \
$(top_builddir)/$(MODULEPATH)/libgnc-backend-sql.la \
$(top_builddir)/libgnucash/engine/libgncmod-engine.la \
$(top_builddir)/common/test-core/libtest-core.la \
$(top_builddir)/libgnucash/core-utils/libgnc-core-utils.la \
$(GLIB_LIBS)
test_sqlbe_CFLAGS = \
-DTESTPROG=test_sqlbe \
$(DEFAULT_INCLUDES) \
-I$(top_srcdir)/$(MODULEPATH)/ \
-I$(top_srcdir)/libgnucash/backend/dbi/ \
-I$(top_srcdir)/libgnucash/engine/ \
-I$(top_srcdir)/common/test-core/ \
$(GLIB_CFLAGS)
EXTRA_DIST += CMakeLists.txt

View File

@@ -71,7 +71,7 @@ SET (backend_xml_utils_SOURCES
SET_LOCAL_DIST(backend_xml_DIST_local ${backend_xml_utils_SOURCES}
${backend_xml_utils_noinst_HEADERS} gnc-backend-xml.cpp CMakeLists.txt
Makefile.am)
)
SET(backend_xml_DIST ${backend_xml_DIST_local} ${test_backend_xml_DIST} PARENT_SCOPE)
# Add dependency on config.h

View File

@@ -1,107 +0,0 @@
SUBDIRS = . test
# Now a shared library AND a GModule
lib_LTLIBRARIES = libgnc-backend-xml-utils.la
pkglib_LTLIBRARIES = libgncmod-backend-xml.la
AM_CPPFLAGS = \
-I.. -I../.. \
-DLOCALE_DIR=\""$(datadir)/locale"\" \
-DU_SHOW_CPLUSPLUS_API=0 \
-I${top_srcdir}/libgnucash/backend \
-I${top_srcdir}/libgnucash/engine \
-I${top_srcdir}/libgnucash/core-utils \
-I${top_srcdir}/libgnucash/gnc-module \
-I${top_srcdir}/borrowed/libc\
-I$(top_srcdir)/common \
${LIBXML2_CFLAGS} \
${GLIB_CFLAGS} \
${BOOST_CPPFLAGS}
libgnc_backend_xml_utils_la_SOURCES = \
gnc-account-xml-v2.cpp \
gnc-address-xml-v2.cpp \
gnc-bill-term-xml-v2.cpp \
gnc-book-xml-v2.cpp \
gnc-budget-xml-v2.cpp \
gnc-commodity-xml-v2.cpp \
gnc-customer-xml-v2.cpp \
gnc-employee-xml-v2.cpp \
gnc-entry-xml-v2.cpp \
gnc-freqspec-xml-v2.cpp \
gnc-invoice-xml-v2.cpp \
gnc-job-xml-v2.cpp \
gnc-lot-xml-v2.cpp \
gnc-order-xml-v2.cpp \
gnc-owner-xml-v2.cpp \
gnc-pricedb-xml-v2.cpp \
gnc-recurrence-xml-v2.cpp \
gnc-schedxaction-xml-v2.cpp \
gnc-tax-table-xml-v2.cpp \
gnc-transaction-xml-v2.cpp \
gnc-vendor-xml-v2.cpp \
gnc-xml-backend.cpp \
gnc-xml-helper.cpp \
io-example-account.cpp \
io-gncxml-gen.cpp \
io-gncxml-v1.cpp \
io-gncxml-v2.cpp \
io-utils.cpp \
sixtp-dom-generators.cpp \
sixtp-dom-parsers.cpp \
sixtp-stack.cpp \
sixtp-to-dom-parser.cpp \
sixtp-utils.cpp \
sixtp.cpp
libgncmod_backend_xml_la_SOURCES = \
gnc-backend-xml.cpp
noinst_HEADERS = \
gnc-backend-xml.h \
gnc-xml.h \
gnc-address-xml-v2.h \
gnc-bill-term-xml-v2.h \
gnc-customer-xml-v2.h \
gnc-employee-xml-v2.h \
gnc-entry-xml-v2.h \
gnc-invoice-xml-v2.h \
gnc-job-xml-v2.h \
gnc-order-xml-v2.h \
gnc-owner-xml-v2.h \
gnc-tax-table-xml-v2.h \
gnc-vendor-xml-v2.h \
gnc-xml-backend.hpp \
gnc-xml-helper.h \
io-example-account.h \
io-gncxml-gen.h \
io-gncxml-v2.h \
io-gncxml.h \
io-utils.h \
sixtp-dom-generators.h \
sixtp-dom-parsers.h \
sixtp-parsers.h \
sixtp-stack.h \
sixtp-utils.h \
sixtp.h \
xml-helpers.h
libgnc_backend_xml_utils_la_LIBADD = \
${GLIB_LIBS} \
${LIBXML2_LIBS} \
${ZLIB_LIBS} \
${top_builddir}/libgnucash/engine/libgncmod-engine.la \
${top_builddir}/libgnucash/core-utils/libgnc-core-utils.la
libgncmod_backend_xml_la_LDFLAGS = -module -avoid-version
libgncmod_backend_xml_la_LIBADD = \
${GLIB_LIBS} \
${LIBXML2_LIBS} \
${ZLIB_LIBS} \
${top_builddir}/libgnucash/engine/libgncmod-engine.la \
${top_builddir}/libgnucash/core-utils/libgnc-core-utils.la \
libgnc-backend-xml-utils.la
AM_CPPFLAGS += -DG_LOG_DOMAIN=\"gnc.backend.xml\"
EXTRA_DIST = CMakeLists.txt

View File

@@ -57,7 +57,7 @@ SET(test_backend_xml_module_SOURCES
)
SET_LOCAL_DIST(test_backend_xml_DIST_local CMakeLists.txt grab-types.pl
Makefile.am README test-date-converting.cpp test-dom-converters1.cpp
README test-date-converting.cpp test-dom-converters1.cpp
test-dom-parser1.cpp test-file-stuff.cpp test-file-stuff.h test-kvp-frames.cpp
test-load-backend.cpp test-load-example-account.cpp test-load-xml2.cpp
test-save-in-lang.cpp test-string-converters.cpp test-xml2-is-file.cpp
@@ -65,7 +65,7 @@ SET_LOCAL_DIST(test_backend_xml_DIST_local CMakeLists.txt grab-types.pl
test-xml-pricedb.cpp test-xml-transaction.cpp)
SET(test_backend_xml_DIST ${test_backend_xml_DIST_local} ${test_backend_xml_test_files_DIST} PARENT_SCOPE)
# The test test-dom-parser1.c is not run by Makefile.am
# The test test-dom-parser1.c is not run by
# This line for autotools
CONFIGURE_FILE(test-real-data.sh.in test-real-data.sh)

View File

@@ -1,284 +0,0 @@
#
SUBDIRS = test-files
test_date_converting_SOURCES = \
${top_srcdir}/libgnucash/backend/xml/sixtp-dom-parsers.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-dom-generators.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-utils.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-stack.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-to-dom-parser.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-xml-helper.cpp \
test-date-converting.cpp
test_dom_converters1_SOURCES = \
${top_srcdir}/libgnucash/backend/xml/sixtp-dom-parsers.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-dom-generators.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-utils.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-stack.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-to-dom-parser.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-xml-helper.cpp \
test-dom-converters1.cpp
test_kvp_frames_SOURCES = \
${top_srcdir}/libgnucash/backend/xml/sixtp-dom-parsers.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-dom-generators.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-utils.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-stack.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-to-dom-parser.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-xml-helper.cpp \
test-kvp-frames.cpp
test_load_backend_SOURCES = \
test-load-backend.cpp
test_load_xml2_SOURCES = \
test-load-xml2.cpp
test_save_in_lang_SOURCES = \
test-save-in-lang.cpp
# the xml backend is now a GModule - this test does
# not load it as a module and cannot link to it
# and remain portable.
test_load_example_account_SOURCES = \
${top_srcdir}/libgnucash/backend/xml/sixtp-dom-parsers.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-dom-generators.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-utils.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-stack.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-to-dom-parser.cpp \
${top_srcdir}/libgnucash/backend/xml/io-example-account.cpp \
${top_srcdir}/libgnucash/backend/xml/io-gncxml-gen.cpp \
${top_srcdir}/libgnucash/backend/xml/io-gncxml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/io-utils.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-account-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-budget-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-lot-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-recurrence-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-schedxaction-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-freqspec-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-transaction-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-commodity-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-book-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-pricedb-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-xml-helper.cpp \
test-load-example-account.cpp
test_string_converters_SOURCES = \
${top_srcdir}/libgnucash/backend/xml/sixtp-dom-parsers.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-dom-generators.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-utils.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-stack.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-to-dom-parser.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-xml-helper.cpp \
test-string-converters.cpp
test_xml_account_SOURCES = \
${top_srcdir}/libgnucash/backend/xml/sixtp-dom-parsers.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-dom-generators.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-utils.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-stack.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-to-dom-parser.cpp \
${top_srcdir}/libgnucash/backend/xml/io-gncxml-gen.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-account-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-lot-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-schedxaction-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-recurrence-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-freqspec-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-transaction-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-commodity-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-book-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-pricedb-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-budget-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/io-gncxml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/io-utils.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-xml-helper.cpp \
test-xml-account.cpp
test_xml_commodity_SOURCES = \
${top_srcdir}/libgnucash/backend/xml/sixtp-dom-parsers.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-dom-generators.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-utils.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-stack.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-to-dom-parser.cpp \
${top_srcdir}/libgnucash/backend/xml/io-gncxml-gen.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-account-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-lot-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-schedxaction-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-recurrence-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-freqspec-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-transaction-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-commodity-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-book-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-pricedb-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-budget-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/io-gncxml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/io-utils.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-xml-helper.cpp \
test-xml-commodity.cpp
test_xml_pricedb_SOURCES = \
${top_srcdir}/libgnucash/backend/xml/sixtp-dom-parsers.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-dom-generators.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-utils.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-stack.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-to-dom-parser.cpp \
${top_srcdir}/libgnucash/backend/xml/io-gncxml-gen.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-account-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-lot-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-schedxaction-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-recurrence-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-freqspec-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-transaction-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-commodity-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-book-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-pricedb-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-budget-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/io-gncxml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/io-utils.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-xml-helper.cpp \
test-xml-pricedb.cpp
test_xml_transaction_SOURCES = \
${top_srcdir}/libgnucash/backend/xml/sixtp-dom-parsers.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-dom-generators.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-utils.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-stack.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-to-dom-parser.cpp \
${top_srcdir}/libgnucash/backend/xml/io-gncxml-gen.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-account-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-budget-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-lot-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-schedxaction-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-freqspec-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-recurrence-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-transaction-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-commodity-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-book-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-pricedb-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/io-gncxml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/io-utils.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-xml-helper.cpp \
test-xml-transaction.cpp
test_xml2_is_file_SOURCES = \
${top_srcdir}/libgnucash/backend/xml/sixtp-dom-parsers.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-dom-generators.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-utils.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-stack.cpp \
${top_srcdir}/libgnucash/backend/xml/sixtp-to-dom-parser.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-account-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-budget-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-lot-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-recurrence-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-schedxaction-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-freqspec-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-transaction-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-commodity-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-book-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-pricedb-xml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/io-gncxml-gen.cpp \
${top_srcdir}/libgnucash/backend/xml/io-gncxml-v2.cpp \
${top_srcdir}/libgnucash/backend/xml/io-utils.cpp \
${top_srcdir}/libgnucash/backend/xml/gnc-xml-helper.cpp \
test-xml2-is-file.cpp
TESTS = \
test-date-converting \
test-dom-converters1 \
test-kvp-frames \
test-load-example-account \
test-load-backend \
test-load-xml2 \
test-real-data.sh \
test-string-converters \
test-xml-account \
test-xml-commodity \
test-xml-pricedb \
test-xml-transaction \
test-xml2-is-file
GNC_TEST_DEPS = \
--gnc-module-dir ${top_builddir}/libgnucash/gnc-module \
--gnc-module-dir ${top_builddir}/libgnucash/engine \
--guile-load-dir ${top_builddir}/libgnucash/gnc-module \
--guile-load-dir ${top_builddir}/libgnucash/engine \
--library-dir ${top_builddir}/libgnucash/core-utils \
--library-dir ${top_builddir}/libgnucash/gnc-module \
--library-dir ${top_builddir}/libgnucash/engine \
--library-dir ${top_builddir}/libgnucash/backend/sql \
--library-dir ${top_builddir}/libgnucash/backend/xml
TESTS_ENVIRONMENT = \
GUILE_WARN_DEPRECATED=no \
GNC_ACCOUNT_PATH=${top_srcdir}/data/accounts/C \
GNC_TEST_FILES=test-files/xml2 \
SRCDIR=${srcdir} \
GNC_BUILDDIR="${abs_top_builddir}" \
$(shell ${abs_top_srcdir}/common/gnc-test-env.pl --noexports ${GNC_TEST_DEPS})
check_LTLIBRARIES = libgnc-test-file-stuff.la
libgnc_test_file_stuff_la_SOURCES = test-file-stuff.cpp
libgnc_test_file_stuff_la_LIBADD = \
${top_builddir}/libgnucash/engine/libgncmod-engine.la
check_PROGRAMS = \
test-date-converting \
test-dom-converters1 \
test-kvp-frames \
test-load-backend \
test-load-example-account \
test-load-xml2 \
test-save-in-lang \
test-string-converters \
test-xml-account \
test-xml-commodity \
test-xml-pricedb \
test-xml-transaction \
test-xml2-is-file
noinst_HEADERS = test-file-stuff.h
LDADD = \
${top_builddir}/common/test-core/libtest-core.la \
${top_builddir}/libgnucash/gnc-module/libgnc-module.la \
${top_builddir}/libgnucash/engine/libgncmod-engine.la \
${top_builddir}/libgnucash/engine/test-core/libgncmod-test-engine.la \
${top_builddir}/libgnucash/core-utils/libgnc-core-utils.la \
./libgnc-test-file-stuff.la \
${LIBXML2_LIBS} \
${ZLIB_LIBS} \
${top_builddir}/borrowed/libc/libc-missing.la
AM_CPPFLAGS = \
-I${top_srcdir}/borrowed/libc \
-I${top_srcdir}/common \
-I${top_srcdir}/libgnucash/core-utils \
-I${top_srcdir}/libgnucash/gnc-module \
-I${top_srcdir}/common/test-core \
-I${top_srcdir}/libgnucash/engine \
-I${top_srcdir}/libgnucash/engine/test-core \
-I${top_srcdir}/libgnucash/backend/xml \
-DU_SHOW_CPLUSPLUS_API=0 \
${LIBXML2_CFLAGS} \
${GLIB_CFLAGS} \
${GUILE_CFLAGS} \
${BOOST_CPPFLAGS}
EXTRA_DIST = \
grab-types.pl \
test-dom-parser1.cpp \
test-real-data.sh \
test-xml2-is-file.cpp \
CMakeLists.txt
AM_CPPFLAGS += -DG_LOG_DOMAIN=\"gnc.backend.xml\"

View File

@@ -1,6 +1,6 @@
ADD_SUBDIRECTORY(xml2)
SET_LOCAL_DIST(test_backend_xml_test_files_DIST_local CMakeLists.txt Makefile.am)
SET_LOCAL_DIST(test_backend_xml_test_files_DIST_local CMakeLists.txt )
SET(test_backend_xml_test_files_DIST ${test_backend_xml_test_files_DIST_local} ${xml2_DIST} PARENT_SCOPE)

View File

@@ -1,3 +0,0 @@
SUBDIRS = xml2
EXTRA_DIST = CMakeLists.txt

View File

@@ -1,4 +1,4 @@
SET_DIST_LIST(xml2_DIST abcall.gml2 abc.gml2 carols-data-file.gml2 cbb-export.gml2 CMakeLists.txt conrads-file.gml2
every.gml2 goonies-file.gml2 hierachical-data-file.gml2 Makefile.am Money95bank_fr.gml2
every.gml2 goonies-file.gml2 hierachical-data-file.gml2 Money95bank_fr.gml2
Money95invst.gml2 Money95mutual.gml2 Money95stocks.gml2 ms-money.gml2 pricedb1.gml2)

View File

@@ -1,28 +0,0 @@
ACCT_TST_FILES = \
Money95bank_fr.gml2 \
Money95invst.gml2 \
Money95mutual.gml2 \
Money95stocks.gml2 \
abc.gml2 \
abcall.gml2 \
carols-data-file.gml2 \
cbb-export.gml2 \
conrads-file.gml2 \
every.gml2 \
goonies-file.gml2 \
hierachical-data-file.gml2 \
ms-money.gml2 \
pricedb1.gml2
EXTRA_DIST = \
$(ACCT_TST_FILES) \
CMakeLists.txt
check:
for file in $(ACCT_TST_FILES); do \
test $(srcdir)/$$file -ef $(builddir)/$$file || \
cp $(srcdir)/$$file $(builddir)/$$file; \
done;
clean-local:
rm -f *.gnucash