summaryrefslogtreecommitdiff
path: root/mythfs/service/Jamfile.jam
diff options
context:
space:
mode:
Diffstat (limited to 'mythfs/service/Jamfile.jam')
-rw-r--r--mythfs/service/Jamfile.jam29
1 files changed, 28 insertions, 1 deletions
diff --git a/mythfs/service/Jamfile.jam b/mythfs/service/Jamfile.jam
index 25225f9..aa79386 100644
--- a/mythfs/service/Jamfile.jam
+++ b/mythfs/service/Jamfile.jam
@@ -1,15 +1,21 @@
+import generators ;
+import type ;
+
lib mythfs :
- [ glob *.cpp ]
+ [ glob *.cpp *.ice sql/*.sql ]
:
+ <slicer>yes
<library>..//netfsComms
<library>..//adhocutil
<library>..//dbppcore
<library>..//boost_system
+ <library>..//boost_date_time
<library>..//Ice
<library>..//IceBox
<library>..//IceUtil
<library>..//pthread
<library>..//icetray
+ <library>..//slicer
<library>..//slicer-db
<library>../..//glibmm
: :
@@ -17,3 +23,24 @@ lib mythfs :
<library>..//netfsComms
<library>..//icetray
;
+
+path-constant root : . ;
+type.register SQL : sql ;
+type.register HEX : hex ;
+generators.register-standard sql.embed.hex : SQL : HEX ;
+generators.register-standard sql.embed : HEX : CPP H ;
+
+actions sql.embed
+{
+ m4 -DNAME="$(2[1]:B)" "$(root)/embed.h.m4" > "$(1[2])"
+ m4 -DNAME="$(2[1]:B)" "$(root)/embed.cpp.m4" > "$(1[1])"
+}
+
+actions sql.embed.hex
+{
+ xxd -i "$(2)" - | grep , > "$(1[1])"
+}
+
+IMPORT $(__name__) : sql.embed : : sql.embed ;
+IMPORT $(__name__) : sql.embed.hex : : sql.embed.hex ;
+