wrapmode=nofallback prevents meson projects from # Extra arguments to pass to all autogen.sh scripts. # The following configuration can be overridden in custom files # # when XQuartz is installed by removing it from PATH # Make sure we don't link against XQuartz whose freetype-config is on PATH # cross-compilation, not that it works anyway. # to our current CFLAGS so that everything will link with other # Finally when building normally we need to force CFLAGS_FOR_BUILD #Some packages require special arguments or flags to compile with Clang: environĪppend_autogenargs( "gnutls", "-disable-guile")Īppend_autogenargs( "guile", 'CFLAGS="$CFLAGS -O1"')
#Overcome Python's obnoxious misconfiguration of portable builds # around the Apple-provided one not defining _libiconv_init forĪppend_autogenargs( "gettext-fw", "-with-libiconv-prefix=" + prefix)Įnviron_append( "CFLAGS", "-mmacosx-version-min=" + target)Įnviron_append( "CXXFLAGS", "-mmacosx-version-min=" + target)Įnviron_append( "OBJCFLAGS", "-mmacosx-version-min=" + target)Įnviron_append( "LDFLAGS", "-mmacosx-version-min=" + target) # gettext-fw rebuilds gettext with an in-tree libiconv to get append( 'openssl') # openssl removed in El Capitan join( sdkdir, "usr", "include", "openssl")): jhbuildrc-custom after calling setup_sdk().Ĭonfig_shell = os. # El Capitan needs bash to work around SIP. # For intel, set glib's build parameter so that it builds theĪppend_autogenargs( "glib", "-build=i486-apple-darwin")Īppend_autogenargs( "liboil", "-host=i486-apple-darwin")Īppend_autogenargs( "gnutls", "-host=i486-apple-darwin")Īppend_autogenargs( "glib", "-build=x86_64-apple-darwin")Īppend_autogenargs( "gmp", "-host=x86_64-apple-darwin ABI=64")Īppend_autogenargs( "liboil", "-host=x86_64-apple-darwin")Īppend_autogenargs( "gnutls", "-host=x86_64-apple-darwin")Īppend_autogenargs( "glib", "-build=aarch64-apple-darwin")Īppend_autogenargs( "gmp", "-host=aarch64-apple-darwin ABI=64")Īppend_autogenargs( "liboil", "-host=aarch64-apple-darwin")Īppend_autogenargs( "libffi", "-host=aarch64-apple-darwin") # Set the -arch flags for everything we're building.Įnviron_prepend( "CFLAGS", "-arch " + arch)Įnviron_prepend( "CXXFLAGS", "-arch " + arch)Įnviron_prepend( "CPPFLAGS", "-arch " + arch)Įnviron_prepend( "OBJCFLAGS", "-arch " + arch)Įnviron_prepend( "LDFLAGS", "-arch " + arch) # For unknown reasons, iconv is not picked up correctly without this It might work, but if it doesn't you're on your own.") Print( "WARNING: Universal builds are neither prohibited nor supported. Raise EnvironmentError( "Only architectures i386, x86_64, and arm64 are supported.") Global _default_arch, _osx_version, _target Raise FatalError( "variable " + var + " not defined in jhbuild environment") Raise FatalError( "No environment variable") Command):ĭoc = "Retrieve an environment variable set within jhbuild" register_command( _cmd_bootstrap_gtk_osx)Ĭlass _getenv( jhbuild. join( modulesets_dir,Įlif ( use_local_modulesets and config. cmd_build):ĭoc = 'Build buildsystem tools not provided by MacOS.' register_command( _cmd_get_srcdir)Ĭlass _cmd_bootstrap_gtk_osx( jhbuild. Raise RuntimeError( _( 'unknown module %s') % modname) Command):ĭoc = 'Display information about one or more modules'ĭef run( self, config, options, args, help = None): # Register an extra command to get the checkout dir for a module.Ĭlass _cmd_get_srcdir( jhbuild. Raise RuntimeError( "Failed to close %s stream" % cmd_arg) # improving this setup, or have any patches that you would like to getĬmd = Popen( cmd_arg, stdout = PIPE, stderr = devnull, shell = True) # Please email if you have suggestions for # the source checkout location, installation prefix, or svn usernames jhbuildrc-custom to override the moduleset, modules to build, # such a name, the corresponding rc file will be read (e.g.: When setting the environment variable JHB to # Specific builds can be set up by creating files named # Default setup for building GTK+ on Mac OS X.