13
0
livetrax/libs/aaf/wscript
Robin Gareus 4b8b5acfc4
Fix builds with gcc-14 lstat (#9703 PR #893)
from stat(2)
```
lstat():
    /* glibc 2.19 and earlier */ _BSD_SOURCE
        || /* Since glibc 2.20 */ _DEFAULT_SOURCE
        || _XOPEN_SOURCE >= 500
        || /* Since glibc 2.10: */ _POSIX_C_SOURCE >= 200112L

```
2024-05-07 00:17:56 +02:00

67 lines
1.6 KiB
Python

#!/usr/bin/env python
from waflib.extras import autowaf as autowaf
import os
# Version of this package (even if built as a child)
LIBAAF_VERSION = '0.0.0'
LIBAAF_LIB_VERSION = '0.0.0'
# Variables for 'waf dist'
APPNAME = 'libaaf'
VERSION = LIBAAF_VERSION
I18N_PACKAGE = 'libaaf'
# Mandatory variables
top = '.'
out = 'build'
libaaf_sources = [
'AAFClass.c',
'AAFCore.c',
'AAFDump.c',
'AAFIEssenceFile.c',
'AAFIface.c',
'AAFIParser.c',
'AAFToText.c',
'CFBDump.c',
'LibCFB.c',
'ProTools.c',
'MediaComposer.c',
'Resolve.c',
'RIFFParser.c',
'URIParser.c',
'utils.c',
'log.c',
]
def options(opt):
autowaf.set_options(opt)
def configure(conf):
if False and conf.is_defined('USE_EXTERNAL_LIBS'):
autowaf.check_pkg(conf, 'libaaf', uselib_store='LIBAAF', mandatory=True, atleast_version='0.6.0')
def build(bld):
if False and bld.is_defined('USE_EXTERNAL_LIBS'):
return
if bld.is_defined ('INTERNAL_SHARED_LIBS'):
obj = bld.shlib(features = 'c cshlib', source=libaaf_sources)
obj.defines = [ 'LIBAAF_DLL_EXPORTS=1' ]
else:
obj = bld.stlib(features = 'c cshlib', source=libaaf_sources)
obj.cflags = [ bld.env['compiler_flags_dict']['pic'] ]
obj.defines = []
obj.export_includes = ['.']
obj.includes = ['.']
obj.name = 'libaaf'
obj.target = 'aaf'
#obj.uselib = 'GLIB'
obj.vnum = LIBAAF_LIB_VERSION
obj.install_path = bld.env['LIBDIR']
obj.defines += [ 'PACKAGE="' + I18N_PACKAGE + '"', '_POSIX_C_SOURCE=200809L' ]
def shutdown():
autowaf.shutdown()