summaryrefslogtreecommitdiffstats
path: root/build-aux/osx/build/config/jhbuildrc-gedit
blob: 46ca95098b579029e9bb696283f26bc72abf6968 (plain)
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
# -*- 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']