diff options
author | Volker Lendecke <vl@samba.org> | 2014-09-30 15:08:20 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-10-03 19:55:09 +0200 |
commit | 17c7f454813be526876ac750ceb6fd1422577495 (patch) | |
tree | 55424c1f26bd52aa6f236f0921ffa4c0a2bc1362 /source3/wscript_build | |
parent | a33b445a7d7567b27f5247cb6060edbbeecf4d52 (diff) | |
download | samba-17c7f454813be526876ac750ceb6fd1422577495.tar.gz samba-17c7f454813be526876ac750ceb6fd1422577495.tar.xz samba-17c7f454813be526876ac750ceb6fd1422577495.zip |
profiling: Only compile utils/status_profile.c if profiling is enabled
This conditional compile avoids some #ifdef WITH_PROFILE, which makes the code
more readable
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/wscript_build')
-rwxr-xr-x | source3/wscript_build | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/source3/wscript_build b/source3/wscript_build index 7394a575e3..d3979e8f91 100755 --- a/source3/wscript_build +++ b/source3/wscript_build @@ -1164,10 +1164,15 @@ bld.SAMBA3_BINARY('smbta-util', secrets3 param''') +smbstatus_source = 'utils/status.c smbd/notify_internal.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='''utils/status.c - utils/status_profile.c - smbd/notify_internal.c''', + source=smbstatus_source, deps=''' talloc param |