blob: 676af31de701d097716cffe3d19cc93d464826bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#include <pch.hpp>
#include "buildClient.h"
#include "slice2Task.h"
#include "slice2Rows.h"
BuildClient::BuildClient(const boost::filesystem::path & slice, const IceCompile::Deps & dep) :
SliceCompile(slice, dep)
{
}
void
BuildClient::Headers(FILE * out) const
{
fprintf(out, "#include <iceTask.h>\n");
fprintf(out, "#include <iceRows.h>\n");
}
void
BuildClient::Body(FILE * out, Slice::UnitPtr u) const
{
Slice2Task taskBuilder(out);
Slice2Rows rowsBuilder(out);
u->visit(&taskBuilder, false);
u->visit(&rowsBuilder, false);
}
boost::filesystem::path
BuildClient::OutputName(const std::string & type) const
{
return slice.filename().replace_extension(".client" + type);
}
|