forked from yousseb/meld
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjhbuildrc-custom
More file actions
125 lines (104 loc) · 6.41 KB
/
Copy pathjhbuildrc-custom
File metadata and controls
125 lines (104 loc) · 6.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# -*- mode: python -*-
# -*- coding: utf-8 -*-
print("Using Meld for OSX customization")
import os.path
from os import path
#prefix = "/tmp/meldroot"
checkoutroot = os.path.expanduser("~/Source/gtk")
setup_sdk(target="10.15", sdk_version="native", architectures=["x86_64"])
_gtk_osx_use_jhbuild_python = True
if path.exists("/usr/local/bin/ccache"):
print("Using ccache")
os.environ["CC"] = "/usr/local/bin/ccache /usr/bin/clang"
os.environ["CXX"] = "/usr/local/bin/ccache /usr/bin/clang++"
else:
print("Not using ccache")
os.environ["CC"] = "/usr/bin/clang"
os.environ["CXX"] = "/usr/bin/clang++"
os.environ["DYLD_FALLBACK_LIBRARY_PATH"] = "@executable_path/../Frameworks/:@executable_path/../Resources/lib"
#environ_prepend('CFLAGS', "-O3")
environ_prepend('CXXFLAGS', "-std=c++11 -stdlib=libc++")
#environ_prepend('OBJCFLAGS', "-O2")
os.environ["MACOSX_DEPLOYMENT_TARGET"] = "10.15"
#skip.append("libiconv") # Lion issues
skip.append("icu")
skip.append("cups")
skip.append("gnome-themes-standard")
skip.append("berkeleydb")
skip.append("berkeleydb-nonsrctree")
skip.append("gnome-user-docs")
skip.append("cmake")
skip.append("openssl") # We'll install it manually
skip.append("python")
skip.append("python3") # We'll install it manually
#skip.append("libxml2") # We'll install it manually
#skip.append("gtk-doc")
skip.append("itstool")
skip.append("libxslt")
skip.append("yelp-xsl")
skip.append("yelp-tools")
#skip.append("gobject-introspection")
skip.append("pygobject")
skip.append("xorg-util-macros")
skip.append('mozilla')
skip.append('pulseaudio')
# moduleset="https://gitlab.gnome.org/GNOME/gtk-osx/raw/master/modulesets-unstable/gtk-osx.modules"
# gtk-doc required to build pango. We generate nothing with it, though.
# libxslt
# libxsltpython
# gtk-doc
# yelp-xsl
# yelp-tools
modules = [
"zlib", "libjpeg", "libtiff", "libpng",
"glib",
"fribidi",
"gtk-doc",
"pango", "gdk-pixbuf", "librsvg",
"meta-gtk-osx-gtk3",
"meta-gtk-osx-python3-gtk3",
"gsettings-desktop-schemas",
"adwaita-icon-theme"
]
#"gtksourceview3",
#moduleset="http://git.gnome.org/browse/gtk-osx/plain/modulesets/gtk-osx.modules"
#prefix = os.path.join(os.environ["HOME"], "meld")
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 '
# Temporarily until modulesets are fixed...
branches["openssl"] = "https://ftp.openssl.org/source/old/1.1.1/openssl-1.1.1c.tar.gz"
module_autogenargs['gettext-tools'] = 'CFLAGS=-O'
module_autogenargs['gettext'] = '--disable-rpath --disable-option-checking --disable-nls --enable-relocatable --disable-java --disable-native-java --disable-curses --without-emacs --without-bzip2 CFLAGS=-O2'
module_autogenargs['yelp'] = '--disable-Werror'
module_autogenargs['zlib']= ''# + autogenargs
module_autogenargs['librsvg'] = '--disable-Bsymbolic --enable-pixbuf-loader --enable-shared=yes --enable-static=yes ' + autogenargs
module_autogenargs['cairo'] = '--disable-full-testing --disable-trace --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 --disable-gtk-doc-html --disable-dependency-tracking ' + autogenargs
module_autogenargs['gobject-introspection']= '--with-cairo=yes ' + autogenargs
module_autogenargs['tango-icon-theme']='--disable-nls --disable-icon-framing ' + autogenargs
module_autogenargs['gtk+-3.0'] = '--enable-quartz-backend --enable-quartz-relocation --disable-Bsymbolic --disable-cloudprint --with-included-immodules=am-et,cedilla,cyrillic-translit,inuktitut,ipa,multipress,thai,ti-er,ti-et,viqr --disable-modules --disable-rpath --disable-cups --disable-papi --disable-cloudprint --disable-gtk-doc --disable-gtk-doc-html --disable-gtk-doc-pdf --enable-debug=no ' + autogenargs #--disable-schemas-compile ?
module_autogenargs['harfbuzz'] = '--disable-gtk-doc --disable-gtk-doc-html --disable-gtk-doc-pdf --with-coretext --without-icu ' + autogenargs
module_autogenargs['root-harfbuzz'] = '--disable-gtk-doc --disable-gtk-doc-html --disable-gtk-doc-pdf --with-coretext --without-icu ' + autogenargs
module_autogenargs['fontconfig'] = '--with-cache-dir="~/Library/Caches/org.gnome.meld.fontconfig" --with-default-fonts=/System/Library/Fonts --with-add-fonts=/Library/Fonts,/Network/Library/Fonts,/System/Library/Fonts ' + autogenargs
module_autogenargs['python3'] = '--enable-optimizations --with-system-expat --without-gcc --disable-ipv6 --with-ensurepip=yes --without-tests --disable-tests --with-threads --with-system-expat ' + autogenargs
module_mesonargs['atk'] = '--buildtype release --optimization 3 -Ddocs=false -Dintrospection=true'
module_mesonargs['gdk-pixbuf'] = '--buildtype release --optimization 3 -Dbuiltin_loaders=all -Drelocatable=true -Ddocs=false'
module_mesonargs['glib'] = '--buildtype release --optimization 3 -Dbsymbolic_functions=false -Dgtk_doc=false -Db_bitcode=true -Db_ndebug=true'
module_mesonargs['pango'] = '--buildtype release --optimization 3 -Dintrospection=enabled'
module_mesonargs['pygobject3'] = '--buildtype release --optimization 3 -Dtests=false -Dpycairo=enabled'
module_mesonargs['gtk+-3.0'] = '--buildtype release --optimization 3 -Dx11_backend=false -Dwayland_backend=false -Dbroadway_backend=false -Dwin32_backend=false -Dquartz_backend=true -Dxinerama=no -Dcloudproviders=false -Dprofiler=false -Dtracker3=false -Dcolord=no -Dgtk_doc=false -Dman=false -Dintrospection=true -Ddemos=false -Dexamples=false -Dtests=false -Dinstalled_tests=false -Dbuiltin_immodules=yes'
# module_autogenargs['gtk-quartz-engine'] = 'CFLAGS=-Wuninitialized ' + autogenargs
# module_autogenargs['gtksourceview3'] = '' + autogenargs
#module_autogenargs['gtk-mac-integration']='--enable-python=all --without-gtk2 --with-gtk3 --enable-introspection=yes ' + autogenargs
#os.environ['CFLAGS'] += ' -I' + '/usr/include/'
#os.environ['CPPFLAGS'] += ' -I' + '/usr/include/'
#os.environ['LDFLAGS'] += ' -L' + '/usr/lib/'
#os.environ['LDFLAGS'] += ' -Wl,--rpath -Wl,' + '/usr/lib/'
#os.environ['LDFLAGS'] += ' -Wl,--rpath -Wl,' + '../lib/'
#os.environ['LDFLAGS'] += ' -Wl,--rpath -Wl,' + '../lib_pypy/'
# Can be usefull when tweaking modulesets to avoid jhbuild overwriting:
# nonetwork=True
# nobuild=True # Download only
# quiet_mode=True
# Don't respect suggests
ignore_suggests = True