commit cc2cc9ee9ec45a5e5447d0a2dbd303e6a28dc271 Author: Edouard DUPIN Date: Mon Jun 15 22:44:56 2015 +0200 [DEV] add basic lutin wrapper diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..2c6bf15 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "ogg"] + path = ogg + url = https://github.com/generic-library/ogg.git diff --git a/README.md b/README.md new file mode 100644 index 0000000..888d700 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +Lutin wrapper +============= + +Used to compile the library with lutin builder interface + diff --git a/lutin_ogg.py b/lutin_ogg.py new file mode 100644 index 0000000..355d3d5 --- /dev/null +++ b/lutin_ogg.py @@ -0,0 +1,47 @@ +#!/usr/bin/python +import lutin.module as module +import lutin.tools as tools +import lutin.debug as debug + +def get_desc(): + return "Ogg-tremor library for ogg audio decoding" + + +def create(target): + myModule = module.Module(__file__, 'ogg', 'LIBRARY') + myModule.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' + ]) + myModule.compile_version_CC(1989, gnu=True) + myModule.compile_flags('c', "-Wno-duplicate-decl-specifier") + if target.name=="Android": + myModule.compile_flags('c', "-DBYTE_ORDER=1") + myModule.compile_flags('c', "-DBIG_ENDIAN=0") + myModule.compile_flags('c', "-DLITTLE_ENDIAN=1") + myModule.add_export_path(tools.get_current_path(__file__) + "/ogg") + myModule.add_path(tools.get_current_path(__file__)+"/ogg/ogg/") + myModule.add_path(tools.get_current_path(__file__)+"/ogg/tremor/") + return myModule + + + + + + + + + diff --git a/ogg b/ogg new file mode 160000 index 0000000..686504f --- /dev/null +++ b/ogg @@ -0,0 +1 @@ +Subproject commit 686504fa5d6e0c852c77376de977b4560d892167