summaryrefslogtreecommitdiffstats
path: root/source3/wscript_build
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-09-30 15:08:20 +0000
committerJeremy Allison <jra@samba.org>2014-10-03 19:55:09 +0200
commitc7c300f9710f1f207b9fa0274648ba2dc11c1ffd (patch)
treedc26dcb5d0331fd2cec85d00edd605133109024d /source3/wscript_build
parent17c7f454813be526876ac750ceb6fd1422577495 (diff)
downloadsamba-c7c300f9710f1f207b9fa0274648ba2dc11c1ffd.tar.gz
samba-c7c300f9710f1f207b9fa0274648ba2dc11c1ffd.tar.xz
samba-c7c300f9710f1f207b9fa0274648ba2dc11c1ffd.zip
profiling: Only compile profile/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-xsource3/wscript_build11
1 files changed, 8 insertions, 3 deletions
diff --git a/source3/wscript_build b/source3/wscript_build
index d3979e8f91..54ba3a7488 100755
--- a/source3/wscript_build
+++ b/source3/wscript_build
@@ -638,9 +638,14 @@ bld.SAMBA3_SUBSYSTEM('LOCKING',
NDR_OPEN_FILES
FNAME_UTIL''')
-bld.SAMBA3_SUBSYSTEM('PROFILE',
- source='profile/profile.c',
- deps='samba-util')
+if bld.CONFIG_GET("WITH_PROFILE"):
+ bld.SAMBA3_SUBSYSTEM('PROFILE',
+ source='profile/profile.c',
+ deps='samba-util')
+else:
+ bld.SAMBA3_SUBSYSTEM('PROFILE',
+ source='profile/profile_dummy.c',
+ deps='')
bld.SAMBA3_SUBSYSTEM('PRINTBASE',
source='''printing/notify.c printing/printing_db.c''',