summaryrefslogtreecommitdiff
path: root/source4/build/scons/fallback.py
blob: d8db9ec26896240cbf38dccbf33f68eadf41f62f (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
# Generate fallback configure + Makefile
# Copyright (C) 2005 Jelmer Vernooij <jelmer@samba.org>

# No support for:
#  - cross-compilation
#  - caching
#  - config.status (?)

import SCons.Defaults
import SCons.Util
import SCons.Tool

# Configure structure:
# - Check for available tools first
# - Check for available tool capabilities (C99, volatile, etc)
# - Check for available `base' headers 
# - Check for available types
# - Check for libs / headers
def configure_builder(target, source, env):
	pass

# Makefile structure:
# - Declare all variables first
# - Declare targets + dependencies + actions

def makefile_builder(target, source, env):
	pass

def generate(env):
    env['BUILDERS']['ConfigureScript'] = configure_builder
    env['BUILDERS']['MakefileIn'] = makefile_in_builder

def exists(env):
	return 1