From 88be6e505a74b8e9249b67bc9a83c9b8f0104008 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 21 Jan 2019 21:21:09 +0000 Subject: Refactor jams to fix folder specific build quirks --- slicer/db/Jamfile.jam | 1 + slicer/test/Jamfile.jam | 17 +---------------- slicer/test/slicer.jam | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 16 deletions(-) create mode 100644 slicer/test/slicer.jam 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 : : : : /usr/include/dbpp ; lib dbpp-postgresql : : : : /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 : : boost_unit_test_framework ; lib adhocutil : : : : /usr/include/adhocutil ; -generators.register-standard $(__name__).slicer : SLICE : CPP CPP(slicer-%) H : yes ; -generators.override $(__name__).slicer : slice.slicer ; -feature.feature slicerbin : : free dependency ; -toolset.flags slicer SLICERBIN ; -toolset.flags slicer INCLUDES ; - -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 : yes ; +generators.override $(__name__).slicer : slice.slicer ; +feature.feature slicerbin : : free dependency ; +toolset.flags slicer SLICERBIN ; +toolset.flags slicer INCLUDES ; + +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="\"\"" +} + -- cgit v1.2.3