s3:rpc_server: factor out rpc_mdssvc_sources
authorRalph Boehme <slow@samba.org>
Wed, 13 Mar 2019 14:42:51 +0000 (15:42 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 8 Aug 2019 20:24:31 +0000 (20:24 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_server/wscript_build

index 3dec6ee3f5b0914f2fa0f695733e550d87181079..f6ae0add80f1714386a1ddb2e04001399ff85818 100644 (file)
@@ -138,17 +138,21 @@ bld.SAMBA3_SUBSYSTEM('RPC_WKSSVC',
                     ../../librpc/gen_ndr/srv_wkssvc.c''',
                     deps='LIBNET')
 
+rpc_mdssvc_sources = '''
+                     mdssvc/mdssvc.c
+                     mdssvc/dalloc.c
+                     mdssvc/marshalling.c
+                     mdssvc/sparql_mapping.c
+                     mdssvc/sparql_parser.y
+                     mdssvc/sparql_lexer.l
+                     mdssvc/srv_mdssvc_nt.c
+                     ../../librpc/gen_ndr/srv_mdssvc.c
+                     '''
+
 bld.SAMBA3_MODULE('rpc_mdssvc_module',
                   subsystem='rpc',
                   allow_undefined_symbols=True,
-                  source='''mdssvc/mdssvc.c
-                  mdssvc/dalloc.c
-                  mdssvc/marshalling.c
-                  mdssvc/sparql_mapping.c
-                  mdssvc/sparql_parser.y
-                  mdssvc/sparql_lexer.l
-                  mdssvc/srv_mdssvc_nt.c
-                  ../../librpc/gen_ndr/srv_mdssvc.c''',
+                  source=rpc_mdssvc_sources,
                   init_function='',
                   deps='samba-util tevent-glib-glue ' + bld.env['libtracker'],
                   internal_module=bld.SAMBA3_IS_STATIC_MODULE('rpc_mdssvc_module'),