Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login

    Post build event settings on windows and mac

    Cinema 4D SDK
    c++ windows macos
    2
    3
    425
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      BruceC
      last edited by

      Hi,
      Could you please share how to customize the post build events for MSVC and XCode solution files generated by project tool?
      Is there a setting in project tool to do this? Otherwise, which file and where in frameworks/settings can be modified to achieve this?

      Thanks!

      ferdinandF 1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand @BruceC
        last edited by ferdinand

        Hello @BruceC,

        Thank you for reaching out to us. There are as far as I know no options to add custom build events with the public project tool.

        For the source processor there are the sourceprocessor.buildevent files which contain the XML for the source processor build event. But for Xcode there is no equivalent and I doubt that you can extend this for VS in a manner that you can add your own event files, I would assume that the source processor event is hardcoded.

        When you really have to customize your projects in this manner, you have two options:

        1. Do it manually every time (not great, I know).
        2. Write yourself a wrapper around the source processor which fiddles with its output once it is done. So you run your wrapper which then runs the PT and after that pokes around in the project files to add your events.

        While 2. can probably be done reasonably fast with some knowledge about VS and Xcode project files, I would point out that the days of the source processor (at least in this form) are counted. I cannot give any ETAs here, but I would avoid putting time into custom project tool solutions, when you are not uncomfortable with this work-time becoming obsolete in a year or so. For me this would be three days. I could probably write "something" in that time, not sure though if it would be good enough for production, as these "tools" tend to cost more time than one plans for 😉 .

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 0
        • B
          BruceC
          last edited by

          Thank you, @ferdinand

          1 Reply Last reply Reply Quote 0
          • First post
            Last post