2014-02-10 01:10:30 +00:00
|
|
|
Import('env')
|
|
|
|
|
|
|
|
sources = [
|
2016-09-26 13:09:05 +00:00
|
|
|
#"theora/analyze.c",
|
|
|
|
#"theora/apiwrapper.c",
|
2014-02-10 01:10:30 +00:00
|
|
|
"theora/bitpack.c",
|
|
|
|
"theora/cpu.c",
|
2016-09-26 13:09:05 +00:00
|
|
|
#"theora/decapiwrapper.c",
|
2014-02-10 01:10:30 +00:00
|
|
|
"theora/decinfo.c",
|
|
|
|
"theora/decode.c",
|
|
|
|
"theora/dequant.c",
|
|
|
|
#"theora/encapiwrapper.c",
|
|
|
|
#"theora/encfrag.c",
|
|
|
|
#"theora/encinfo.c",
|
|
|
|
#"theora/encode.c",
|
2016-09-26 13:09:05 +00:00
|
|
|
#"theora/encoder_disabled.c",
|
|
|
|
#"theora/enquant.c",
|
|
|
|
#"theora/fdct.c",
|
2014-02-10 01:10:30 +00:00
|
|
|
"theora/fragment.c",
|
|
|
|
"theora/huffdec.c",
|
2016-09-26 13:09:05 +00:00
|
|
|
#"theora/huffenc.c",
|
2014-02-10 01:10:30 +00:00
|
|
|
"theora/idct.c",
|
|
|
|
"theora/info.c",
|
|
|
|
"theora/internal.c",
|
2016-09-26 13:09:05 +00:00
|
|
|
#"theora/mathops.c",
|
|
|
|
#"theora/mcenc.c",
|
2014-02-10 01:10:30 +00:00
|
|
|
"theora/quant.c",
|
2016-09-26 13:09:05 +00:00
|
|
|
#"theora/rate.c",
|
2014-02-10 01:10:30 +00:00
|
|
|
"theora/state.c",
|
2016-09-26 13:09:05 +00:00
|
|
|
#"theora/tokenize.c",
|
2014-02-10 01:10:30 +00:00
|
|
|
"theora/video_stream_theora.cpp",
|
|
|
|
]
|
|
|
|
|
2015-11-25 03:28:03 +00:00
|
|
|
sources_x86 = [
|
2016-09-26 13:09:05 +00:00
|
|
|
#"theora/x86/mmxencfrag.c",
|
|
|
|
#"theora/x86/mmxfdct.c",
|
2015-11-25 03:28:03 +00:00
|
|
|
"theora/x86/mmxfrag.c",
|
|
|
|
"theora/x86/mmxidct.c",
|
|
|
|
"theora/x86/mmxstate.c",
|
2016-09-26 13:09:05 +00:00
|
|
|
#"theora/x86/sse2fdct.c",
|
|
|
|
#"theora/x86/x86enc.c",
|
2015-11-25 03:28:03 +00:00
|
|
|
"theora/x86/x86state.c",
|
|
|
|
]
|
|
|
|
|
|
|
|
sources_x86_vc = [
|
2016-09-26 13:09:05 +00:00
|
|
|
#"theora/x86_vc/mmxencfrag.c",
|
|
|
|
#"theora/x86_vc/mmxfdct.c",
|
2015-11-25 03:28:03 +00:00
|
|
|
"theora/x86_vc/mmxfrag.c",
|
|
|
|
"theora/x86_vc/mmxidct.c",
|
|
|
|
"theora/x86_vc/mmxstate.c",
|
2016-09-26 13:09:05 +00:00
|
|
|
#"theora/x86_vc/x86enc.c",
|
2015-11-25 03:28:03 +00:00
|
|
|
"theora/x86_vc/x86state.c",
|
|
|
|
]
|
|
|
|
|
2015-11-24 13:42:05 +00:00
|
|
|
env.drivers_sources += sources
|
2015-11-25 03:28:03 +00:00
|
|
|
|
|
|
|
if (env["x86_opt_gcc"]):
|
|
|
|
env.drivers_sources += sources_x86
|
|
|
|
|
|
|
|
if (env["x86_opt_vc"]):
|
|
|
|
env.drivers_sources += sources_x86_vc
|
|
|
|
|
2016-09-26 13:09:05 +00:00
|
|
|
if (env["x86_opt_gcc"] or env["x86_opt_vc"]):
|
|
|
|
Import('env_drivers')
|
|
|
|
env_drivers.Append(CCFLAGS=["-DOC_X86_ASM"])
|