Skip to content

Commit

Permalink
osx: Further optimizations, show GTK spinner when working
Browse files Browse the repository at this point in the history
  • Loading branch information
yousseb committed Dec 9, 2018
1 parent 1ad3090 commit 7a2362b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion osx/build_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ echo "[Pango]\nModuleFiles=./etc/pango/pango.modules\n" > $RES/etc/pango/pangorc
# gdk-pixbuf
rsync -r -t $INSTROOT/lib/gdk-pixbuf-2.0 $RES/lib
gdk-pixbuf-query-loaders |perl -i -pe 's/^[^#].*\/(lib\/.*")$/"..\/Resources\/$1/' > $RES/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
(cd $MAIN/Contents && ln -sf Resources/lib .)

# GTK themes
mkdir -p $RES/share/themes
Expand Down Expand Up @@ -140,7 +141,6 @@ done
#done
popd


# Create the dmg file..
hdiutil create -size 250m -fs HFS+ -volname "Meld Merge" myimg.dmg
hdiutil attach myimg.dmg
Expand Down
2 changes: 2 additions & 0 deletions osx/build_env.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

trap "exit" INT

export MACOSX_DEPLOYMENT_TARGET=10.9
export PATH=$HOME/.local/bin:$HOME/gtk/inst/bin:$PATH

Expand Down
12 changes: 5 additions & 7 deletions osx/jhbuildrc-custom
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ checkoutroot = os.path.expanduser("~/Source/gtk")
setup_sdk(target="10.9", sdk_version="native", architectures=["x86_64"])
_gtk_osx_use_jhbuild_python = True

# custom CFLAGS / environment pieces for the build
# os.environ['CFLAGS'] = '-Wall -g -O0'

os.environ["CC"] = "/usr/local/bin/ccache /usr/bin/clang"
os.environ["CXX"] = "/usr/local/bin/ccache /usr/bin/clang++"
os.environ['CFLAGS'] = '-O2'
os.environ["CXXFLAGS"] = "-std=c++11 -stdlib=libc++ -O2"
environ_prepend('CFLAGS', "-O3")
environ_prepend('CXXFLAGS', "-std=c++11 -stdlib=libc++ -O3")
environ_prepend('OBJCFLAGS', "-O3")
os.environ["MACOSX_DEPLOYMENT_TARGET"] = "10.9"
os.environ["DYLD_FALLBACK_LIBRARY_PATH"] = "@executable_path/../Frameworks/:@executable_path/../Resources/lib"

Expand Down Expand Up @@ -68,12 +66,12 @@ global autogenargs
autogenargs = autogenargs + ' --disable-documentation --disable-docs --enable-introspection --enable-gtk-doc=no --enable-gtk-doc-html=no --enable-gtk-doc-pdf=no'
# autogenargs += ' --cache-file=' + checkoutroot + '/autoconf-cache '

module_autogenargs['gettext-tools'] = 'CFLAGS=-O0'
module_autogenargs['gettext-tools'] = 'CFLAGS=-O'
module_autogenargs['yelp'] = '--disable-Werror'
module_autogenargs['zlib']= ''# + autogenargs
module_autogenargs['librsvg'] = autogenargs
module_autogenargs['glib'] = autogenargs
module_autogenargs['gdk-pixbuf'] = '--with-included-loaders ' + autogenargs
module_autogenargs['gdk-pixbuf'] = '--with-included-loaders --enable-relocations ' + autogenargs
module_autogenargs['pygobject3'] = '--disable-docs --enable-cairo '
#module_autogenargs['gtk-quartz-engine'] = 'CFLAGS=-Wuninitialized ' + autogenargs
module_autogenargs['cairo'] = '--disable-full-testing --enable-ft --enable-fc --enable-quartz-image --enable-quartz-font --enable-quartz --enable-png --enable-svg --enable-tee --enable-xml --enable-gobject --enable-pthread --disable-valgrind --disable-gtk-doc ' + autogenargs
Expand Down

0 comments on commit 7a2362b

Please sign in to comment.