dash/src/Makefile.qttest.include

49 lines
1.5 KiB
Makefile
Raw Normal View History

2015-04-03 00:51:08 +02:00
bin_PROGRAMS += qt/test/test_dash-qt
TESTS += qt/test/test_dash-qt
TEST_QT_MOC_CPP = qt/test/moc_uritests.cpp
if ENABLE_WALLET
TEST_QT_MOC_CPP += qt/test/moc_paymentservertests.cpp
endif
TEST_QT_H = \
qt/test/uritests.h \
qt/test/paymentrequestdata.h \
qt/test/paymentservertests.h
2015-04-03 00:51:08 +02:00
qt_test_test_dash_qt_CPPFLAGS = $(BITCOIN_INCLUDES) $(BITCOIN_QT_INCLUDES) \
$(QT_INCLUDES) $(QT_TEST_INCLUDES) $(PROTOBUF_CFLAGS)
2015-04-03 00:51:08 +02:00
qt_test_test_dash_qt_SOURCES = \
qt/test/test_main.cpp \
qt/test/uritests.cpp \
$(TEST_QT_H)
if ENABLE_WALLET
2015-04-03 00:51:08 +02:00
qt_test_test_dash_qt_SOURCES += \
qt/test/paymentservertests.cpp
endif
2015-04-03 00:51:08 +02:00
nodist_qt_test_test_dash_qt_SOURCES = $(TEST_QT_MOC_CPP)
2015-04-03 00:51:08 +02:00
qt_test_test_dash_qt_LDADD = $(LIBBITCOINQT) $(LIBBITCOIN_SERVER)
if ENABLE_WALLET
2015-04-03 00:51:08 +02:00
qt_test_test_dash_qt_LDADD += $(LIBBITCOIN_WALLET)
endif
2015-04-03 00:51:08 +02:00
qt_test_test_dash_qt_LDADD += $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CRYPTO) $(LIBBITCOIN_UNIVALUE) $(LIBLEVELDB) \
$(LIBMEMENV) $(BOOST_LIBS) $(QT_DBUS_LIBS) $(QT_TEST_LIBS) $(QT_LIBS) \
2014-11-05 16:58:37 +01:00
$(QR_LIBS) $(PROTOBUF_LIBS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS) $(LIBSECP256K1)
2015-04-03 00:51:08 +02:00
qt_test_test_dash_qt_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(QT_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
CLEAN_BITCOIN_QT_TEST = $(TEST_QT_MOC_CPP) qt/test/*.gcda qt/test/*.gcno
CLEANFILES += $(CLEAN_BITCOIN_QT_TEST)
2015-04-03 00:51:08 +02:00
test_dash_qt : qt/test/test_dash-qt$(EXEEXT)
2015-04-03 00:51:08 +02:00
test_dash_qt_check : qt/test/test_dash-qt$(EXEEXT) FORCE
$(MAKE) check-TESTS TESTS=$^
2015-04-03 00:51:08 +02:00
test_dash_qt_clean: FORCE
rm -f $(CLEAN_BITCOIN_QT_TEST) $(qt_test_test_dash_qt_OBJECTS)