2011-04-29 10:57:41 +04:00
#!/usr/bin/env python
2016-01-04 04:01:53 +03:00
bld.SAMBA_LIBRARY('samba-errors',
2017-01-20 02:24:53 +03:00
public_headers='error.h ntstatus.h ntstatus_gen.h doserr.h werror.h werror_gen.h hresult.h',
2017-01-12 05:33:45 +03:00
private_headers='nterr_private.h',
2011-06-20 08:03:26 +04:00
header_path='core',
2014-03-10 15:00:38 +04:00
source='doserr.c errormap.c nterr.c errmap_unix.c hresult.c',
2014-09-17 17:09:52 +04:00
public_deps='talloc samba-debug',
2016-01-04 04:01:53 +03:00
# private_library=True,
pc_files=[],
vnum='1',
2011-06-20 08:03:26 +04:00
)
2011-04-29 10:57:41 +04:00
2017-01-12 05:33:45 +03:00
bld.SAMBA_GENERATOR('ntstatus_generated',
2017-01-20 02:11:30 +03:00
source='../../source4/scripting/bin/gen_ntstatus.py ntstatus_err_table.txt ../../source4/scripting/bin/gen_error_common.py',
2017-01-12 05:33:45 +03: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 02:24:53 +03: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)}'
)
2017-01-12 05:33:45 +03:00
bld.SAMBA_PYTHON('python_ntstatus',
source='py_ntstatus.c',
deps='samba-errors',
realname='samba/ntstatus.so'
)
2017-01-20 02:24:53 +03:00
bld.SAMBA_PYTHON('python_werror',
source='py_werror.c',
deps='samba-errors',
realname='samba/werror.so'
)