summaryrefslogtreecommitdiff
path: root/slice.jam
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2014-06-02 10:38:29 +0000
committerrandomdan <randomdan@localhost>2014-06-02 10:38:29 +0000
commit19856ec407c28598d2607acd3209c3122eba4b28 (patch)
treebfb34d628b64e177b6ec19b3feb82ddb6080cbd0 /slice.jam
parentAdd handler for PostgreSQL dates (with no times) (diff)
downloadlibdbpp-postgresql-19856ec407c28598d2607acd3209c3122eba4b28.tar.bz2
libdbpp-postgresql-19856ec407c28598d2607acd3209c3122eba4b28.tar.xz
libdbpp-postgresql-19856ec407c28598d2607acd3209c3122eba4b28.zip
Split out ICE support from project jam file, add support for slicer
Diffstat (limited to 'slice.jam')
-rw-r--r--slice.jam39
1 files changed, 39 insertions, 0 deletions
diff --git a/slice.jam b/slice.jam
new file mode 100644
index 0000000..5c7fc83
--- /dev/null
+++ b/slice.jam
@@ -0,0 +1,39 @@
+import type : register ;
+import generators : register-standard ;
+import type ;
+import feature : feature ;
+import scanner ;
+
+type.register SLICE : ice ;
+
+feature slicer : no yes : propagated ;
+
+class slice-scanner : common-scanner
+{
+ rule pattern ( )
+ {
+ return "^[ \t]*#[ \t]*include[ ]*[<\"]([^>\"]*)[>\"]" ;
+ }
+}
+
+scanner.register slice-scanner : include ;
+
+type.set-scanner SLICE : slice-scanner ;
+
+generators.register-standard slice.slice2cpp : SLICE : CPP H : <slicer>no ;
+generators.register-standard slice.slicer : SLICE : CPP H : <slicer>yes ;
+
+actions slice.slice2cpp
+{
+ slice2cpp --checksum --output-dir $(1[1]:D) $(2)
+}
+
+actions slice.slicer
+{
+ slice2cpp --checksum --output-dir $(1[1]:D) $(2)
+ slicer $(2) $(1[1])
+}
+
+IMPORT $(__name__) : slice.slice2cpp : : slice.slice2cpp ;
+IMPORT $(__name__) : slice.slicer : : slice.slicer ;
+