mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
errors: add WERROR generation to build system
Parts of doserr.c and werror.h are now generated into werror_gen.c and werror_gen.h, respectively. Also, py_werror.c is now generated. Some errors were not included in the list which we now generate WERRORs from. These errors have been manually included. Signed-off-by: Bob Campbell <bobcampbell@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
parent
ea49c56f46
commit
c6dcac954e
5287
libcli/util/doserr.c
5287
libcli/util/doserr.c
File diff suppressed because it is too large
Load Diff
2691
libcli/util/werror.h
2691
libcli/util/werror.h
File diff suppressed because it is too large
Load Diff
@ -2,7 +2,7 @@
|
||||
|
||||
|
||||
bld.SAMBA_LIBRARY('samba-errors',
|
||||
public_headers='error.h ntstatus.h ntstatus_gen.h doserr.h werror.h hresult.h',
|
||||
public_headers='error.h ntstatus.h ntstatus_gen.h doserr.h werror.h werror_gen.h hresult.h',
|
||||
private_headers='nterr_private.h',
|
||||
header_path='core',
|
||||
source='doserr.c errormap.c nterr.c errmap_unix.c hresult.c',
|
||||
@ -19,8 +19,21 @@ bld.SAMBA_GENERATOR('ntstatus_generated',
|
||||
rule='${PYTHON} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${TGT[0].abspath(env)} ${TGT[1].abspath(env)} ${TGT[2].abspath(env)}'
|
||||
)
|
||||
|
||||
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)}'
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_ntstatus',
|
||||
source='py_ntstatus.c',
|
||||
deps='samba-errors',
|
||||
realname='samba/ntstatus.so'
|
||||
)
|
||||
|
||||
bld.SAMBA_PYTHON('python_werror',
|
||||
source='py_werror.c',
|
||||
deps='samba-errors',
|
||||
realname='samba/werror.so'
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user