Skip to content

Commit

Permalink
Merge pull request #18 from stoffu/aeon-upstream-2
Browse files Browse the repository at this point in the history
Upstream merge 2
  • Loading branch information
aeonix authored Dec 5, 2018
2 parents fed7ef4 + 57089a7 commit 7327390
Show file tree
Hide file tree
Showing 67 changed files with 11,641 additions and 6,117 deletions.
2 changes: 1 addition & 1 deletion LeftPanel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ Rectangle {
anchors.left: parent.left
anchors.right: parent.right
text: qsTr("Shared RingDB") + translationManager.emptyString
symbol: qsTr("A") + translationManager.emptyString
symbol: qsTr("G") + translationManager.emptyString
dotColor: "#FFD781"
under: advancedButton
onClicked: {
Expand Down
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,19 @@ Packaging for your favorite distribution would be a welcome contribution!

- For Debian distributions (Debian, Ubuntu, Mint, Tails...)

`sudo apt install build-essential cmake libboost-all-dev miniupnpc libunbound-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libzmq3-dev`
`sudo apt install build-essential cmake libboost-all-dev miniupnpc libunbound-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libzmq3-dev libsodium-dev libhidapi-dev`

- For Gentoo

`sudo emerge app-arch/xz-utils app-doc/doxygen dev-cpp/gtest dev-libs/boost dev-libs/expat dev-libs/openssl dev-util/cmake media-gfx/graphviz net-dns/unbound net-libs/ldns net-libs/miniupnpc net-libs/zeromq sys-libs/libunwind`
`sudo emerge app-arch/xz-utils app-doc/doxygen dev-cpp/gtest dev-libs/boost dev-libs/expat dev-libs/openssl dev-util/cmake media-gfx/graphviz net-dns/unbound net-libs/ldns net-libs/miniupnpc net-libs/zeromq sys-libs/libunwind dev-libs/libsodium dev-libs/hidapi`

2. Install Qt:

*Note*: Qt 5.7 is the minimum version required to build the GUI. This makes **some** distributions (mostly based on debian, like Ubuntu 16.x or Linux Mint 18.x) obsolete. You can still build the GUI if you install an [official Qt release](https://wiki.qt.io/Install_Qt_5_on_Ubuntu), but this is not officially supported.

- For Ubuntu 17.10+

`sudo apt install qtbase5-dev qt5-default qtdeclarative5-dev qml-module-qtquick-controls qml-module-qtquick-controls2 qml-module-qtquick-dialogs qml-module-qtquick-xmllistmodel qml-module-qt-labs-settings qml-module-qt-labs-folderlistmodel qttools5-dev-tools`
`sudo apt install qtbase5-dev qt5-default qtdeclarative5-dev qml-module-qtquick-controls qml-module-qtquick-controls2 qml-module-qtquick-dialogs qml-module-qtquick-xmllistmodel qml-module-qt-labs-settings qml-module-qt-labs-folderlistmodel qttools5-dev-tools qml-module-qtquick-templates2`

- For Gentoo

Expand All @@ -115,7 +115,7 @@ Packaging for your favorite distribution would be a welcome contribution!

```
cd aeon-gui
./build.sh
QT_SELECT=5 ./build.sh
```
The executable can be found in the build/release/bin folder.
Expand Down Expand Up @@ -192,7 +192,7 @@ The Aeon GUI on Windows is 64 bits only; 32-bit Windows GUI builds are not offic
3. Install MSYS2 packages for Aeon dependencies; the needed 64-bit packages have `x86_64` in their names
```
pacman -S mingw-w64-x86_64-toolchain make mingw-w64-x86_64-cmake mingw-w64-x86_64-boost mingw-w64-x86_64-openssl mingw-w64-x86_64-zeromq mingw-w64-x86_64-libsodium
pacman -S mingw-w64-x86_64-toolchain make mingw-w64-x86_64-cmake mingw-w64-x86_64-boost mingw-w64-x86_64-openssl mingw-w64-x86_64-zeromq mingw-w64-x86_64-libsodium mingw-w64-x86_64-hidapi
```
You find more details about those dependencies in the [Aeon documentation](https://github.com/aeonix/aeon). Note that that there is no more need to compile Boost from source; like everything else, you can install it now with a MSYS2 package.
Expand All @@ -205,6 +205,12 @@ The Aeon GUI on Windows is 64 bits only; 32-bit Windows GUI builds are not offic
There is no more need to download some special installer from the Qt website, the standard MSYS2 package for Qt will do in almost all circumstances.
**Note:** There is a known issue that GUI won't lauch properly when building tag v0.12.6.0-aeon with Qt 5.11.2.
If your encounter issue with that, please remove current Qt by: `pacman -R mingw-w64-x86_64-qt5`
And install 5.11.1 instead by: `pacman -U http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-qt5-5.11.1-3-any.pkg.tar.xz`
5. Install git
```
Expand Down
33 changes: 25 additions & 8 deletions aeon-wallet-gui.pro
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ QT += qml quick widgets
WALLET_ROOT=$$PWD/monero

CONFIG += c++11 link_pkgconfig
packagesExist(libpcsclite) {
PKGCONFIG += libpcsclite
packagesExist(hidapi-libusb) {
PKGCONFIG += hidapi-libusb
}
!win32 {
QMAKE_CXXFLAGS += -fPIC -fstack-protector -fstack-protector-strong
QMAKE_LFLAGS += -fstack-protector -fstack-protector-strong
}
QMAKE_CXXFLAGS += -fPIC -fstack-protector
QMAKE_LFLAGS += -fstack-protector

# cleaning "auto-generated" bitmonero directory on "make distclean"
QMAKE_DISTCLEAN += -r $$WALLET_ROOT
Expand Down Expand Up @@ -94,6 +96,7 @@ lupdate_only {
SOURCES = *.qml \
components/*.qml \
pages/*.qml \
pages/settings/*.qml \
wizard/*.qml \
wizard/*js
}
Expand All @@ -115,7 +118,8 @@ LIBS += -L$$WALLET_ROOT/lib \
-llmdb \
-lepee \
-lunbound \
-leasylogging \
-lsodium \
-leasylogging
}

android {
Expand All @@ -125,13 +129,14 @@ android {
-llmdb \
-lepee \
-lunbound \
-lsodium \
-leasylogging
}



QMAKE_CXXFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -Wformat -Wformat-security -fstack-protector -fstack-protector-strong
QMAKE_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -Wformat -Wformat-security -fstack-protector -fstack-protector-strong
QMAKE_CXXFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -Wformat -Wformat-security
QMAKE_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -Wformat -Wformat-security

ios {
message("Host is IOS")
Expand All @@ -144,6 +149,7 @@ ios {
-llmdb \
-lepee \
-lunbound \
-lsodium \
-leasylogging

LIBS+= \
Expand Down Expand Up @@ -243,11 +249,15 @@ win32 {
-licutu \
-liconv \
-lssl \
-lsodium \
-lcrypto \
-Wl,-Bdynamic \
-lwinscard \
-lws2_32 \
-lwsock32 \
-lIphlpapi \
-lcrypt32 \
-lhidapi \
-lgdi32

!contains(QMAKE_TARGET.arch, x86_64) {
Expand All @@ -269,7 +279,10 @@ linux {
LIBS+= -Wl,-Bstatic
QMAKE_LFLAGS += -static-libgcc -static-libstdc++
# contains(QT_ARCH, x86_64) {
LIBS+= -lunbound
LIBS+= -lunbound \
-lusb-1.0 \
-lhidapi-hidraw \
-ludev
# }
} else {
# On some distro's we need to add dynload
Expand All @@ -287,6 +300,8 @@ linux {
-lboost_program_options \
-lssl \
-llmdb \
-lsodium \
-lhidapi-libusb \
-lcrypto

if(!android) {
Expand Down Expand Up @@ -317,6 +332,7 @@ macx {
-L/usr/local/opt/openssl/lib \
-L/usr/local/opt/boost/lib \
-lboost_serialization \
-lhidapi \
-lboost_thread-mt \
-lboost_system-mt \
-lboost_system \
Expand All @@ -326,6 +342,7 @@ macx {
-lboost_chrono \
-lboost_program_options \
-lssl \
-lsodium \
-lcrypto \
-ldl
LIBS+= -framework PCSC
Expand Down
11 changes: 10 additions & 1 deletion components/CheckBox2.qml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

import QtQuick 2.0
import QtQuick.Layouts 1.1
import QtGraphicalEffects 1.0
import "." 1.0

RowLayout {
Expand All @@ -40,6 +41,7 @@ RowLayout {
property int fontSize: 14 * scaleRatio
property alias fontColor: label.color
property int textMargin: 8 * scaleRatio
property bool darkDropIndicator: false
signal clicked()
height: 25 * scaleRatio

Expand Down Expand Up @@ -74,12 +76,19 @@ RowLayout {
anchors.left: label.right
anchors.leftMargin: textMargin
color: "transparent"
rotation: checkBox.checked ? 180 * scaleRatio : 0

Image {
id: indicatorImage
anchors.centerIn: parent
source: "../images/whiteDropIndicator.png"
rotation: checkBox.checked ? 180 * scaleRatio : 0
visible: !darkDropIndicator
}
ColorOverlay {
anchors.fill: indicatorImage
source: indicatorImage
color: "#FF000000"
visible: darkDropIndicator
}
}

Expand Down
2 changes: 1 addition & 1 deletion components/ProgressBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Rectangle {
font.pixelSize: 13 * scaleRatio
font.bold: true
color: "white"
text: qsTr("Synchronizing %1").arg(syncType)
text: qsTr("Synchronizing %1").arg(syncType) + translationManager.emptyString
height: 18 * scaleRatio
}

Expand Down
8 changes: 4 additions & 4 deletions components/Style.qml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ pragma Singleton
import QtQuick 2.5

QtObject {
property QtObject fontMedium: FontLoader { id: _fontMedium; source: "qrc:/fonts/SFUIDisplay-Medium.otf"; }
property QtObject fontBold: FontLoader { id: _fontBold; source: "qrc:/fonts/SFUIDisplay-Bold.otf"; }
property QtObject fontLight: FontLoader { id: _fontLight; source: "qrc:/fonts/SFUIDisplay-Light.otf"; }
property QtObject fontRegular: FontLoader { id: _fontRegular; source: "qrc:/fonts/SFUIDisplay-Regular.otf"; }
property QtObject fontMedium: FontLoader { id: _fontMedium; source: "qrc:/fonts/Roboto-Medium.ttf"; }
property QtObject fontBold: FontLoader { id: _fontBold; source: "qrc:/fonts/Roboto-Bold.ttf"; }
property QtObject fontLight: FontLoader { id: _fontLight; source: "qrc:/fonts/Roboto-Light.ttf"; }
property QtObject fontRegular: FontLoader { id: _fontRegular; source: "qrc:/fonts/Roboto-Regular.ttf"; }

property string grey: "#404040"

Expand Down
Loading

0 comments on commit 7327390

Please sign in to comment.