mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-22 10:44:46 +00:00
Merge pull request #1150
a44d15a
get_libwallet_api.sh: fix debug/release hardcoded path8b97eed
monero-wallet-gui.pro: use hardening flags986275c
get_libwallet_api.sh: fix comment referencing the wrong libraryf45b0a7
main: do not crash if we can't load some stuff
This commit is contained in:
commit
e6eef867dc
3 changed files with 24 additions and 8 deletions
|
@ -122,8 +122,8 @@ rm -fr $MONERO_DIR/include
|
||||||
rm -fr $MONERO_DIR/bin
|
rm -fr $MONERO_DIR/bin
|
||||||
|
|
||||||
|
|
||||||
mkdir -p $MONERO_DIR/build/release
|
mkdir -p $MONERO_DIR/build/$BUILD_TYPE
|
||||||
pushd $MONERO_DIR/build/release
|
pushd $MONERO_DIR/build/$BUILD_TYPE
|
||||||
|
|
||||||
# reusing function from "utils.sh"
|
# reusing function from "utils.sh"
|
||||||
platform=$(get_platform)
|
platform=$(get_platform)
|
||||||
|
@ -209,7 +209,7 @@ if test -z "$CPU_CORE_COUNT"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Build libwallet_merged
|
# Build libwallet_merged
|
||||||
pushd $MONERO_DIR/build/release/src/wallet
|
pushd $MONERO_DIR/build/$BUILD_TYPE/src/wallet
|
||||||
eval $make_exec version -C ../..
|
eval $make_exec version -C ../..
|
||||||
eval $make_exec -j$CPU_CORE_COUNT
|
eval $make_exec -j$CPU_CORE_COUNT
|
||||||
eval $make_exec install -j$CPU_CORE_COUNT
|
eval $make_exec install -j$CPU_CORE_COUNT
|
||||||
|
@ -218,21 +218,21 @@ popd
|
||||||
# Build monerod
|
# Build monerod
|
||||||
# win32 need to build daemon manually with msys2 toolchain
|
# win32 need to build daemon manually with msys2 toolchain
|
||||||
if [ "$platform" != "mingw32" ] && [ "$ANDROID" != true ]; then
|
if [ "$platform" != "mingw32" ] && [ "$ANDROID" != true ]; then
|
||||||
pushd $MONERO_DIR/build/release/src/daemon
|
pushd $MONERO_DIR/build/$BUILD_TYPE/src/daemon
|
||||||
eval make -j$CPU_CORE_COUNT
|
eval make -j$CPU_CORE_COUNT
|
||||||
eval make install -j$CPU_CORE_COUNT
|
eval make install -j$CPU_CORE_COUNT
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# build install epee
|
# build install epee
|
||||||
eval make -C $MONERO_DIR/build/release/contrib/epee all install
|
eval make -C $MONERO_DIR/build/$BUILD_TYPE/contrib/epee all install
|
||||||
|
|
||||||
# install easylogging
|
# install easylogging
|
||||||
eval make -C $MONERO_DIR/build/release/external/easylogging++ all install
|
eval make -C $MONERO_DIR/build/$BUILD_TYPE/external/easylogging++ all install
|
||||||
|
|
||||||
# Install libunwind
|
# Install libunbound
|
||||||
echo "Installing libunbound..."
|
echo "Installing libunbound..."
|
||||||
pushd $MONERO_DIR/build/release/external/unbound
|
pushd $MONERO_DIR/build/$BUILD_TYPE/external/unbound
|
||||||
# no need to make, it was already built as dependency for libwallet
|
# no need to make, it was already built as dependency for libwallet
|
||||||
# make -j$CPU_CORE_COUNT
|
# make -j$CPU_CORE_COUNT
|
||||||
$make_exec install -j$CPU_CORE_COUNT
|
$make_exec install -j$CPU_CORE_COUNT
|
||||||
|
|
10
main.cpp
10
main.cpp
|
@ -255,7 +255,17 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
// Load main window (context properties needs to be defined obove this line)
|
// Load main window (context properties needs to be defined obove this line)
|
||||||
engine.load(QUrl(QStringLiteral("qrc:///main.qml")));
|
engine.load(QUrl(QStringLiteral("qrc:///main.qml")));
|
||||||
|
if (engine.rootObjects().isEmpty())
|
||||||
|
{
|
||||||
|
qCritical() << "Error: no root objects";
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
QObject *rootObject = engine.rootObjects().first();
|
QObject *rootObject = engine.rootObjects().first();
|
||||||
|
if (!rootObject)
|
||||||
|
{
|
||||||
|
qCritical() << "Error: no root objects";
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef WITH_SCANNER
|
#ifdef WITH_SCANNER
|
||||||
QObject *qmlCamera = rootObject->findChild<QObject*>("qrCameraQML");
|
QObject *qmlCamera = rootObject->findChild<QObject*>("qrCameraQML");
|
||||||
|
|
|
@ -116,6 +116,8 @@ android {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
ios {
|
ios {
|
||||||
message("Host is IOS")
|
message("Host is IOS")
|
||||||
|
@ -236,6 +238,7 @@ win32 {
|
||||||
message("Target is 64bit")
|
message("Target is 64bit")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QMAKE_LFLAGS += -Wl,--dynamicbase -Wl,--nxcompat
|
||||||
}
|
}
|
||||||
|
|
||||||
linux {
|
linux {
|
||||||
|
@ -276,6 +279,8 @@ linux {
|
||||||
message(Building with libunwind)
|
message(Building with libunwind)
|
||||||
LIBS += -Wl,-Bdynamic -lunwind
|
LIBS += -Wl,-Bdynamic -lunwind
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QMAKE_LFLAGS += -pie -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack
|
||||||
}
|
}
|
||||||
|
|
||||||
macx {
|
macx {
|
||||||
|
@ -300,6 +305,7 @@ macx {
|
||||||
-lcrypto \
|
-lcrypto \
|
||||||
-ldl
|
-ldl
|
||||||
|
|
||||||
|
QMAKE_LFLAGS += -pie -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue