# -*- mode: python -*- import sys, os _gsdk = os.environ.get('GEDIT_SDK', None) if not _gsdk: sys.stderr.write("No GEDIT_SDK environment given. Please provide 10.x\n") sys.exit(1) _basedir = os.environ['GEDIT_OSX_BUILD_BASE'] if not _basedir: sys.stderr.write("No GEDIT_OSX_BASE environment given. Please provide the base build directory\n") sys.exit(1) _sourcedir = os.environ['GEDIT_OSX_SOURCE_BASE'] if not _sourcedir: sys.stderr.write("No GEDIT_OSX_SOURCE_BASE environment given. Please provide the base source directory\n") sys.exit(1) checkoutroot = os.path.join(_basedir, _gsdk, "source") prefix = os.path.join(_basedir, _gsdk, "inst") tarballdir = os.path.join(_basedir, "pkgs") # Main setup setup_sdk(target=_gsdk, sdk_version=_gsdk, architectures=['x86_64']) if 'GEDIT_OSX_DEBUG' in os.environ: setup_debug() else: setup_release() # Main module set modulesets_dir = os.path.join(_sourcedir, "modulesets") moduleset = "gedit.modules" modules = ["gedit-meta"] os.environ['HOME'] = os.environ['__GEDIT_OSX_OLD_HOME']