2011-04-29 16:57:41 +10:00
#!/usr/bin/env python
2016-01-04 01:01:53 +00:00
bld.SAMBA_LIBRARY('samba-errors',
2017-01-20 12:24:53 +13:00
public_headers='error.h ntstatus.h ntstatus_gen.h doserr.h werror.h werror_gen.h hresult.h',
2017-01-12 15:33:45 +13:00
private_headers='nterr_private.h',
2011-06-20 14:03:26 +10:00
header_path='core',
2014-03-10 11:00:38 +00:00
source='doserr.c errormap.c nterr.c errmap_unix.c hresult.c',
2014-09-17 15:09:52 +02:00
public_deps='talloc samba-debug',
2016-01-04 01:01:53 +00:00
# private_library=True,
pc_files=[],
vnum='1',
2011-06-20 14:03:26 +10:00
)
2011-04-29 16:57:41 +10:00
2017-01-12 15:33:45 +13:00
bld.SAMBA_GENERATOR('ntstatus_generated',
2017-01-20 12:11:30 +13:00
source='../../source4/scripting/bin/gen_ntstatus.py ntstatus_err_table.txt ../../source4/scripting/bin/gen_error_common.py',
2017-01-12 15:33:45 +13:00
target='ntstatus_gen.h nterr_gen.c py_ntstatus.c',
group='build_source',
rule='${PYTHON} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${TGT[0].abspath(env)} ${TGT[1].abspath(env)} ${TGT[2].abspath(env)}'
)
2017-01-20 12:24:53 +13:00
bld.SAMBA_GENERATOR('werror_generated',
source='../../source4/scripting/bin/gen_werror.py werror_err_table.txt ../../source4/scripting/bin/gen_error_common.py',
target='werror_gen.h werror_gen.c py_werror.c',
group='build_source',
rule='${PYTHON} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${TGT[0].abspath(env)} ${TGT[1].abspath(env)} ${TGT[2].abspath(env)}'
)
2019-02-15 16:37:48 +13:00
bld.SAMBA_PYTHON('python_ntstatus',
2017-08-08 11:50:30 +02:00
source='py_ntstatus.c',
deps='samba-errors',
realname='samba/ntstatus.so'
)
2017-01-20 12:24:53 +13:00
2019-02-15 16:37:48 +13:00
bld.SAMBA_PYTHON('python_werror',
2017-08-08 11:50:30 +02:00
source='py_werror.c',
deps='samba-errors',
realname='samba/werror.so'
)