Toplevel directory cleanup
[senf.git] / tools / _templates / Example.SConscript
diff --git a/tools/_templates/Example.SConscript b/tools/_templates/Example.SConscript
new file mode 100644 (file)
index 0000000..698b41c
--- /dev/null
@@ -0,0 +1,30 @@
+# -*- python -*-
+
+Import('env')
+import SENFSCons
+
+###########################################################################
+
+## Most modules will be built using the auto macros from site_scons/SENFSCons.py 
+## (see below). Arguments are:
+##     env - The construction environment
+##     name - name of target (AutoPacketBundle only)
+##     exclude - Files to exclude from the build
+##     subdirs - Subdirectories to recurse into
+##     doc_extra_sources - Extra source files (images) to build for the documentation
+##
+## If the macros don't do exactly what you want you may either copy the function definition
+## body from site_scons/SENFSCons.py into the SConscript file or add additional targets
+
+## Build a standard library module
+#
+# SENFSCons.AutoRules(env, exclude=[...], subdirs=[...], doc_extra_sources=[...]
+
+## Build a packet bundle
+#
+# SENFSCons.AutoPacketBundle(env, name, exclude=[...], subdirs=[...], doc_extra_sources=[...]
+
+## Build an (additional) executable. Build it as default target (built when calling scons
+## without arguments or with the 'default' argument
+#
+# env.Default(env.Program(name, [ sources...]))