This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to build a CCS project using only the Code Generation Tools?

Hi

I want to build our CCS 5.1 projects on our continuous integration server.  I assume that it should be possible to build the projects outside of the IDE using only the code generation tools i.e. without CCS installed.  Is there a wiki article that explains how to do this please?

David

  • David,

    There isn't a specific wiki article that I know of, but you can certainly use the codegen tools for building code outside of CCS.

    You can invoke the compiler via command line and build using either a batch file (that is run on command prompt) or using makefiles (build using a make utility such as gmake).
    The Compiler Users Guide describes the usage and options supported. In addition the Assembly Language Tools Users Guide will also help in understanding the options supported by the linker. The Users Guides for the different device families can be found here.

  • Hi

    Thanks for your answer. I think that what I need to understand is:

    1) How do I generate a makefile for the project?  Is this done automatically by CCS or must I do it manually?

    2) Is gmake supplied with the CGT?

    David

  • David,

    CCS does automatically generate makefiles for projects created/built in CCS. For reference, you can check out the generated makefiles in the \Debug folder of your project. However if you want to keep your build completely indepedent of CCS (ie with only the codegen tools installed and not full CCS), then you could create your own Makefile. There are many references on the internet on creating makefiles and using gmake, although we don't have any specific documentation.

    gmake is not supplied with the standalone CGT, but there is one supplied with CCS.

  • Thanks for your help.