From d970e84348460c0345a43d736fece36851255ef2 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 11 Apr 2019 11:36:56 +0200 Subject: [PATCH] build: Move smbstatus definition to source3/utils/wscript_build Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/utils/wscript_build | 19 +++++++++++++++++++ source3/wscript_build | 19 ------------------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/source3/utils/wscript_build b/source3/utils/wscript_build index b254073358c..414d3f91f2e 100644 --- a/source3/utils/wscript_build +++ b/source3/utils/wscript_build @@ -283,3 +283,22 @@ bld.SAMBA3_BINARY('destroy_netlogon_creds_cli', NETLOGON_CREDS_CLI ''', install=False) + +smbstatus_source = 'status.c ../smbd/notify_msg.c' + +if bld.CONFIG_GET("WITH_PROFILE"): + smbstatus_source += ' status_profile.c' +else: + smbstatus_source += ' status_profile_dummy.c' + +bld.SAMBA3_BINARY('smbstatus', + source=smbstatus_source, + deps=''' + talloc + smbconf + popt_samba3 + cmdline_contexts + smbd_base + LOCKING + PROFILE + ''') diff --git a/source3/wscript_build b/source3/wscript_build index a8c0fac513a..75b1422ca08 100644 --- a/source3/wscript_build +++ b/source3/wscript_build @@ -1144,25 +1144,6 @@ bld.SAMBA3_BINARY('locktest2', ''', install=False) -smbstatus_source = 'utils/status.c smbd/notify_msg.c' - -if bld.CONFIG_GET("WITH_PROFILE"): - smbstatus_source += ' utils/status_profile.c' -else: - smbstatus_source += ' utils/status_profile_dummy.c' - -bld.SAMBA3_BINARY('smbstatus', - source=smbstatus_source, - deps=''' - talloc - smbconf - popt_samba3 - cmdline_contexts - smbd_base - LOCKING - PROFILE - ''') - bld.SAMBA3_BINARY('smbtorture' + bld.env.suffix3, source=''' torture/torture.c -- 2.11.4.GIT