|
Revision 2395, 1.0 kB
(checked in by shans, 2 years ago)
|
Added code to capture "hole in the data" warnings from ogg_stream_packetout
and continue (these occur when page sequence numbers are not monotonic
increasing for a stream and do not seem to matter)
|
| Line | |
|---|
| 1 |
import sys |
|---|
| 2 |
|
|---|
| 3 |
# import Test() |
|---|
| 4 |
SConscript(['scons/SConsTest']) |
|---|
| 5 |
Import('enable_test') |
|---|
| 6 |
|
|---|
| 7 |
my_cppdefines = {} |
|---|
| 8 |
|
|---|
| 9 |
# Check endianness |
|---|
| 10 |
if sys.byteorder == "big": |
|---|
| 11 |
print "Host is big endian" |
|---|
| 12 |
my_cppdefines['WORDS_BIGENDIAN'] = 1 |
|---|
| 13 |
else: |
|---|
| 14 |
print "Host is little endian" |
|---|
| 15 |
|
|---|
| 16 |
opts = Options() |
|---|
| 17 |
opts.Add(BoolOption('enable_read', 'Set to 0 to disable reading support', 1)) |
|---|
| 18 |
my_cppdefines['OGGZ_CONFIG_READ'] = '${enable_read}' |
|---|
| 19 |
|
|---|
| 20 |
opts.Add(BoolOption('enable_write', 'Set to 0 to disable writing support', 1)) |
|---|
| 21 |
my_cppdefines['OGGZ_CONFIG_WRITE'] = '${enable_write}' |
|---|
| 22 |
|
|---|
| 23 |
libenv = Environment(options = opts, |
|---|
| 24 |
CPPPATH = '#/scons', |
|---|
| 25 |
CPPDEFINES = my_cppdefines) |
|---|
| 26 |
Export('libenv') |
|---|
| 27 |
|
|---|
| 28 |
progenv = libenv.Copy() |
|---|
| 29 |
progenv.Append(LIBS = ['oggz', 'ogg']) |
|---|
| 30 |
progenv.Append(LIBPATH = '../liboggz') |
|---|
| 31 |
progenv.Dictionary('ENV')['LD_LIBRARY_PATH'] = './src/liboggz/' |
|---|
| 32 |
enable_test (progenv) |
|---|
| 33 |
Export('progenv') |
|---|
| 34 |
|
|---|
| 35 |
dict = libenv.Dictionary() |
|---|
| 36 |
|
|---|
| 37 |
enable_read = dict['enable_read'] |
|---|
| 38 |
Export('enable_read') |
|---|
| 39 |
enable_write = dict['enable_write'] |
|---|
| 40 |
Export('enable_write') |
|---|
| 41 |
|
|---|
| 42 |
SConscript(['src/SConscript']) |
|---|