Commit dfa18fb1 authored by conrad's avatar conrad

add basic SConstruct and SConscript files to build library and programs


git-svn-id: http://svn.annodex.net/liboggz/trunk@720 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent 4be5cb7b
import sys
my_cppdefines = {}
# Check endianness
if sys.byteorder == "big":
print "Host is big endian"
my_cppdefines['WORDS_BIGENDIAN'] = 1
else:
print "Host is little endian"
opts = Options()
opts.Add('enable_read', 'Set to 0 to disable reading support', 1)
my_cppdefines['OGGZ_CONFIG_READ'] = '${enable_read}'
opts.Add('enable_write', 'Set to 0 to disable writing support', 1)
my_cppdefines['OGGZ_CONFIG_WRITE'] = '${enable_write}'
env = Environment(options = opts,
CPPPATH = '#/scons',
CPPDEFINES = my_cppdefines)
Export('env')
SConscript(['src/SConscript'])
#define VERSION "0.8.5"
SConscript(['liboggz/SConscript'])
SConscript(['examples/SConscript'])
SConscript(['tools/SConscript'])
SConscript(['tests/SConscript'])
Import('env')
env.Append(LIBS = ['oggz', 'ogg'])
env.Append(LIBPATH = '../liboggz')
env.Program('identity', 'identity.c')
env.Program('read-file', 'read-file.c')
env.Program('read-io', 'read-io.c')
env.Program('seek-stress', 'seek-stress.c')
env.Program('write-feed', 'write-feed.c')
env.Program('write-hungry', 'write-hungry.c')
Import('env')
env.SharedLibrary ('liboggz', Split("""
oggz.c oggz_io.c oggz_read.c oggz_write.c
oggz_auto.c oggz_stream.c
oggz_table.c oggz_vector.c
"""))
Import('env')
env.Append(LIBS = ['oggz', 'ogg'])
env.Append(LIBPATH = '../liboggz')
env.Program('write-bad-guard', 'write-bad-guard.c')
env.Program('write-unmarked-guard', 'write-unmarked-guard.c')
env.Program('write-recursive', 'write-recursive.c')
env.Program('write-bad-bytes', 'write-bad-bytes.c')
env.Program('write-bad-bos', 'write-bad-bos.c')
env.Program('write-dup-bos', 'write-dup-bos.c')
env.Program('write-bad-eos', 'write-bad-eos.c')
env.Program('write-bad-granulepos', 'write-bad-granulepos.c')
env.Program('write-bad-packetno', 'write-bad-packetno.c')
env.Program('read-generated', 'read-generated.c')
env.Program('read-stop-ok', 'read-stop-ok.c')
env.Program('read-stop-err', 'read-stop-err.c')
env.Program('io-read', 'io-read.c')
env.Program('io-seek', 'io-seek.c')
env.Program('io-write', 'io-write.c')
env.Program('io-read-single', 'io-read-single.c')
env.Program('io-write-flush', 'io-write-flush.c')
Import('env')
env.Append(LIBS = ['oggz', 'ogg'])
env.Append(LIBPATH = '../liboggz')
env.Program('oggzinfo', 'oggzinfo.c')
env.Program('oggzed', 'oggzed.c')
env.Program('oggzdump', 'oggzdump.c')
env.Program('oggzmerge', 'oggzmerge.c')
env.Program('oggzrip', 'oggzrip.c')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment