blob: 25d3f499b546e515d8369748ab571c96a6da9074 (
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
|
# This file contains the default configuration to compile for Linux
# platforms. It contains sensitive enviroment configuration that
# shouldn't be modified unless you know what you are doing.
# PLEASE, DO NOT EDIT THIS FILE
import os
from cerbero.config import Architecture
if target_arch == Architecture.X86_64:
prefix=prefix or os.path.expanduser('~/cerbero/dist/linux_x86_64')
sources=sources or os.path.expanduser('~/cerbero/sources/linux_x86_64')
cache_file= cache_file or 'linux_x86_64'
elif target_arch == Architecture.X86:
prefix=prefix or os.path.expanduser('~/cerbero/dist/linux_i686')
sources=sources or os.path.expanduser('~/cerbero/sources/linux_i686')
cache_file=cache_file or 'linux_i686'
for f in ['CFLAGS', 'CCASFLAGS', 'CXXFLAGS', 'LDFLAGS', 'OBJCFLAGS']:
os.environ[f] = os.environ.get(f, '')
os.environ['CFLAGS'] += ' -g -O2'
os.environ['CXXFLAGS'] += ' -g -O2'
os.environ['OBJCFLAGS'] += ' -g -O2'
os.environ['am_cv_python_pyexecdir'] = '%s/%s/site-packages' % (prefix, py_prefix)
os.environ['am_cv_python_pythondir'] = '%s/%s/site-packages' % (prefix, py_prefix)
if use_ccache:
os.environ['CC'] += 'ccache gcc'
os.environ['CXX'] += 'ccache g++'
|