Skip to content

Commit

Permalink
Boosted binary speed compiling SDL with Clang
Browse files Browse the repository at this point in the history
  • Loading branch information
TronFortyTwo committed Feb 24, 2018
1 parent b689c65 commit af6026b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"desktop": "qvbam.desktop"
}
},
"version": "0.2.2",
"version": "0.2.3",
"maintainer": "Emanuele Sorce <emanuele.sorce@hotmail.com>"
}
4 changes: 2 additions & 2 deletions src/qt/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit af6026b

Please sign in to comment.