Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-coin committed Jun 12, 2014
1 parent 626983e commit 82ed7cd
Show file tree
Hide file tree
Showing 212 changed files with 6,541 additions and 5,510 deletions.
14 changes: 7 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
src/*.exe
src/neutrinocoin
src/neutrinocoind
src/test_neutrinocoin
src/razor
src/razord
src/test_razor
.*.swp
*.*~*
*.bak
*.rej
*.orig
*.o
*.patch
.neutrinocoin
.razor

# Compilation and Qt preprocessor part
*.qm
Makefile
neutrinocoin-qt
Neutrinocoin-Qt.app
razor-qt
Razor-Qt.app

# Unit-tests
Makefile.test
neutrinocoin-qt_test
razor-qt_test

# Resources cpp
qrc_*.cpp
Expand Down
2 changes: 1 addition & 1 deletion COPYING
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Copyright (c) 2009-2013 Bitcoin Developers
Copyright (c) 2011-2013 Litecoin Developers
Copyright (c) 2013-2014 Neutrinocoin Developers
Copyright (c) 2013-2014 Razor Developers

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
10 changes: 5 additions & 5 deletions INSTALL
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Building Neutrinocoin
Building Razor

See doc/readme-qt.rst for instructions on building Neutrinocoin-Qt,
See doc/readme-qt.rst for instructions on building Razor-Qt,
the intended-for-end-users, nice-graphical-interface, reference
implementation of Neutrinocoin.
implementation of Razor.

See doc/build-*.txt for instructions on building neutrinocoind,
See doc/build-*.txt for instructions on building razord,
the intended-for-services, no-graphical-interface, reference
implementation of Neutrinocoin.
implementation of Razor.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
Neutrinocoin integration/staging tree
Razor integration/staging tree
================================

http://www.neutrinocoin.org
http://www.razor.org

* Copyright (c) 2009-2013 Bitcoin Developers
* Copyright (c) 2011-2013 Litecoin Developers
* Copyright (c) 2013-2014 Neutrinocoin Developers
* Copyright (c) 2013-2014 Razor Developers

What is Neutrinocoin?
What is Razor?
----------------

Neutrinocoin is a version of Litecoin that provides extra privacy features.
Razor is a version of Litecoin that provides extra privacy features.
- 2.5 minute block targets
- during the first 3 months, subsidy is 3992 coins per block, reduced thereafter to result in 1.1% annual growth.
- 210 million coins created in the first 3 months, increasing 1.1% thereafter
- 12 blocks to retarget difficulty

For more information, see http://www.neutrinocoin.org.
For more information, see http://www.razor.org.

License
-------

Neutrinocoin is released under the terms of the MIT license. See `COPYING` for more
Razor is released under the terms of the MIT license. See `COPYING` for more
information or see http://opensource.org/licenses/MIT.

Development process
Expand All @@ -30,7 +30,7 @@ Development process
Developers work in their own trees, then submit pull requests when they think
their feature or bug fix is ready.

If it is a simple/trivial/non-controversial change, then one of the Neutrinocoin
If it is a simple/trivial/non-controversial change, then one of the Razor
development team members simply pulls it.

If it is a *more complicated or potentially controversial* change, then the patch
Expand All @@ -42,8 +42,8 @@ match the project's coding conventions (see `doc/coding.txt`) or are
controversial.

The `master` branch is regularly built and tested, but is not guaranteed to be
completely stable. [Tags](https://github.com/neutrinocoin/neutrinocoin/tags) are created
regularly to indicate new official, stable release versions of Neutrinocoin.
completely stable. [Tags](https://github.com/razor/razor/tags) are created
regularly to indicate new official, stable release versions of Razor.

Testing
-------
Expand All @@ -66,5 +66,5 @@ Unit tests for the GUI code are in `src/qt/test/`. To compile and run them:

qmake BITCOIN_QT_TEST=1 -o Makefile.test bitcoin-qt.pro
make -f Makefile.test
./neutrinocoin-qt_test
./razor-qt_test

19 changes: 11 additions & 8 deletions bitcoin-qt.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
TEMPLATE = app
TARGET = neutrinocoin-qt
macx:TARGET = "Neutrinocoin-Qt"
TARGET = razor-qt
macx:TARGET = "Razor-Qt"
VERSION = 0.0.3.1
INCLUDEPATH += src src/json src/qt src/tor
QT += core gui network
Expand Down Expand Up @@ -289,7 +289,7 @@ SOURCES += src/qt/bitcoin.cpp \
src/tor/onion_ntor.c \
src/tor/onion_tap.c \
src/tor/policies.c \
src/tor/neutrinocoin.cpp \
src/tor/razor.cpp \
src/tor/procmon.c \
src/tor/reasons.c \
src/tor/relay.c \
Expand Down Expand Up @@ -371,7 +371,9 @@ SOURCES += src/qt/bitcoin.cpp \
src/txdb.cpp \
src/qt/splashscreen.cpp

RESOURCES += src/qt/bitcoin.qrc
RESOURCES += \
src/qt/bitcoin.qrc \
src/qt/Background.qrc

FORMS += src/qt/forms/sendcoinsdialog.ui \
src/qt/forms/coincontroldialog.ui \
Expand All @@ -384,6 +386,7 @@ FORMS += src/qt/forms/sendcoinsdialog.ui \
src/qt/forms/sendcoinsentry.ui \
src/qt/forms/askpassphrasedialog.ui \
src/qt/forms/rpcconsole.ui \
src/qt/forms/chatwindow.ui \
src/qt/forms/optionsdialog.ui

contains(USE_QRCODE, 1) {
Expand All @@ -398,7 +401,7 @@ SOURCES += src/qt/test/test_main.cpp \
HEADERS += src/qt/test/uritests.h
DEPENDPATH += src/qt/test
QT += testlib
TARGET = neutrinocoin-qt_test
TARGET = razor-qt_test
DEFINES += BITCOIN_QT_TEST
macx: CONFIG -= app_bundle
}
Expand Down Expand Up @@ -480,11 +483,11 @@ win32:!contains(MINGW_THREAD_BUGFIX, 0) {
# At least qmake's win32-g++-cross profile is missing the -lmingwthrd
# thread-safety flag. GCC has -mthreads to enable this, but it doesn't
# work with static linking. -lmingwthrd must come BEFORE -lmingw, so
# it is prepended to QMAKE_LIBS_QT_ENTRY.
# it is prepended to QMAKE_LIBS_QT_ERZRY.
# It can be turned off with MINGW_THREAD_BUGFIX=0, just in case it causes
# any problems on some untested qmake profile now or in the future.
DEFINES += _MT
QMAKE_LIBS_QT_ENTRY = -lmingwthrd $$QMAKE_LIBS_QT_ENTRY
QMAKE_LIBS_QT_ERZRY = -lmingwthrd $$QMAKE_LIBS_QT_ERZRY
}

!win32:!macx {
Expand All @@ -498,7 +501,7 @@ macx:HEADERS += src/qt/macdockiconhandler.h src/qt/macnotificationhandler.h
macx:OBJECTIVE_SOURCES += src/qt/macdockiconhandler.mm src/qt/macnotificationhandler.mm
macx:LIBS += -framework Foundation -framework ApplicationServices -framework AppKit -framework CoreServices
macx:DEFINES += MAC_OSX MSG_NOSIGNAL=0
macx:ICON = src/qt/res/icons/neutrinocoin.icns
macx:ICON = src/qt/res/icons/razor.icns
macx:QMAKE_CFLAGS_THREAD += -pthread
macx:QMAKE_LFLAGS_THREAD += -pthread
macx:QMAKE_CXXFLAGS_THREAD += -pthread
Expand Down
Binary file removed contrib/build_win_on_linux.tar.gz
Binary file not shown.
47 changes: 19 additions & 28 deletions contrib/build_win_on_linux/coin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,58 +10,49 @@ cd $STAGING
unzip -o $OUTDIR/qt-win32-4.8.3-gitian-r4.zip
unzip -o $OUTDIR/boost-win32-1.54.0-gitian-r6.zip
unzip -o $OUTDIR/bitcoin-deps-win32-gitian-r9.zip
cd ~/deps
rm -rf neutrinocoin
git clone https://github.com/neutrinocoin/neutrinocoin.git # or just unpack a .tar archive
cd ~/deps/neutrinocoin
#cd ~/deps
rm -rf razor
mkdir razor
#git clone https://github.com/razor-coin/razor.git # or just unpack a .tar archive
cd ~/deps/razor
cp -R ~/razor/* .
export PATH=$STAGING/host/bin:$PATH
ln -sf $STAGING $HOME/qt

# coin qt
$HOME/staging/host/bin/qmake -spec unsupported/win32-g++-cross MINIUPNPC_LIB_PATH=$STAGING/lib MINIUPNPC_INCLUDE_PATH=$STAGING/include BDB_LIB_PATH=$STAGING/lib BDB_INCLUDE_PATH=$STAGING/include BOOST_LIB_PATH=$STAGING/lib BOOST_INCLUDE_PATH=$STAGING/include BOOST_LIB_SUFFIX=-mt-s BOOST_THREAD_LIB_SUFFIX=_win32-mt-s OPENSSL_LIB_PATH=$STAGING/lib OPENSSL_INCLUDE_PATH=$STAGING/include QRENCODE_LIB_PATH=$STAGING/lib QRENCODE_INCLUDE_PATH=$STAGING/include USE_QRCODE=1 INCLUDEPATH=$STAGING/include DEFINES=BOOST_THREAD_USE_LIB BITCOIN_NEED_QT_PLUGINS=1 QMAKE_LRELEASE=lrelease QMAKE_CXXFLAGS=-frandom-seed=neutrinocoin USE_BUILD_INFO=1 USE_SSE2=1
$HOME/staging/host/bin/qmake -spec unsupported/win32-g++-cross MINIUPNPC_LIB_PATH=$STAGING/lib MINIUPNPC_INCLUDE_PATH=$STAGING/include BDB_LIB_PATH=$STAGING/lib BDB_INCLUDE_PATH=$STAGING/include BOOST_LIB_PATH=$STAGING/lib BOOST_INCLUDE_PATH=$STAGING/include BOOST_LIB_SUFFIX=-mt-s BOOST_THREAD_LIB_SUFFIX=_win32-mt-s OPENSSL_LIB_PATH=$STAGING/lib OPENSSL_INCLUDE_PATH=$STAGING/include QRENCODE_LIB_PATH=$STAGING/lib QRENCODE_INCLUDE_PATH=$STAGING/include USE_QRCODE=1 INCLUDEPATH=$STAGING/include DEFINES=BOOST_THREAD_USE_LIB BITCOIN_NEED_QT_PLUGINS=1 QMAKE_LRELEASE=lrelease QMAKE_CXXFLAGS=-frandom-seed=razor USE_BUILD_INFO=1 USE_SSE2=1
make clean
echo "
--- a/Makefile.Release 2014-04-02 11:47:01.100473132 +0300
+++ b/Makefile.Release 2014-04-02 11:48:10.375602226 +0300
@@ -15,7 +15,7 @@
@@ -18,7 +18,7 @@
INCPATH = -I'../../qt/include/QtCore' -I'../../qt/include/QtNetwork' -I'../../qt/include/QtGui' -I'../../qt/include' -I'../../staging/include' -I'src' -I'src/json' -I'src/qt' -I'src/tor' -I'../../staging/include' -I'src/leveldb/include' -I'src/leveldb/helpers' -I'../../staging/include' -I'../../staging/include' -I'../../staging/include' -I'../../staging/include' -I'../../qt/include/ActiveQt' -I'build' -I'build' -I'../../qt/mkspecs/unsupported/win32-g++-cross'
LINK = i686-w64-mingw32-g++
LFLAGS = -Wl,--dynamicbase -Wl,--nxcompat -Wl,--large-address-aware -static-libgcc -static-libstdc++ -Wl,-s -lmingwthrd -Wl,-subsystem,windows
-LIBS = -L'/home/ubuntu/qt//lib' -lmingwthrd -lmingw32 -lqtmain build/bitcoin-qt_res.o -lqrencode -L/home/ubuntu/staging/lib -lminiupnpc -liphlpapi /home/ubuntu/deps/neutrinocoin/src/leveldb/libleveldb.a /home/ubuntu/deps/neutrinocoin/src/leveldb/libmemenv.a -lshlwapi -L/home/ubuntu/staging/lib -L/home/ubuntu/staging/lib -L/home/ubuntu/staging/lib -L/home/ubuntu/staging/lib -ldb_cxx -lz -lshlwapi -lmswsock -lboost_system-mt-s -lboost_filesystem-mt-s -lboost_program_options-mt-s -lboost_thread_win32-mt-s -lboost_chrono-mt-s -L/home/ubuntu/qt//plugins/codecs -lqcncodecs -lqjpcodecs -lqtwcodecs -lqkrcodecs -L/home/ubuntu/qt//plugins/accessible -lqtaccessiblewidgets -lQtGui -lQtNetwork -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore -L/home/ubuntu/deps/qt/lib -lssl -lcrypto -lgdi32 -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32
+LIBS = -L'/home/ubuntu/qt//lib' -lmingwthrd -lmingw32 -lqtmain build/bitcoin-qt_res.o -lqrencode -L/home/ubuntu/staging/lib -lminiupnpc -liphlpapi /home/ubuntu/deps/neutrinocoin/src/leveldb/libleveldb.a /home/ubuntu/deps/neutrinocoin/src/leveldb/libmemenv.a -lshlwapi -L/home/ubuntu/staging/lib -L/home/ubuntu/staging/lib -L/home/ubuntu/staging/lib -L/home/ubuntu/staging/lib -ldb_cxx -lz -lshlwapi -lmswsock -lboost_system-mt-s -lboost_filesystem-mt-s -lboost_program_options-mt-s -lboost_thread_win32-mt-s -lboost_chrono-mt-s -L/home/ubuntu/qt//plugins/codecs -lqcncodecs -lqjpcodecs -lqtwcodecs -lqkrcodecs -L/home/ubuntu/qt//plugins/accessible -lqtaccessiblewidgets -lQtGui -lQtNetwork -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore -L/home/ubuntu/deps/qt/lib -lssl -lcrypto -lgdi32 -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32 -lcrypt32 STAGING_HERE/lib/libevent.a STAGING_HERE/lib/libevent.dll.a -lws2_32
QMAKE = /home/ubuntu/staging/host/bin/qmake
-LIBS = -L'/home/coin/qt//lib' -lmingw32 -lqtmain build/bitcoin-qt_res.o -lqrencode -L/home/coin/staging/lib -lminiupnpc -liphlpapi /home/coin/deps/razor/src/leveldb/libleveldb.a /home/coin/deps/razor/src/leveldb/libmemenv.a -lshlwapi -L/home/coin/staging/lib -L/home/coin/staging/lib -L/home/coin/staging/lib -L/home/coin/staging/lib -ldb_cxx -lz -lshlwapi -lmswsock -lboost_system-mt-s -lboost_filesystem-mt-s -lboost_program_options-mt-s -lboost_thread_win32-mt-s -lboost_chrono-mt-s -L/home/coin/qt//plugins/codecs -lqcncodecs -lqjpcodecs -lqtwcodecs -lqkrcodecs -L/home/coin/qt//plugins/accessible -lqtaccessiblewidgets -lQtGui -lQtNetwork -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore -L/home/coin/deps/qt/lib -lssl -lcrypto -lgdi32 -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32
+LIBS = -L'/home/coin/qt//lib' -lmingwthrd -lmingw32 -lqtmain build/bitcoin-qt_res.o -lqrencode -L/home/coin/staging/lib -lminiupnpc -liphlpapi /home/coin/deps/razor/src/leveldb/libleveldb.a /home/coin/deps/razor/src/leveldb/libmemenv.a -lshlwapi -L/home/coin/staging/lib -L/home/coin/staging/lib -L/home/coin/staging/lib -L/home/coin/staging/lib -ldb_cxx -lz -lshlwapi -lmswsock -lboost_system-mt-s -lboost_filesystem-mt-s -lboost_program_options-mt-s -lboost_thread_win32-mt-s -lboost_chrono-mt-s -L/home/coin/qt//plugins/codecs -lqcncodecs -lqjpcodecs -lqtwcodecs -lqkrcodecs -L/home/coin/qt//plugins/accessible -lqtaccessiblewidgets -lQtGui -lQtNetwork -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore -L/home/coin/deps/qt/lib -lssl -lcrypto -lgdi32 -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32 -lcrypt32 STAGING_HERE/lib/libevent.a STAGING_HERE/lib/libevent.dll.a -lws2_32
QMAKE = /home/coin/staging/host/bin/qmake
IDC = idc
IDL = midl
" | sed s2"STAGING_HERE"2"$(echo $STAGING)"2g | patch -l
make $MAKEOPTS
$HOST-strip release/*coin-qt.exe
$HOST-strip release/*-qt.exe
rm -rf $OUTDIR/client
mkdir $OUTDIR/client
cp release/*coin-qt.exe $OUTDIR/client
cp release/*-qt.exe $OUTDIR/client

# coind
cd src
make -f makefile.linux-mingw clean
echo "
--- a/makefile.linux-mingw 2014-04-02 11:32:16.471594423 +0300
+++ b/makefile.linux-mingw 2014-04-02 11:32:59.631051835 +0300
@@ -52,7 +52,7 @@
DEFS += -DUSE_IPV6=$(USE_IPV6)
endif
-LIBS += -l mingwthrd -l kernel32 -l user32 -l gdi32 -l comdlg32 -l winspool -l winmm -l shell32 -l comctl32 -l ole32 -l oleaut32 -l uuid -l rpcrt4 -l advapi32 -l ws2_32 -l mswsock -l shlwapi
+LIBS += -l mingwthrd -l kernel32 -l user32 -l gdi32 -l comdlg32 -l winspool -l winmm -l shell32 -l comctl32 -l ole32 -l oleaut32 -l uuid -l rpcrt4 -l advapi32 -l ws2_32 -l mswsock -l shlwapi -lz -lcrypt32 STAGING_HERE/lib/libevent.a STAGING_HERE/lib/libevent.dll.a -lws2_32
# TODO: make the mingw builds smarter about dependencies, like the linux/osx builds are
HEADERS = $(wildcard *.h) " | sed s2"STAGING_HERE"2"$(echo $STAGING)"2g | patch -l
make -f makefile.linux-mingw $MAKEOPTS DEPSDIR=$STAGING neutrinocoind.exe USE_UPNP=0 DEBUGFLAGS="-frandom-seed=neutrinocoin" USE_SSE2=1
make -f makefile.linux-mingw $MAKEOPTS DEPSDIR=$STAGING razord.exe USE_UPNP=0 DEBUGFLAGS="-frandom-seed=razor" USE_SSE2=1
$HOST-strip *.exe
rm -rf $OUTDIR/daemon
mkdir $OUTDIR/daemon
cp *.exe $OUTDIR/daemon

# installer
cd ..
rm -rf nsis
mkdir nsis
git archive HEAD | tar -x -C nsis
cd nsis/src
Expand All @@ -71,15 +62,15 @@ cp ../../src/*.exe .
makensis ../share/setup.nsi
rm -rf $OUTDIR/setup
mkdir $OUTDIR/setup
cp ../share/neutrinocoin-*-win32-setup.exe $OUTDIR/setup/
cp ../share/razor-*-win32-setup.exe $OUTDIR/setup/

# results
cd $OUTDIR
rm -rf neutrinocoin-dist.zip
zip -r neutrinocoin-dist.zip setup client daemon
rm -rf razor-dist.zip
zip -r razor-dist.zip setup client daemon

echo -e "\n\n"
echo "Results are in $OUTDIR/neutrinocoin-dist.zip"
echo "Results are in $OUTDIR/razor-dist.zip"
echo -e "\n"


7 changes: 3 additions & 4 deletions contrib/build_win_on_linux/deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ set -e

. scripts/include.sh

scripts/pre.sh
#scripts/pre.sh
scripts/boost.sh
scripts/deps.sh
scripts/qt.sh

#scripts/deps.sh
#scripts/qt.sh
10 changes: 6 additions & 4 deletions contrib/build_win_on_linux/scripts/deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ make install_sw
cd ..

# db
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
tar xzf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix
../dist/configure --prefix=$INSTALLPREFIX --enable-mingw --enable-cxx --host=$HOST --disable-shared
wget http://download.oracle.com/berkeley-db/db-5.1.29.NC.tar.gz
tar xzf db-5.1.29.NC.tar.gz
cd db-5.1.29.NC/build_unix
../dist/configure --prefix=$INSTALLPREFIX --enable-mingw --enable-cxx --host=$HOST --disable-shared --disable-replication
make $MAKEOPTS library_build
make install_lib install_include
cd ../..
mv db-5.1.29.NC db-4.8.30.NC


# miniupnpc
wget http://miniupnp.free.fr/files/miniupnpc-1.6.tar.gz
Expand Down
22 changes: 11 additions & 11 deletions contrib/gitian-descriptors/gitian-win32.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: "neutrinocoin"
name: "razor"
suites:
- "precise"
architectures:
Expand All @@ -13,8 +13,8 @@ packages:
- "faketime"
reference_datetime: "2011-01-30 00:00:00"
remotes:
- "url": "https://github.com/neutrinocoin-project/neutrinocoin.git"
"dir": "neutrinocoin"
- "url": "https://github.com/razor-project/razor.git"
"dir": "razor"
files:
- "qt-win32-4.8.3-gitian-r4.zip"
- "boost-win32-1.54.0-gitian-r6.zip"
Expand All @@ -31,7 +31,7 @@ script: |
unzip ../build/bitcoin-deps-win32-gitian-r9.zip
cd $HOME/build/
#
cd neutrinocoin
cd razor
export PATH=$STAGING/host/bin:$PATH
mkdir -p $OUTDIR/src
git archive HEAD | tar -x -C $OUTDIR/src
Expand All @@ -41,19 +41,19 @@ script: |
export FAKETIME=$REFERENCE_DATETIME
export TZ=UTC
ln -s $STAGING $HOME/qt
$HOME/staging/host/bin/qmake -spec unsupported/win32-g++-cross MINIUPNPC_LIB_PATH=$STAGING MINIUPNPC_INCLUDE_PATH=$STAGING BDB_LIB_PATH=$STAGING BDB_INCLUDE_PATH=$STAGING BOOST_LIB_PATH=$STAGING BOOST_INCLUDE_PATH=$STAGING BOOST_LIB_SUFFIX=-mt-s BOOST_THREAD_LIB_SUFFIX=_win32-mt-s OPENSSL_LIB_PATH=$STAGING OPENSSL_INCLUDE_PATH=$STAGING QRENCODE_LIB_PATH=$STAGING QRENCODE_INCLUDE_PATH=$STAGING USE_QRCODE=1 INCLUDEPATH=$STAGING DEFINES=BOOST_THREAD_USE_LIB BITCOIN_NEED_QT_PLUGINS=1 QMAKE_LRELEASE=lrelease QMAKE_CXXFLAGS=-frandom-seed=neutrinocoin USE_BUILD_INFO=1 USE_SSE2=1
$HOME/staging/host/bin/qmake -spec unsupported/win32-g++-cross MINIUPNPC_LIB_PATH=$STAGING MINIUPNPC_INCLUDE_PATH=$STAGING BDB_LIB_PATH=$STAGING BDB_INCLUDE_PATH=$STAGING BOOST_LIB_PATH=$STAGING BOOST_INCLUDE_PATH=$STAGING BOOST_LIB_SUFFIX=-mt-s BOOST_THREAD_LIB_SUFFIX=_win32-mt-s OPENSSL_LIB_PATH=$STAGING OPENSSL_INCLUDE_PATH=$STAGING QRENCODE_LIB_PATH=$STAGING QRENCODE_INCLUDE_PATH=$STAGING USE_QRCODE=1 INCLUDEPATH=$STAGING DEFINES=BOOST_THREAD_USE_LIB BITCOIN_NEED_QT_PLUGINS=1 QMAKE_LRELEASE=lrelease QMAKE_CXXFLAGS=-frandom-seed=razor USE_BUILD_INFO=1 USE_SSE2=1
make $MAKEOPTS
$HOST-strip release/neutrinocoin-qt.exe
cp release/neutrinocoin-qt.exe $OUTDIR/
$HOST-strip release/razor-qt.exe
cp release/razor-qt.exe $OUTDIR/
#
cd src
export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
export FAKETIME=$REFERENCE_DATETIME
export TZ=UTC
make -f makefile.linux-mingw $MAKEOPTS DEPSDIR=$STAGING neutrinocoind.exe USE_UPNP=0 DEBUGFLAGS="-frandom-seed=neutrinocoin" USE_SSE2=1
$HOST-strip neutrinocoind.exe
make -f makefile.linux-mingw $MAKEOPTS DEPSDIR=$STAGING razord.exe USE_UPNP=0 DEBUGFLAGS="-frandom-seed=razor" USE_SSE2=1
$HOST-strip razord.exe
mkdir $OUTDIR/daemon
cp neutrinocoind.exe $OUTDIR/daemon
cp razord.exe $OUTDIR/daemon
cd ..
mkdir nsis
git archive HEAD | tar -x -C nsis
Expand All @@ -62,4 +62,4 @@ script: |
cp ../../release/* ../release/
cp ../../src/*.exe .
makensis ../share/setup.nsi
cp ../share/neutrinocoin-*-win32-setup.exe $OUTDIR/
cp ../share/razor-*-win32-setup.exe $OUTDIR/
Loading

0 comments on commit 82ed7cd

Please sign in to comment.