summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slicer/db/Jamfile.jam1
-rw-r--r--slicer/test/Jamfile.jam17
-rw-r--r--slicer/test/slicer.jam17
3 files changed, 19 insertions, 16 deletions
diff --git a/slicer/db/Jamfile.jam b/slicer/db/Jamfile.jam
index 47cf092..8d8b803 100644
--- a/slicer/db/Jamfile.jam
+++ b/slicer/db/Jamfile.jam
@@ -1,5 +1,6 @@
import testing ;
import package ;
+import ../test/slicer.jam ;
lib dbppcore : : : : <include>/usr/include/dbpp ;
lib dbpp-postgresql : : : : <include>/usr/include/dbpp-postgresql ;
diff --git a/slicer/test/Jamfile.jam b/slicer/test/Jamfile.jam
index 45558d3..edb1099 100644
--- a/slicer/test/Jamfile.jam
+++ b/slicer/test/Jamfile.jam
@@ -1,8 +1,5 @@
import testing ;
-import generators ;
-import type ;
-import feature ;
-import toolset ;
+import ./slicer.jam ;
lib dl ;
lib pthread ;
@@ -12,18 +9,6 @@ lib boost_date_time ;
lib boost_utf : : <name>boost_unit_test_framework ;
lib adhocutil : : : : <include>/usr/include/adhocutil ;
-generators.register-standard $(__name__).slicer : SLICE : CPP CPP(slicer-%) H : <slicer>yes ;
-generators.override $(__name__).slicer : slice.slicer ;
-feature.feature slicerbin : : free dependency ;
-toolset.flags slicer SLICERBIN <slicerbin> ;
-toolset.flags slicer INCLUDES <include> ;
-
-actions slicer bind SLICERBIN
-{
- slice2cpp -I"$(INCLUDES)" --checksum --output-dir $(1[1]:D) $(2) --dll-export JAM_DLL_PUBLIC
- "$(SLICERBIN)" -I"$(INCLUDES)" $(2) $(1[2]) --headerPrefix="\"\""
-}
-
lib types :
[ glob *.ice ]
conversions.cpp
diff --git a/slicer/test/slicer.jam b/slicer/test/slicer.jam
new file mode 100644
index 0000000..4d92101
--- /dev/null
+++ b/slicer/test/slicer.jam
@@ -0,0 +1,17 @@
+import generators ;
+import type ;
+import feature ;
+import toolset ;
+
+generators.register-standard $(__name__).slicer : SLICE : CPP CPP(slicer-%) H : <slicer>yes ;
+generators.override $(__name__).slicer : slice.slicer ;
+feature.feature slicerbin : : free dependency ;
+toolset.flags slicer SLICERBIN <slicerbin> ;
+toolset.flags slicer INCLUDES <include> ;
+
+actions slicer bind SLICERBIN
+{
+ slice2cpp -I"$(INCLUDES)" --checksum --output-dir $(1[1]:D) $(2) --dll-export JAM_DLL_PUBLIC
+ "$(SLICERBIN)" -I"$(INCLUDES)" $(2) $(1[2]) --headerPrefix="\"\""
+}
+