build: add README to explain gen_ndr, and ensure directory exists
authorAndrew Tridgell <tridge@samba.org>
Fri, 5 Mar 2010 23:49:21 +0000 (10:49 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:26:40 +0000 (20:26 +1000)
buildtools/wafsamba/samba_patterns.py
librpc/gen_ndr/README [new file with mode: 0644]
source4/heimdal_build/wscript_build
source4/librpc/gen_ndr/README [new file with mode: 0644]

index f70689558669c51ffe99d775676145d0f01d226a..ca19d8d09aaf070e95eafcb1977c66b8a8ba460d 100644 (file)
@@ -24,11 +24,17 @@ def process_et(self, node):
 
 
 
+# this was my (awful) attempt at a ASN1 rule, i plan on moving it to samba_asn1.py,
+# like I did for the PIDL rules, and conver to a make-like rule
 
 ################################################################################
 # a asn1 task which calls out to asn1_compile_wrapper.sh to do the work
 Task.simple_task_type('asn1',
                      '''
+# this is the rule for now - ie. an embedded shell script!! like
+# I showed you previously, the ASN1 compiler generates weird names,
+# we need to fix the names, and add config.h header
+
 # shell script to convert ASN1 to C. This could be separated out if we want to
 set -e
 compiler=${TGT[0].compiler}
diff --git a/librpc/gen_ndr/README b/librpc/gen_ndr/README
new file mode 100644 (file)
index 0000000..0c1fd16
--- /dev/null
@@ -0,0 +1 @@
+This contains the generated files from PIDL for the IDL files in ../idl/*.idl
index faea19195eb04ccb248960ae8fc4622f0f7545cf..a29a38b643f6224e947038dcf6cc4b2a3163cdee 100644 (file)
@@ -62,7 +62,14 @@ bld(rule="${PYTHON} ${SRC[0].abspath()} ${SRC[2].abspath()} ${SRC[2].parent.absp
     name = 'HEIMDAL_MAP_TABLE'
 )
 
-
+# look at the example below - the output dir is lib/gssapi, the source asn1 file is lib/gssapi/spnego/spnego.asn1
+# well ... hmm, it depens if any heimdal C file uses a #include that depends on the path. We can try a different location
+# but I'm guessing it will break the heimdal C files
+# too hard to use a different output dir from input?
+# the restriction is we can't modify the existing C source of heimdal.
+# ok, symlink hacks to solve? it should be similar to the gen_ndr hackery of PIDL
+# as that is also a different out dir from input file
+# ok, but is it OK for PIDL? pidl is putting output in ../gen_ndr/ndr_$NAME.[ch] etc
 bld.SAMBA_ASN1('HEIMDAL_SPNEGO_ASN1',
        '../heimdal/lib/gssapi/spnego/spnego.asn1',
        options='--sequence=MechTypeList',
diff --git a/source4/librpc/gen_ndr/README b/source4/librpc/gen_ndr/README
new file mode 100644 (file)
index 0000000..0c1fd16
--- /dev/null
@@ -0,0 +1 @@
+This contains the generated files from PIDL for the IDL files in ../idl/*.idl