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