3rdparty: libogg & opusfile wscript fixes
This commit is contained in:
parent
73cf55b958
commit
881788c0c9
2 changed files with 4 additions and 21 deletions
22
3rdparty/libogg/wscript
vendored
22
3rdparty/libogg/wscript
vendored
|
@ -1,21 +1,6 @@
|
||||||
#! /usr/bin/env python
|
#! /usr/bin/env python
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
|
|
||||||
FRAGMENT_INTTYPES_H='''#include <inttypes.h>
|
|
||||||
int main (int argc, char **argv) {
|
|
||||||
return 0;
|
|
||||||
}'''
|
|
||||||
|
|
||||||
FRAGMENT_SYS_TYPES_H='''#include <sys/types.h>
|
|
||||||
int main (void) {
|
|
||||||
return 0;
|
|
||||||
}'''
|
|
||||||
|
|
||||||
FRAGMENT_STDINT_H='''#include <stdint.h>
|
|
||||||
int main (void) {
|
|
||||||
return 0;
|
|
||||||
}'''
|
|
||||||
|
|
||||||
def options(opt):
|
def options(opt):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -25,11 +10,11 @@ def configure(conf):
|
||||||
return
|
return
|
||||||
|
|
||||||
# Check for required headers
|
# Check for required headers
|
||||||
if conf.check_cc(fragment=FRAGMENT_INTTYPES_H, msg = 'Checking for inttypes.h header', mandatory = False):
|
if conf.check_cc(header_name='inttypes.h', mandatory = False):
|
||||||
conf.define('INCLUDE_INTTYPES_H', 1)
|
conf.define('INCLUDE_INTTYPES_H', 1)
|
||||||
elif conf.check_cc(fragment=FRAGMENT_SYS_TYPES_H, msg = 'Checking for sys/types.h header', mandatory = False):
|
elif conf.check_cc(header_name='sys/types.h', mandatory = False):
|
||||||
conf.define('INCLUDE_SYS_TYPES_H', 1)
|
conf.define('INCLUDE_SYS_TYPES_H', 1)
|
||||||
elif conf.check_cc(fragmenmt=FRAGMENT_STDINT_H, msg = 'Checking for stdint.h header', mandatory = False):
|
elif conf.check_cc(header_name='stdint.h', mandatory = False):
|
||||||
conf.define('INCLUDE_STDINT_H', 1)
|
conf.define('INCLUDE_STDINT_H', 1)
|
||||||
|
|
||||||
|
|
||||||
|
@ -42,7 +27,6 @@ def build(bld):
|
||||||
bld.stlib(
|
bld.stlib(
|
||||||
source = sources,
|
source = sources,
|
||||||
target = 'libogg',
|
target = 'libogg',
|
||||||
features = 'c',
|
|
||||||
includes = includes,
|
includes = includes,
|
||||||
export_includes = ['libogg/include/']
|
export_includes = ['libogg/include/']
|
||||||
)
|
)
|
||||||
|
|
3
3rdparty/opusfile/wscript
vendored
3
3rdparty/opusfile/wscript
vendored
|
@ -25,8 +25,7 @@ def build(bld):
|
||||||
bld.stlib(
|
bld.stlib(
|
||||||
source = sources,
|
source = sources,
|
||||||
target = 'libopusfile',
|
target = 'libopusfile',
|
||||||
features = 'c',
|
|
||||||
includes = ['opusfile/include/'],
|
includes = ['opusfile/include/'],
|
||||||
use = ['libogg', 'opus'],
|
use = ['libogg', 'opus'],
|
||||||
export_includes = ['opusfile/include/']
|
export_includes = ['opusfile/include/']
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue