summaryrefslogtreecommitdiffstats
path: root/build/linux/jhbuildrc
blob: 9a226f404a2f10d792b2a6ceacd001abe7b6e755 (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
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
# -*- mode: python -*-
# -*- coding: utf-8 -*-
#
# Copyright (C) Tristan Van Berkom <tristan@upstairslabs.com>
#
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of
# the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public 
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# Authors:
#   Tristan Van Berkom <tristan@upstairslabs.com>
#
use_local_modulesets = True
modulesets_dir = os.getenv('BUNDLE_DIR') + '/modulesets'
moduleset = 'bundle.modules'

# Unset autogenargs (screws with some modules like freetype)
autogenargs = ''

# This causes jhbuild to fire some sort of warning, but no problem...
build_cflags = ''

# _FORTIFY_SOURCE can be defined by default in some compilers
# we want to unset this because glibc's runtime checkers are only
# available in recent versions of glibc
build_cflags += ' -U_FORTIFY_SOURCE'

# Include the libcwrap.h before anything else for every source, this
# ensures we are targetting the right version of glibc
build_cflags += ' -include ' + os.getenv('BUNDLE_DIR') + '/libcwrap.h'

# Set the compiler flags for both C and C++ sources, overriding CC and CXX
# ensures that they come before any flags that any buildscripts might add
os.environ['CC']  = 'gcc ' + build_cflags
os.environ['CXX'] = 'g++ ' + build_cflags

# Enable our custom triggers
os.environ['JHBUILD_TRIGGERS'] = os.getenv('BUNDLE_DIR') + '/triggers'

# A list of the modules to build.
modules = [ 'glade' ]

# Where to put the tarballs, sources and install prefix
if os.environ.get('BUNDLE_ROOT') is not None:
    tarballdir = os.environ.get('BUNDLE_ROOT') + '/Tarballs'
    checkoutroot = os.environ.get('BUNDLE_ROOT') + '/Sources'
    prefix = os.environ.get('BUNDLE_ROOT') + '/Install'
else:
    tarballdir = '~/AppImages/Tarballs'
    checkoutroot = '~/AppImages/Sources'
    prefix = '~/AppImages/Install'

# Dont put anything into a lib64 directory, whether we build for
# 32bit linux or 64bit linux, we want a constant path for the libraries
use_lib64 = False

# Uncomment this for verbose builds
# makeargs = "V=1"