Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5563 serge 1
Import('*')
2
 
3
from sys import executable as python_cmd
4
 
5
env.Append(CPPPATH = [
6
    'indices',
7
    'util',
8
])
9
 
10
env.CodeGenerate(
11
    target = 'indices/u_indices_gen.c',
12
    script = 'indices/u_indices_gen.py',
13
    source = [],
14
    command = python_cmd + ' $SCRIPT > $TARGET'
15
)
16
 
17
env.CodeGenerate(
18
    target = 'indices/u_unfilled_gen.c',
19
    script = 'indices/u_unfilled_gen.py',
20
    source = [],
21
    command = python_cmd + ' $SCRIPT > $TARGET'
22
)
23
 
24
env.CodeGenerate(
25
    target = 'util/u_format_srgb.c',
26
    script = 'util/u_format_srgb.py',
27
    source = [],
28
    command = python_cmd + ' $SCRIPT > $TARGET'
29
)
30
 
31
env.CodeGenerate(
32
    target = 'util/u_format_table.c',
33
    script = '#src/gallium/auxiliary/util/u_format_table.py',
34
    source = ['#src/gallium/auxiliary/util/u_format.csv'],
35
    command = python_cmd + ' $SCRIPT $SOURCE > $TARGET'
36
)
37
 
38
env.Depends('util/u_format_table.c', [
39
    '#src/gallium/auxiliary/util/u_format_parse.py',
40
    'util/u_format_pack.py',
41
])
42
 
43
source = env.ParseSourceList('Makefile.sources', [
44
    'C_SOURCES',
45
    'GENERATED_SOURCES'
46
])
47
 
48
if env['llvm']:
49
    source += env.ParseSourceList('Makefile.sources', [
50
        'GALLIVM_SOURCES',
51
        'GALLIVM_CPP_SOURCES'
52
    ])
53
 
54
gallium = env.ConvenienceLibrary(
55
    target = 'gallium',
56
    source = source,
57
)
58
 
59
env.Alias('gallium', gallium)
60
 
61
Export('gallium')