From 4c666b933bfa90bb24ad627337da9d599f859b50 Mon Sep 17 00:00:00 2001 From: TenneTCo Date: Sat, 20 Oct 2018 13:28:49 +0100 Subject: [PATCH] Final update to match Codebases Final update to match Codebases, now DRKT TenneT fork will be made obsolete due to TenneT being maintained again. --- TenneT-qt.pro | 13 +++++++++---- qt_translations.py | 22 ++++++++++++++++++++++ src/checkpoints.cpp | 2 +- src/clientversion.h | 2 +- src/version.cpp | 6 +++--- 5 files changed, 36 insertions(+), 9 deletions(-) create mode 100644 qt_translations.py diff --git a/TenneT-qt.pro b/TenneT-qt.pro index 0a2cd0e..6f89a1b 100644 --- a/TenneT-qt.pro +++ b/TenneT-qt.pro @@ -1,21 +1,26 @@ # TenneT (The CryptoCurrency in Business) Version TEMPLATE = app TARGET = TenneT-qt -VERSION = 1.1 +VERSION = 1.3 INCLUDEPATH += src src/json src/qt src/tor QT += core gui network DEFINES += QT_GUI BOOST_THREAD_USE_LIB BOOST_SPIRIT_THREADSAFE +DEFINES += STATIC CONFIG += no_include_pwd CONFIG += thread CONFIG += static QMAKE_CXXFLAGS = -fpermissive +QT += core gui network widgets greaterThan(QT_MAJOR_VERSION, 4) { QT += widgets DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 +greaterThan(QT_MAJOR_VERSION, 4) +{ +QT += widgets +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 } - # for boost 1.37, add -mt to the boost libraries # use: qmake BOOST_LIB_SUFFIX=-mt # for boost thread win32 with _win32 sufix @@ -374,7 +379,7 @@ OTHER_FILES += \ # platform specific defaults, if not overridden on command line isEmpty(BOOST_LIB_SUFFIX) { macx:BOOST_LIB_SUFFIX = -mt - windows:BOOST_LIB_SUFFIX = -mgw49-mt-s-1_57 + windows:BOOST_LIB_SUFFIX = -mgw48-mt-s-1_55 } isEmpty(BOOST_THREAD_LIB_SUFFIX) { @@ -419,7 +424,7 @@ macx:HEADERS += src/qt/macdockiconhandler.h macx:OBJECTIVE_SOURCES += src/qt/macdockiconhandler.mm macx:LIBS += -framework Foundation -framework ApplicationServices -framework AppKit macx:DEFINES += MAC_OSX MSG_NOSIGNAL=0 -macx:ICON = src/qt/res/icons/TenneT.icns +macx:ICON = src/qt/res/icons/tennet.icns macx:TARGET = "TenneT-Qt" macx:QMAKE_CFLAGS_THREAD += -pthread macx:QMAKE_LFLAGS_THREAD += -pthread diff --git a/qt_translations.py b/qt_translations.py new file mode 100644 index 0000000..fd8a8b7 --- /dev/null +++ b/qt_translations.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +# Helpful little script that spits out a comma-separated list of +# language codes for Qt icons that should be included +# in binary bitcoin distributions + +import glob +import os +import re +import sys + +if len(sys.argv) != 3: + sys.exit("Usage: %s $QTDIR/translations $BITCOINDIR/src/qt/locale"%sys.argv[0]) + +d1 = sys.argv[1] +d2 = sys.argv[2] + +l1 = set([ re.search(r'qt_(.*).qm', f).group(1) for f in glob.glob(os.path.join(d1, 'qt_*.qm')) ]) +l2 = set([ re.search(r'bitcoin_(.*).qm', f).group(1) for f in glob.glob(os.path.join(d2, 'bitcoin_*.qm')) ]) + +print ",".join(sorted(l1.intersection(l2))) + diff --git a/src/checkpoints.cpp b/src/checkpoints.cpp index a268afb..4137d15 100644 --- a/src/checkpoints.cpp +++ b/src/checkpoints.cpp @@ -12,7 +12,7 @@ #include "uint256.h" -static const int nCheckpointSpan = 1000; +static const int nCheckpointSpan = 1600; namespace Checkpoints { diff --git a/src/clientversion.h b/src/clientversion.h index 6de17d2..0e56c2a 100644 --- a/src/clientversion.h +++ b/src/clientversion.h @@ -7,7 +7,7 @@ // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 1 -#define CLIENT_VERSION_MINOR 1 +#define CLIENT_VERSION_MINOR 3 #define CLIENT_VERSION_REVISION 0 #define CLIENT_VERSION_BUILD 0 diff --git a/src/version.cpp b/src/version.cpp index 55251de..75d9ea6 100644 --- a/src/version.cpp +++ b/src/version.cpp @@ -11,7 +11,7 @@ const std::string CLIENT_NAME("TenneT"); // Client version number -#define CLIENT_VERSION_SUFFIX "" +#define CLIENT_VERSION_SUFFIX "Release" // The following part of the code determines the CLIENT_BUILD variable. @@ -33,7 +33,7 @@ const std::string CLIENT_NAME("TenneT"); # include "build.h" #endif -// git will put "#define GIT_ARCHIVE 1" on the next line inside archives. +// git will put "#define GIT_ARCHIVE 1" on the next line inside archives. #define GIT_ARCHIVE 1 #ifdef GIT_ARCHIVE # define GIT_COMMIT_ID "" @@ -44,7 +44,7 @@ const std::string CLIENT_NAME("TenneT"); "v" DO_STRINGIZE(maj) "." DO_STRINGIZE(min) "." DO_STRINGIZE(rev) "." DO_STRINGIZE(build) "" commit #define BUILD_DESC_FROM_UNKNOWN(maj,min,rev,build) \ - "v" DO_STRINGIZE(maj) "." DO_STRINGIZE(min) "." DO_STRINGIZE(rev) "." DO_STRINGIZE(build) "" + "v" DO_STRINGIZE(maj) "1." DO_STRINGIZE(min) "3." DO_STRINGIZE(rev) "0." DO_STRINGIZE(build) "" #ifndef BUILD_DESC # ifdef GIT_COMMIT_ID