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',
2019-06-26 07:41:05 +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',
2019-06-26 07:41:05 +03: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',
2019-05-22 18:09:50 +03:00
deps='gnutls',
2016-01-04 04:01:53 +03:00
# private_library=True,
pc_files=[],
2022-08-10 14:55:48 +03:00
vnum='1.0.0',
2011-06-20 08:03:26 +04:00
)
2011-04-29 10:57:41 +04:00
2024-01-11 01:25:53 +03:00
bld.SAMBA_GENERATOR('hresult_generated',
source='../../source4/scripting/bin/gen_hresult.py hresult_err_table.txt ../../source4/scripting/bin/gen_error_common.py',
target='hresult.h hresult.c',
group='build_source',
rule='${PYTHON} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${TGT[0].abspath(env)} ${TGT[1].abspath(env)}'
)
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',
2023-02-28 22:27:30 +03:00
target='''
werror_gen.h
werror_gen.c
2023-02-28 22:53:59 +03:00
werror_friendly_gen.c
2023-02-28 22:27:30 +03:00
py_werror.c
''',
2017-01-20 02:24:53 +03:00
group='build_source',
2023-02-28 22:53:59 +03:00
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)}'
2017-01-20 02:24:53 +03:00
)
2019-02-15 06:37:48 +03:00
bld.SAMBA_PYTHON('python_ntstatus',
2017-08-08 12:50:30 +03:00
source='py_ntstatus.c',
deps='samba-errors',
realname='samba/ntstatus.so'
)
2017-01-20 02:24:53 +03:00
2019-02-15 06:37:48 +03:00
bld.SAMBA_PYTHON('python_werror',
2017-08-08 12:50:30 +03:00
source='py_werror.c',
deps='samba-errors',
realname='samba/werror.so'
)