summaryrefslogtreecommitdiff
path: root/mythfs/service/Jamfile.jam
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-24 04:58:10 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-24 04:58:10 +0000
commitdc9963e3d6519f6d1118e8e06e3a28e90bf80c91 (patch)
treeee282227211bdea2abc4837115d3b22b1cfd49d7 /mythfs/service/Jamfile.jam
parentInitial WIP commit of MythFS (diff)
downloadmythfs-dc9963e3d6519f6d1118e8e06e3a28e90bf80c91.tar.bz2
mythfs-dc9963e3d6519f6d1118e8e06e3a28e90bf80c91.tar.xz
mythfs-dc9963e3d6519f6d1118e8e06e3a28e90bf80c91.zip
Add service and models for reading from database
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 ;
+