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
|
Import('env')
sources = [
"theora/analyze.c",
"theora/apiwrapper.c",
"theora/bitpack.c",
"theora/cpu.c",
"theora/decapiwrapper.c",
"theora/decinfo.c",
"theora/decode.c",
"theora/dequant.c",
#"theora/encapiwrapper.c",
#"theora/encfrag.c",
#"theora/encinfo.c",
#"theora/encode.c",
"theora/encoder_disabled.c",
"theora/enquant.c",
"theora/fdct.c",
"theora/fragment.c",
"theora/huffdec.c",
"theora/huffenc.c",
"theora/idct.c",
"theora/info.c",
"theora/internal.c",
"theora/mathops.c",
"theora/mcenc.c",
"theora/quant.c",
"theora/rate.c",
"theora/state.c",
"theora/tokenize.c",
"theora/video_stream_theora.cpp",
]
sources_x86 = [
"theora/x86/mmxencfrag.c",
"theora/x86/mmxfdct.c",
"theora/x86/mmxfrag.c",
"theora/x86/mmxidct.c",
"theora/x86/mmxstate.c",
"theora/x86/sse2fdct.c",
"theora/x86/x86enc.c",
"theora/x86/x86state.c",
]
sources_x86_vc = [
"theora/x86_vc/mmxencfrag.c",
"theora/x86_vc/mmxfdct.c",
"theora/x86_vc/mmxfrag.c",
"theora/x86_vc/mmxidct.c",
"theora/x86_vc/mmxstate.c",
"theora/x86_vc/x86enc.c",
"theora/x86_vc/x86state.c",
]
env.drivers_sources += sources
if (env["x86_opt_gcc"]):
env.Append(CCFLAGS=["-DOC_X86_ASM"])
env.drivers_sources += sources_x86
if (env["x86_opt_vc"]):
env.Append(CCFLAGS=["-DOC_X86_ASM"])
env.drivers_sources += sources_x86_vc
|