2
0
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:
SNMetamorph 2024-12-02 00:15:52 +04:00 committed by Alibek Omarov
parent 73cf55b958
commit 881788c0c9
2 changed files with 4 additions and 21 deletions

View File

@ -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/']
)

View File

@ -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/']
)