2014-03-13 16:50:44 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
import os
|
2025-05-11 15:58:00 +02:00
|
|
|
import sys
|
2014-03-13 16:50:44 +01:00
|
|
|
|
|
|
|
|
def options(opt):
|
2022-01-25 17:43:36 +01:00
|
|
|
pass
|
2014-03-13 16:50:44 +01:00
|
|
|
|
|
|
|
|
def configure(conf):
|
2022-01-22 22:09:13 +01:00
|
|
|
pass
|
2014-03-13 16:50:44 +01:00
|
|
|
|
|
|
|
|
def build(bld):
|
|
|
|
|
if bld.env['build_target'] == 'mingw':
|
|
|
|
|
return
|
2025-05-11 15:58:00 +02:00
|
|
|
|
2014-03-13 16:50:44 +01:00
|
|
|
obj = bld (features = 'c cprogram')
|
|
|
|
|
obj.source = 'exec_wrapper.c'
|
|
|
|
|
obj.target = 'ardour-exec-wrapper'
|
2014-11-13 19:57:40 +01:00
|
|
|
obj.install_path = os.path.join(bld.env['LIBDIR'])
|
2014-03-13 16:50:44 +01:00
|
|
|
obj.defines = [
|
|
|
|
|
'_POSIX_SOURCE',
|
2014-03-14 14:52:23 -04:00
|
|
|
'_XOPEN_SOURCE=500',
|
2014-03-13 16:50:44 +01:00
|
|
|
]
|
2025-05-11 15:58:00 +02:00
|
|
|
|
|
|
|
|
if sys.platform == 'darwin':
|
|
|
|
|
pass
|
|
|
|
|
else:
|
|
|
|
|
obj.linkflags = ' -zexecstack'
|