4 bld
.SAMBA_LIBRARY('samba-errors',
5 public_headers
='error.h ntstatus.h ntstatus_gen.h doserr.h werror.h werror_gen.h hresult.h',
6 private_headers
='nterr_private.h',
8 source
='doserr.c errormap.c nterr.c errmap_unix.c hresult.c',
9 public_deps
='talloc samba-debug',
10 # private_library=True,
15 bld
.SAMBA_GENERATOR('ntstatus_generated',
16 source
='../../source4/scripting/bin/gen_ntstatus.py ntstatus_err_table.txt ../../source4/scripting/bin/gen_error_common.py',
17 target
='ntstatus_gen.h nterr_gen.c py_ntstatus.c',
19 rule
='${PYTHON} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${TGT[0].abspath(env)} ${TGT[1].abspath(env)} ${TGT[2].abspath(env)}'
22 bld
.SAMBA_GENERATOR('werror_generated',
23 source
='../../source4/scripting/bin/gen_werror.py werror_err_table.txt ../../source4/scripting/bin/gen_error_common.py',
24 target
='werror_gen.h werror_gen.c py_werror.c',
26 rule
='${PYTHON} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${TGT[0].abspath(env)} ${TGT[1].abspath(env)} ${TGT[2].abspath(env)}'
29 bld
.SAMBA_PYTHON('python_ntstatus',
30 source
='py_ntstatus.c',
32 realname
='samba/ntstatus.so'
35 bld
.SAMBA_PYTHON('python_werror',
38 realname
='samba/werror.so'