Skip to content

Commit

Permalink
Final update to match Codebases
Browse files Browse the repository at this point in the history
Final update to match Codebases, now DRKT TenneT fork will be made obsolete due to TenneT being maintained again.
  • Loading branch information
TenneTCo committed Oct 20, 2018
1 parent 19fcf79 commit 4c666b9
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 9 deletions.
13 changes: 9 additions & 4 deletions 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
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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
Expand Down
22 changes: 22 additions & 0 deletions 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)))

2 changes: 1 addition & 1 deletion src/checkpoints.cpp
Expand Up @@ -12,7 +12,7 @@
#include "uint256.h"


static const int nCheckpointSpan = 1000;
static const int nCheckpointSpan = 1600;

namespace Checkpoints
{
Expand Down
2 changes: 1 addition & 1 deletion src/clientversion.h
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions src/version.cpp
Expand Up @@ -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.
Expand All @@ -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 ""
Expand All @@ -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
Expand Down

0 comments on commit 4c666b9

Please sign in to comment.