Home Help Center

How to use generatecs with multi-level ice folder structure...

mboozellmboozell Member Matthew BoozellOrganization: Breakwater Capital, LLCProject: In house software
Hi,

I am attempting to use ice (for C#), and I have not been able to understand how to use generatecs.exe with an ice folder structure that is layered. In other words, I have an ice file "base.ice", then I have folders child1, child2, etc... Inside the childn folders, I have childn.ice files, that reference base.ice. They use the folder structure to find it in C++, but it is not obvious to me how to use generatecs.exe to accomplish the same.

Any help will be appreciated.

Thank you.

Comments

  • michimichi Member Michi HenningOrganization: Triodia TechnologiesProject: I have a passing interest in Ice :-) ✭✭✭
    generatecs is a poor-man's make replacement. I added this in desperation, after I found out that Visual Studio for C# was incapable of using custom build steps that invoke an external compiler. generatecs makes assumptions about the layout of the Ice source tree and is not meant to be used for general-purpose application development.

    If you want to compile Ice applications that use complex directory structures and also have a dependency on .ice files so they get rebuilt automatically, I suggest you use make rules directly that state that generated .cs file depends on the corresponding .ice file.

    Or you could look at the source for generatecs and modify it to suit your needs.

    Cheers,

    Michi.
  • rdilipkrdilipk Member Dilip RanganathanOrganization: 3MProject: None ✭✭
    Shouldn't MSBuild (MSBuild Reference) take care of your problem these days?
  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    No, we use a much better system ;) nmake/make.
  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    maybe a cmake module can help to do this CMake Cross Platform Make.
    I studying it for my new project.
  • rdilipkrdilipk Member Dilip RanganathanOrganization: 3MProject: None ✭✭
    Matthew

    You are probably right. MSBuild is fairly new and unproven. I was just responding to a particular quote of Michi's. In the future, at least for building .NET applications, MSBuild seems to be the way to go.
    michi wrote: »
    generatecs is a poor-man's make replacement. I added this in desperation, after I found out that Visual Studio for C# was incapable of using custom build steps that invoke an external compiler.

    Take a look at this: Exec Task
Sign In or Register to comment.