From af6026bc655663383ebb5932a1a11c4e63b075bd Mon Sep 17 00:00:00 2001 From: TronFortyTwo Date: Sat, 24 Feb 2018 01:48:13 +0100 Subject: [PATCH] Boosted binary speed compiling SDL with Clang --- build.sh | 4 +++- manifest.json | 2 +- src/qt/qml/main.qml | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 81ad07b..c362561 100755 --- a/build.sh +++ b/build.sh @@ -1,12 +1,14 @@ #!/bin/bash export MAKEFLAGS=-j$(($(grep -c ^processor /proc/cpuinfo) - 0)) +export CC="clang" +export CXX="g++" if [[ ! -f lib/SDL-1.2.15/build/.libs/libSDL.a ]]; then cd lib k tar xf SDL-1.2.15.tar.gz cd SDL-1.2.15/ patch -p 1 -f < ../SDL1.patch - ./autogen.sh && ./configure --enable-input-tslib=off CXXFLAGS="-O3" CFLAGS="-O3" && make + ./autogen.sh && ./configure --enable-input-tslib=off CXXFLAGS="-O3 -std=gnu++11" CFLAGS="-O3" && make cd ../.. fi mkdir build diff --git a/manifest.json b/manifest.json index 162e8f4..05515bc 100644 --- a/manifest.json +++ b/manifest.json @@ -10,6 +10,6 @@ "desktop": "qvbam.desktop" } }, - "version": "0.2.2", + "version": "0.2.3", "maintainer": "Emanuele Sorce " } diff --git a/src/qt/qml/main.qml b/src/qt/qml/main.qml index 416383a..bfd54c2 100644 --- a/src/qt/qml/main.qml +++ b/src/qt/qml/main.qml @@ -4,8 +4,8 @@ import Ubuntu.Components 1.3 MainView { id: mainView - width: units.gu(48) - height: units.gu(70) + width: units.gu(100) + height: units.gu(100) backgroundColor: UbuntuColors.porcelain automaticOrientation: true applicationName: "emanuelesorce.qvbam"