[Mono-list] Build to intermediate file?
Thu, 25 Jul 2002 10:32:44 -0400
Is it possible to build a C# file to some sort of intermediate
format which can linked into a final module, like the traditional
.c -> .o -> .so path? I'm trying to integrate C# into an existing
C++ project, and I'm having some trouble getting the build scripts
to work properly. I could treat the whole C# build as a link step,
but if no files get built, then the link step never gets run.
I'm currently working around this by making my "build" step a
simply 'cp source.cs $(OBJ_DIR)/source.cs', and then build
with 'monomcs -o $@ $(OBJ_DIR)/*.cs', seems to work okay but
it would be nice if I could accomplish something useful, like
parsing or something, during that build step.
BTW, this is to support MS Visual Studio 6. I have an existing
C++ project which includes build scripts for a number of toolsets,
including VS6, which I'd like keep supporting.