X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=novacoin-qt.pro;h=585782d0615ac7ebab4c35d93e7027b0f00a26fd;hb=209ebaa57aefac08c1290026726f00d7fd666ac7;hp=e4e02fb61689a8c4c8dfe0c0d1f18ae9399db297;hpb=728ac1656486df36445a5d73aae78be4220b9c75;p=novacoin.git diff --git a/novacoin-qt.pro b/novacoin-qt.pro index e4e02fb..585782d 100644 --- a/novacoin-qt.pro +++ b/novacoin-qt.pro @@ -133,11 +133,23 @@ contains(USE_LEVELDB, 1) { SOURCES += src/txdb-bdb.cpp } +# use: qmake "USE_ASM=1" contains(USE_ASM, 1) { - message(Using optimized scrypt core implementation) + message(Using assembler scrypt core implementation) SOURCES += src/scrypt-arm.S src/scrypt-x86.S src/scrypt-x86_64.S } else { - message(Using generic scrypt core implementation) + # use: qmake "USE_SSE2=1" + contains(USE_SSE2, 1) { + message(Using SSE2 intrinsic scrypt implementation) + SOURCES += src/scrypt-sse2.cpp + DEFINES += USE_SSE2 + QMAKE_CXXFLAGS += -msse2 + QMAKE_CFLAGS += -msse2 + } else { + message(Using generic scrypt core implementation) + } + + # For now, generic module is required in both cases SOURCES += src/scrypt-generic.c } @@ -453,7 +465,7 @@ LIBS += -lssl -lcrypto -ldb_cxx$$BDB_LIB_SUFFIX # -lgdi32 has to happen after -lcrypto (see #681) windows:LIBS += -lws2_32 -lshlwapi -lmswsock -lole32 -loleaut32 -luuid -lgdi32 LIBS += -lboost_system$$BOOST_LIB_SUFFIX -lboost_filesystem$$BOOST_LIB_SUFFIX -lboost_program_options$$BOOST_LIB_SUFFIX -lboost_thread$$BOOST_THREAD_LIB_SUFFIX -windows:LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX +windows:LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX -Wl,-Bstatic -lpthread -Wl,-Bdynamic contains(RELEASE, 1) { !windows:!macx {