mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-12-22 17:01:14 +01:00
3rdparty: libogg & opusfile wscript fixes
This commit is contained in:
parent
73cf55b958
commit
881788c0c9
22
3rdparty/libogg/wscript
vendored
22
3rdparty/libogg/wscript
vendored
@ -1,21 +1,6 @@
|
||||
#! /usr/bin/env python
|
||||
# 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):
|
||||
pass
|
||||
|
||||
@ -25,11 +10,11 @@ def configure(conf):
|
||||
return
|
||||
|
||||
# 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)
|
||||
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)
|
||||
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)
|
||||
|
||||
|
||||
@ -42,7 +27,6 @@ def build(bld):
|
||||
bld.stlib(
|
||||
source = sources,
|
||||
target = 'libogg',
|
||||
features = 'c',
|
||||
includes = includes,
|
||||
export_includes = ['libogg/include/']
|
||||
)
|
||||
|
3
3rdparty/opusfile/wscript
vendored
3
3rdparty/opusfile/wscript
vendored
@ -25,8 +25,7 @@ def build(bld):
|
||||
bld.stlib(
|
||||
source = sources,
|
||||
target = 'libopusfile',
|
||||
features = 'c',
|
||||
includes = ['opusfile/include/'],
|
||||
use = ['libogg', 'opus'],
|
||||
use = ['libogg', 'opus'],
|
||||
export_includes = ['opusfile/include/']
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user