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.

Is there any way to build different target in a configuration setting?

Hi,

We are using CCS to build different share library *.so.

As we know, we can using different configuration and build out a corresponding *.so file. It's no problem.

But we want to know if it's possible to build multiple target *.so file in one configuration.

Please let us know the step if yes.

Thanks.

Eric

  • Hi Eric, 

    Could you clarify what would be different about multiple target libraries? e.g. do they different set of source files, different compiler, different target device? 

    Thank you,
    Martin

  • Hi ,

    I have a source file folder. There are 5 files inside for example.

    For one target only, I can build 5 *.so as below by setting different configuration. It's no problem.

    file1 -> file1.so

    file2 -> file2.so

    file3 -> file3.so

    file4 -> file4.so

    file5 -> file5.so.

    But now, I have multiples targets, all of them have same compiler, the difference is only predefine setting.

    Device1, Device2 and etc.

    So, I want to know if there is any way to build 5 *.so files in one configuration.

    Thus, I can have 10 configurations for 10 targets. And all of them have 5 *.so files.

    Thanks.

    Eric

  • Hi Eric,

    The only thing I can think of is to switch to a manual makefile mode, where you'd be able to write your own custom makefile.  You can do that by unchecking the Generate Makefiles automatically checkbox on the project's Properties > Build > Builder tab.

    Thanks,

    Baltasar

  • Hi Eric, 

    Just to clarify, if you go this route then you pretty much need to manage the makefile on your own. You will get some integration with IDE in that build/debug should still work, but updates to makefile itself will need to be done manually. 

    Martin

  • Hi Martin,

    Ok, it seems I need to manage the makefile by myself if I need this work.

    I have no further quesrtion.

    Thanks.

    Eric