diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-01-03 21:41:43 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-01-03 21:41:43 +0000 |
commit | 95fb02ff4a503cf7447c28426f822de61ea6f626 (patch) | |
tree | 4d5671214b1963fd51f23163a4dffe1b55a3ac20 /mythfs/service/Jamfile.jam | |
parent | Compatibility with libdbpp-*-1 (diff) | |
download | mythfs-95fb02ff4a503cf7447c28426f822de61ea6f626.tar.bz2 mythfs-95fb02ff4a503cf7447c28426f822de61ea6f626.tar.xz mythfs-95fb02ff4a503cf7447c28426f822de61ea6f626.zip |
Use icetray tools for SQL embedding
Diffstat (limited to 'mythfs/service/Jamfile.jam')
-rw-r--r-- | mythfs/service/Jamfile.jam | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/mythfs/service/Jamfile.jam b/mythfs/service/Jamfile.jam index aa79386..7dc26cb 100644 --- a/mythfs/service/Jamfile.jam +++ b/mythfs/service/Jamfile.jam @@ -1,5 +1,4 @@ -import generators ; -import type ; +import icetray ; lib mythfs : [ glob *.cpp *.ice sql/*.sql ] @@ -18,29 +17,10 @@ lib mythfs : <library>..//slicer <library>..//slicer-db <library>../..//glibmm + <icetray.sql.namespace>MythFS : : <include>. <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 ; - |