summaryrefslogtreecommitdiffstats
path: root/libcli/util/wscript_build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:20:00 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:20:00 +0000
commit8daa83a594a2e98f39d764422bfbdbc62c9efd44 (patch)
tree4099e8021376c7d8c05bdf8503093d80e9c7bad0 /libcli/util/wscript_build
parentInitial commit. (diff)
downloadsamba-8daa83a594a2e98f39d764422bfbdbc62c9efd44.tar.xz
samba-8daa83a594a2e98f39d764422bfbdbc62c9efd44.zip
Adding upstream version 2:4.20.0+dfsg.upstream/2%4.20.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'libcli/util/wscript_build')
-rw-r--r--libcli/util/wscript_build58
1 files changed, 58 insertions, 0 deletions
diff --git a/libcli/util/wscript_build b/libcli/util/wscript_build
new file mode 100644
index 0000000..340ea42
--- /dev/null
+++ b/libcli/util/wscript_build
@@ -0,0 +1,58 @@
+#!/usr/bin/env python
+
+
+bld.SAMBA_LIBRARY('samba-errors',
+ 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',
+ public_deps='talloc samba-debug',
+ deps='gnutls',
+ # private_library=True,
+ pc_files=[],
+ vnum='1.0.0',
+ )
+
+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 py_hresult.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_GENERATOR('ntstatus_generated',
+ source='../../source4/scripting/bin/gen_ntstatus.py ntstatus_err_table.txt ../../source4/scripting/bin/gen_error_common.py',
+ 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)}'
+ )
+
+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
+ werror_friendly_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)} ${TGT[3].abspath(env)}'
+ )
+
+bld.SAMBA_PYTHON('python_hresult',
+ source='py_hresult.c',
+ deps='samba-errors',
+ realname='samba/hresult.so'
+ )
+
+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'
+ )