You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.qttest.include 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Copyright (c) 2013-2016 The Bitcoin Core developers
  2. # Distributed under the MIT software license, see the accompanying
  3. # file COPYING or http://www.opensource.org/licenses/mit-license.php.
  4. bin_PROGRAMS += qt/test/test_bitcoin-qt
  5. TESTS += qt/test/test_bitcoin-qt
  6. TEST_QT_MOC_CPP = \
  7. qt/test/moc_compattests.cpp \
  8. qt/test/moc_rpcnestedtests.cpp \
  9. qt/test/moc_uritests.cpp
  10. if ENABLE_WALLET
  11. TEST_QT_MOC_CPP += qt/test/moc_paymentservertests.cpp
  12. endif
  13. TEST_QT_H = \
  14. qt/test/compattests.h \
  15. qt/test/rpcnestedtests.h \
  16. qt/test/uritests.h \
  17. qt/test/paymentrequestdata.h \
  18. qt/test/paymentservertests.h
  19. qt_test_test_bitcoin_qt_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(BITCOIN_QT_INCLUDES) \
  20. $(QT_INCLUDES) $(QT_TEST_INCLUDES) $(PROTOBUF_CFLAGS)
  21. qt_test_test_bitcoin_qt_SOURCES = \
  22. qt/test/compattests.cpp \
  23. qt/test/rpcnestedtests.cpp \
  24. qt/test/test_main.cpp \
  25. qt/test/uritests.cpp \
  26. $(TEST_QT_H)
  27. if ENABLE_WALLET
  28. qt_test_test_bitcoin_qt_SOURCES += \
  29. qt/test/paymentservertests.cpp
  30. endif
  31. nodist_qt_test_test_bitcoin_qt_SOURCES = $(TEST_QT_MOC_CPP)
  32. qt_test_test_bitcoin_qt_LDADD = $(LIBBITCOINQT) $(LIBBITCOIN_SERVER)
  33. if ENABLE_WALLET
  34. qt_test_test_bitcoin_qt_LDADD += $(LIBBITCOIN_WALLET)
  35. endif
  36. if ENABLE_ZMQ
  37. qt_test_test_bitcoin_qt_LDADD += $(LIBBITCOIN_ZMQ) $(ZMQ_LIBS)
  38. endif
  39. qt_test_test_bitcoin_qt_LDADD += $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CONSENSUS) $(LIBBITCOIN_CRYPTO) $(LIBUNIVALUE) $(LIBLEVELDB) \
  40. $(LIBMEMENV) $(BOOST_LIBS) $(QT_DBUS_LIBS) $(QT_TEST_LIBS) $(QT_LIBS) \
  41. $(QR_LIBS) $(PROTOBUF_LIBS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS) $(LIBSECP256K1) \
  42. $(EVENT_PTHREADS_LIBS) $(EVENT_LIBS)
  43. qt_test_test_bitcoin_qt_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(QT_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
  44. qt_test_test_bitcoin_qt_CXXFLAGS = $(AM_CXXFLAGS) $(QT_PIE_FLAGS)
  45. CLEAN_BITCOIN_QT_TEST = $(TEST_QT_MOC_CPP) qt/test/*.gcda qt/test/*.gcno
  46. CLEANFILES += $(CLEAN_BITCOIN_QT_TEST)
  47. test_bitcoin_qt : qt/test/test_bitcoin-qt$(EXEEXT)
  48. test_bitcoin_qt_check : qt/test/test_bitcoin-qt$(EXEEXT) FORCE
  49. $(MAKE) check-TESTS TESTS=$^
  50. test_bitcoin_qt_clean: FORCE
  51. rm -f $(CLEAN_BITCOIN_QT_TEST) $(qt_test_test_bitcoin_qt_OBJECTS)