mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
6b099402b4
While we're at it, reduce the use of LIBS as well. This makes dependencies explicit. Fixes building with (the not-yet-merged) libsecp256k1 as well. Github-Pull: #4689 Rebased-By: Wladimir J. van der laan <laanwj@gmail.com> Rebased-From: 909b347 c0e5dda
52 lines
1.6 KiB
Makefile
52 lines
1.6 KiB
Makefile
bin_PROGRAMS += qt/test/test_bitcoin-qt
|
|
TESTS += qt/test/test_bitcoin-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
|
|
|
|
qt_test_test_bitcoin_qt_CPPFLAGS = $(BITCOIN_INCLUDES) $(BITCOIN_QT_INCLUDES) \
|
|
$(QT_INCLUDES) $(QT_TEST_INCLUDES)
|
|
|
|
qt_test_test_bitcoin_qt_SOURCES = \
|
|
qt/test/test_main.cpp \
|
|
qt/test/uritests.cpp \
|
|
$(TEST_QT_H)
|
|
if ENABLE_WALLET
|
|
qt_test_test_bitcoin_qt_SOURCES += \
|
|
qt/test/paymentservertests.cpp
|
|
endif
|
|
|
|
nodist_qt_test_test_bitcoin_qt_SOURCES = $(TEST_QT_MOC_CPP)
|
|
|
|
qt_test_test_bitcoin_qt_LDADD = $(LIBBITCOINQT) $(LIBBITCOIN_SERVER)
|
|
if ENABLE_WALLET
|
|
qt_test_test_bitcoin_qt_LDADD += $(LIBBITCOIN_WALLET)
|
|
endif
|
|
qt_test_test_bitcoin_qt_LDADD += $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CRYPTO) $(LIBBITCOIN_UNIVALUE) $(LIBLEVELDB) \
|
|
$(LIBMEMENV) $(BOOST_LIBS) $(QT_DBUS_LIBS) $(QT_TEST_LIBS) $(QT_LIBS) \
|
|
$(QR_LIBS) $(PROTOBUF_LIBS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS)
|
|
if USE_LIBSECP256K1
|
|
qt_test_test_bitcoin_qt_LDADD += secp256k1/libsecp256k1.la
|
|
endif
|
|
qt_test_test_bitcoin_qt_LDFLAGS = $(AM_LDFLAGS) $(QT_LDFLAGS)
|
|
|
|
CLEAN_BITCOIN_QT_TEST = $(TEST_QT_MOC_CPP) qt/test/*.gcda qt/test/*.gcno
|
|
|
|
CLEANFILES += $(CLEAN_BITCOIN_QT_TEST)
|
|
|
|
test_bitcoin_qt : qt/test/test_bitcoin-qt$(EXEEXT)
|
|
|
|
test_bitcoin_qt_check : qt/test/test_bitcoin-qt$(EXEEXT) FORCE
|
|
$(MAKE) check-TESTS TESTS=$^
|
|
|
|
test_bitcoin_qt_clean: FORCE
|
|
rm -f $(CLEAN_BITCOIN_QT_TEST) $(qt_test_test_bitcoin_qt_OBJECTS)
|