ogg-lutin/lutin_ogg.py

92 lines
1.9 KiB
Python
Raw Permalink Normal View History

2015-06-15 22:44:56 +02:00
#!/usr/bin/python
2019-05-03 10:18:23 +02:00
import realog.debug as debug
import lutin.tools as tools
2015-10-14 21:21:03 +02:00
import os
def get_type():
return "LIBRARY"
2015-06-15 22:44:56 +02:00
def get_desc():
return "Ogg-tremor library for ogg audio decoding"
2015-10-14 21:21:03 +02:00
def get_licence():
return "BSD-3"
def get_compagny_type():
return "org"
def get_compagny_name():
return "xiph"
def get_version():
return [1,3,0]
2015-06-15 22:44:56 +02:00
def configure(target, my_module):
2015-09-24 21:44:04 +02:00
my_module.add_src_file([
'ogg/ogg/framing.c',
'ogg/ogg/bitwise.c',
'ogg/tremor/floor0.c',
'ogg/tremor/vorbisfile.c',
'ogg/tremor/synthesis.c',
'ogg/tremor/res012.c',
'ogg/tremor/block.c',
'ogg/tremor/mdct.c',
'ogg/tremor/sharedbook.c',
'ogg/tremor/codebook.c',
'ogg/tremor/floor1.c',
'ogg/tremor/window.c',
'ogg/tremor/registry.c',
'ogg/tremor/info.c',
'ogg/tremor/mapping0.c'
])
2015-10-14 21:21:03 +02:00
my_module.compile_version("c", 1989, gnu=True)
2016-09-08 21:35:02 +02:00
my_module.add_flag('c', "-Wno-duplicate-decl-specifier")
if "Android" in target.get_type():
my_module.add_flag('c', "-DBYTE_ORDER=1")
my_module.add_flag('c', "-DBIG_ENDIAN=0")
my_module.add_flag('c', "-DLITTLE_ENDIAN=1")
my_module.add_path([
"ogg",
"ogg/ogg",
"ogg/tremor"
])
2015-10-14 21:21:03 +02:00
my_module.add_header_file([
'ogg/tremor/window_lookup.h',
'ogg/tremor/mdct.h',
'ogg/tremor/misc.h',
'ogg/tremor/mdct_lookup.h',
'ogg/tremor/registry.h',
'ogg/tremor/codebook.h',
'ogg/tremor/config_types.h',
'ogg/tremor/lsp_lookup.h',
'ogg/tremor/block.h',
'ogg/tremor/asm_arm.h',
'ogg/tremor/codec_internal.h',
'ogg/tremor/ivorbiscodec.h',
'ogg/tremor/os.h',
'ogg/tremor/window.h',
'ogg/tremor/backends.h',
'ogg/tremor/ivorbisfile.h'
],
destination_path="tremor")
2015-10-14 21:21:03 +02:00
my_module.add_header_file([
'ogg/ogg/ogg.h',
'ogg/ogg/os_types.h'
],
destination_path="ogg")
2016-09-08 21:35:02 +02:00
my_module.add_depend([
'c',
'm'
])
return True
2015-06-15 22:44:56 +02:00