From a0982a4d63766282c2c3c013915523c0afd5b37c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 24 Sep 2016 14:37:49 +0100 Subject: Slicer 1.4 compatibility fix --- project2/ice/Jamfile.jam | 4 +++- project2/ice/buildComms.cpp | 9 +++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/project2/ice/Jamfile.jam b/project2/ice/Jamfile.jam index c669980..5d398f4 100644 --- a/project2/ice/Jamfile.jam +++ b/project2/ice/Jamfile.jam @@ -10,7 +10,8 @@ lib IceBox ; lib IceUtil ; lib pthread ; lib boost_filesystem ; -lib slicer : : slicer : : /usr/include/slicer ; +lib slicer : : : : /usr/include/slicer ; +lib slicer-compiler : : : : /usr/include/slicer ; build-project unittests ; @@ -91,6 +92,7 @@ lib p2ice : Ice Slice slicer + slicer-compiler IceUtil boost_filesystem pthread diff --git a/project2/ice/buildComms.cpp b/project2/ice/buildComms.cpp index 49e58c8..0b3aa76 100644 --- a/project2/ice/buildComms.cpp +++ b/project2/ice/buildComms.cpp @@ -24,7 +24,9 @@ BuildComms::Count(const boost::filesystem::path & in) const } if (slicerParts) { - components += Slicer::Slicer::Apply(in, NULL); + Slicer::Slicer s; + s.slicePath = in; + components += s.Execute(); } return components; @@ -48,7 +50,10 @@ BuildComms::Build(const boost::filesystem::path & in, const boost::filesystem::p } if (slicerParts) { - components += Slicer::Slicer::Apply(in, out); + Slicer::Slicer s; + s.slicePath = in; + s.cppPath = out; + components += s.Execute(); } return components; -- cgit v1.2.3