build: teach samba_pild.py about the --com-header and --dcom-proxy options
authorAndrew Tridgell <tridge@samba.org>
Wed, 17 Mar 2010 11:17:15 +0000 (22:17 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:26:52 +0000 (20:26 +1000)
buildtools/wafsamba/samba_pidl.py
librpc/idl/wscript_build
source4/lib/com/wscript_build

index b7839bc0ca2cc19b72533963e11e3659810dfd1d..6e47686105f45bf92ed2878df8934d261a2ed990 100644 (file)
@@ -29,6 +29,8 @@ def SAMBA_PIDL(bld, pname, source,
                     '--client'            : 'ndr_%s_c.c ndr_%s_c.h',
                     '--python'            : 'py_%s.c',
                     '--tdr-parser'        : 'tdr_%s.c tdr_%s.h',
+                    '--dcom-proxy'       : '%s_p.c',
+                    '--com-header'       : 'com_%s.h'
                     }
 
     table_header_idx = None
@@ -53,12 +55,13 @@ def SAMBA_PIDL(bld, pname, source,
 
     # the cd .. is needed because pidl currently is sensitive to the directory it is run in
     t = bld(rule='cd .. && ${PIDL} ${OPTIONS} --outputdir ${OUTPUTDIR} -- ${SRC[0].abspath(env)}',
-            ext_out = '.c',
-            before  = 'cc',
-            shell   = True,
-            source  = source,
-            target  = out_files,
-            name    = name)
+            ext_out    = '.c',
+            before     = 'cc',
+            shell      = True,
+            source     = source,
+            target     = out_files,
+            name       = name,
+            samba_type = 'PIDL')
 
     # prime the list of nodes we are dependent on with the cached pidl sources
     t.allnodes = pidl_src_nodes
index 9937af1a5ba4f8f726da49fdd288d978e33a413f..ab0971068be570a8e76b839204dd6952e925d00f 100644 (file)
@@ -6,9 +6,9 @@
 # object files) in ../gen_ndr in the source tree, but still allow waf to be
 # happy about all the build files appearing in the expected location in bin/default
 bld.SAMBA_PIDL_LIST('PIDL',
-                    '''atsvc.idl dcom.idl drsuapi.idl epmapper.idl initshutdown.idl
+                    '''atsvc.idl drsuapi.idl epmapper.idl initshutdown.idl
                        misc.idl ntlmssp.idl protected_storage.idl schannel.idl trkwks.idl
-                       wmi.idl audiosrv.idl dfsblobs.idl dsbackup.idl eventlog.idl keysvc.idl
+                       audiosrv.idl dfsblobs.idl dsbackup.idl eventlog.idl keysvc.idl
                        msgsvc.idl ntsvcs.idl remact.idl security.idl unixinfo.idl wzcsvc.idl
                        browser.idl dfs.idl dssetup.idl frsapi.idl krb5pac.idl
                        named_pipe_auth.idl orpc.idl rot.idl spoolss.idl w32time.idl xattr.idl
@@ -16,6 +16,12 @@ bld.SAMBA_PIDL_LIST('PIDL',
                        oxidresolver.idl samr.idl srvsvc.idl winreg.idl dcerpc.idl
                        drsblobs.idl efs.idl frstrans.idl mgmt.idl netlogon.idl
                        policyagent.idl scerpc.idl svcctl.idl wkssvc.idl''',
+                    options='--header --ndr-parser --samba3-ndr-server --samba3-ndr-client --server --client --python',
+                    output_dir='../gen_ndr',
+                    symlink=True)
+
+bld.SAMBA_PIDL_LIST('PIDL',
+                    'wmi.idl dcom.idl',
                     options='--header --ndr-parser --samba3-ndr-server --samba3-ndr-client --server --client --python --dcom-proxy --com-header',
                     output_dir='../gen_ndr',
                     symlink=True)
index 60ab5378ec08beb14f5033d7a59669e6a849995b..d836904c1664a4e932faf1e1d0ae5fc39b15a9c4 100644 (file)
@@ -1,6 +1,6 @@
 bld.SAMBA_SUBSYSTEM('COM',
        source='tables.c rot.c main.c',
-       deps='LIBSAMBA-UTIL LIBSAMBA-HOSTCONFIG LIBEVENTS LIBNDR'
+       deps='LIBSAMBA-UTIL LIBSAMBA-HOSTCONFIG LIBEVENTS LIBNDR PIDL_DCOM'
        )