diff options
Diffstat (limited to 'project2/ice/buildShared.cpp')
-rw-r--r-- | project2/ice/buildShared.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/project2/ice/buildShared.cpp b/project2/ice/buildShared.cpp new file mode 100644 index 0000000..61450c8 --- /dev/null +++ b/project2/ice/buildShared.cpp @@ -0,0 +1,30 @@ +#include <pch.hpp> +#include "buildShared.h" +#include "slice2Type.h" + +BuildShared::BuildShared(const boost::filesystem::path & slice, const IceCompile::Deps & dep) : + SliceCompile(slice, dep) +{ +} + +void +BuildShared::Headers(FILE * out) const +{ + fprintf(out, "#include <iceConvert.h>\n"); +} + +void +BuildShared::Body(FILE * out, Slice::UnitPtr u) const +{ + Slice2Type typeBuilder(out); + u->visit(&typeBuilder, false); +} + +boost::filesystem::path +BuildShared::OutputName(const std::string & type) const +{ + return slice.filename().replace_extension(".shared" + type); +} + + + |