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',
11 # private_library=True,
16 bld
.SAMBA_GENERATOR('hresult_generated',
17 source
='../../source4/scripting/bin/gen_hresult.py hresult_err_table.txt ../../source4/scripting/bin/gen_error_common.py',
18 target
='hresult.h hresult.c',
20 rule
='${PYTHON} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${TGT[0].abspath(env)} ${TGT[1].abspath(env)}'
23 bld
.SAMBA_GENERATOR('ntstatus_generated',
24 source
='../../source4/scripting/bin/gen_ntstatus.py ntstatus_err_table.txt ../../source4/scripting/bin/gen_error_common.py',
25 target
='ntstatus_gen.h nterr_gen.c py_ntstatus.c',
27 rule
='${PYTHON} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${TGT[0].abspath(env)} ${TGT[1].abspath(env)} ${TGT[2].abspath(env)}'
30 bld
.SAMBA_GENERATOR('werror_generated',
31 source
='../../source4/scripting/bin/gen_werror.py werror_err_table.txt ../../source4/scripting/bin/gen_error_common.py',
39 rule
='${PYTHON} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${TGT[0].abspath(env)} ${TGT[1].abspath(env)} ${TGT[2].abspath(env)} ${TGT[3].abspath(env)}'
42 bld
.SAMBA_PYTHON('python_ntstatus',
43 source
='py_ntstatus.c',
45 realname
='samba/ntstatus.so'
48 bld
.SAMBA_PYTHON('python_werror',
51 realname
='samba/werror.so'