Initial commit of files for automatied mac installer
[moonshot.git] / mac-client-installer / .jhbuildrc-custom
1 # -*- mode: python -*-
2
3 # All of jhbuild is Python, so there are all sorts of interesting
4 # things you can do to customize your build with python commands. This
5 # file is treated like a python __init__ file, so you can do all sorts
6 # of interesting things in it.
7
8 # The URL for repositories can be overridden. This is how you'd set
9 # your developer access to an SVN repo. It doesn't work, of course,
10 # because gnome has migrated to git.
11 #
12 # repos["svn.gnome.org"] = "svn+ssh://myusername@svn.gnome.org/svn/"
13
14 # You can set the default setup here.
15 #
16 # _gtk_osx_default_build = "fw-10.4"
17
18 # or set things up with an environment variable: 
19
20 _jhb = os.environ.get("JHB")
21 if _jhb is None:
22     # The default setup...
23     # checkoutroot = os.path.expanduser("~/Source/gtk")
24     # prefix = "/opt/gtk"
25     pass
26 elif _jhb == "FW":
27     # The framework build...
28     # checkoutroot = os.path.expanduser("~/Source/gtk-fw")
29     # prefix = "/opt/gtk-fw"
30     pass
31 # Do note, though, that jhbuildrc-gtk-osx also uses $JHB to find
32 # another customization file that is loaded after this one. You can,
33 # of course, define your own environment variables for passing in
34 # parameters.
35  
36 #<include href="http://git.gnome.org/browse/gtk-osx/plain/modulesets-stable/gtk-osx.modules"/> 
37  
38  
39 # The moduleset can be overridden.
40 #
41 # moduleset = ["gtk-osx"]
42
43 # As can the default modules to build.
44 #
45 #modules = [ "meta-gtk-osx-core",  "meta-gtk-osx-themes"]
46
47 #               modules = [ "libgee"]
48
49 # You can skip modules.
50 #
51 # skip.append("libglade")
52 #
53 #or put them back:
54 #
55 # if "libglade" in skip:
56 #       skip.remove("libglade")
57
58 # Set this to True/False if you want to force using or not building
59 # and using python as part of jhbuild. If not set, the script will use
60 # the system python when building on 10.5 or newer only.
61 #
62 # _gtk_osx_use_jhbuild_python = True
63
64
65 # In addition, you can override _exec_prefix (used to set $M4 and
66 # $LIBTOOLIZE); by default it's set to prefix. You might want to reset
67 # it if you want to bootstrap to one directory and build in another
68 # (or more likely, several others). Mind that this is fiddly and
69 # requires tweaking a bunch of things to get autoconf to consistently
70 # find the right m4 files. Not really recommended. Similarly, you can
71 # override tarballdir so that you need download tarballs only once for
72 # multiple builds. This works just as you'd expect and can save quite
73 # a bit of time if you're maintaining several trees.
74
75 # _exec_prefix = os.path.join(os.path.expanduser("~"), "Source", "bootstrap")
76 # tarballdir = os.path.join(os.path.expanduser("~"), "Source", "Download")
77
78 # .jhbuildrc has a master function, setup_sdk(target, sdk_version,
79 # [architectures]) which sets up the build environment. You *must*
80 # call it or one of the functions (setup_sdk_10_4(),
81 # setup_ppc_build(), or setup_universal_build()) in jhbuildrc-custom.
82 #
83 # Target can be "10.4", "10.5", or "10.6". It sets
84 # MACOS_DEPLOYMENT_TARGET and the -macosx-version-min CFLAG.
85 #
86 # Setup_sdk can be "10.4u", "10.5", "10.6" or "native". "Native" will
87 # not set -sysroot in CFLAGS, so headers and dylibs will come from
88 # /usr instead of /Developer/SDKs/MacOSX_sdk.10.foo. If you are
89 # building for distribution, you probably want to use the lowest SDK
90 # which will successfully build you modules. The exception is if you
91 # are building under Tiger, because
92 # a) You're already using the lowest compatible SDK
93 # b) Cups 1.2.12, which you must install to build Gtk+, installs new
94 # headers and libraries into /usr but not into
95 # /Developer/SDKs/MacOSX_sdk_10.4u.
96 #
97 # Architectures is a list (pass the arguments in brackets) which can
98 # include the values "ppc", "i386", "x86_64", and _default_arch. That
99 # last one is a variable and doesn't get quotes. Don't pass multiple
100 # arguments directly to setup_sdk, though, because that would build
101 # universal and several packages need special handling to build
102 # universal. Use setup_universal_build instead. Do note, though, that
103 # while setup_universal_build will build successfully, the result will
104 # usually crash because of endianness problems with icon caches. Help
105 # is welcome to fix this. The special argument _default_arch is a
106 # variable set by jhbuildrc depending on what platform you're on. It
107 # doesn't set the -arch CFLAG at all, so your architecture will be
108 # whatever you get that way. Note that on Snow Leopard, if you are
109 # building on a 64-bit processor (Xeon, Core2duo, or one of the Core
110 # iFoo procesors), the architecure is x86_64 by default; otherwise
111 # it's i386, which is 32-bit. Be sure to read
112 # http://sourceforge.net/apps/trac/gtk-osx/wiki/SnowLeopard.
113 #
114 #  Set up a particular target and SDK: For default operation, set the
115 # architecture and SDK for the native machine:
116 _target = None;
117 if _osx_version.startswith("8"):
118    _target = "10.4"
119 elif _osx_version.startswith("9"):
120     _target = "10.5"
121 elif _osx_version.startswith("10"):
122     _target = "10.6"
123 elif _osx_version.startswith("11"):
124     _target = "10.7"
125
126 #setup_sdk(target=_target, sdk_version="native", architectures=[_default_arch])
127 #
128 setup_sdk(target="10.6", sdk_version="10.6", architectures=["i386"])
129 #
130 # or set up to cross-compile a ppc build from an intel machine:
131 #
132 # setup_ppc_build()
133 #
134 # or a universal build:
135 #
136 # setup_universal_build(target="10.5", sdk_version="10.5", 
137 #                        architectures=["ppc", "i386"])
138
139
140 # Modify the arguments passed to configure:
141 #
142 # autogenargs["libglade"] = "--enable-static"
143 #
144 # or simply  add to them:
145 #
146 # append_autogenargs("libglade", "--enable-static")
147
148 # Note that in either case the args will be added *after* the args in
149 # the module's autogenargs attribute.
150 #
151 # Tell Git to use a different module and branch (not tag!):
152 #
153 # branches["gtk-engines"] = ("gtk-css-engine", "bzr")
154 #
155 # Or just switch branches
156 #
157 # branches["gtk+"] = (None, "gtk-2-18")
158 #
159 # Tarballs take a whole URL for branches:
160 #
161 # branches["python"] = "http://www.python.org/ftp/python/2.6.4/Python-2.6.4.tar.bz2"
162 #
163 # Note that if the module has hash, md5sum, or size attributes and the
164 # branch download doesn't match, jhbuild will error out. Open a shell,
165 # untar the tarball yourself, quit the shell, and select "ignore
166 # error". Don't try this with modules that need patches unless you're
167 # sure that the updated version doesn't need them.
168 #
169 # Set an environment variable:
170 #
171 # os.environ["CC"] = "/usr/bin/gcc-4.0"
172
173
174 # And more...
175 #append_autogenargs ("dbus", "--with-x")
176
177 #moduleset = "http://git.gnome.org/browse/gtk-osx/plain/modulesets-stable/gtk-osx.modules"
178 os.environ['MAKEFLAGS'] = '-j 4'
179 moduleset=os.environ['HOME'] + '/moonshot/mac-client-installer/moonshot-mac.modules'