In Headless mode, how we can pass some environment variables or defines to use it inside the S32 design studio ?
Background: We'd need to create different variant of build while building in the integration pipeline and the same variable need to be accessed by the developer for variant handling with in the code. (duplicating configuration inside S32DS is not preferable).
Thanks in advance.
Hi,
Could you help us elaborate more on regards of "how we can pass some environment variables or defines to use it inside the S32 design studio"?
There is an option under:
In which the defines are provided. Also, there is a section under the "Help Contents" on regards of setting environment variables:
Don't know if this information was helpful or not.
Please, let us know.
Hi @Daniel-Aguirre , Thanks for the feedback. Below options are fine when using in IDE. we want to pass an extra argument during Headless mode while launching.
For e.g;
build.bat (which defines the variant e.g., ProductVariant1) --> Launch S32DS and access ProductVarinat1 in terms of preprocessor directives.
Hi,
Thanks for your feedback. We don't seem to see any information on this regard. Just to be clear, you cannot create different projects for different variants, is this correct? i.e. you have a project for Var1 and another for Var 2, once you execute the build.bat you can choose either use the project for Var1 and Var2.
Still, we will verify if there might be something of use under S32DS.
Please, let us know.
We do not want to create multiple project and maintain different set of build setting (compiler, linker, build variable).
Since between VAR1 & VAR2 only small subset of application changes are required.
Maintaining, different project configuration brings lot of maintenance effort.
We've tried passing additional defines as per Ecilpse CDT but it does not work with S32DS.
If you please check & provide any suggestion it will be helpful.
Hi,
We apologize for the delay.
For the information that has been shared with us, it seems that this is a bug under S32DS. We are still looking for a clear confirmation on this topic.
Also, an idea came to our mind, can you modify the makefile that is used for building the project? Something like shown below:
Where you could modify your makefile prior to building the project, and maybe with the use of flags some defines are added to the build.
Again, we apologize for the delay on this topic.
Please, let us know.
Hi,
We apologize for the delay. It seems to be confirmed that this is a bug under S32DS.
We do apologize.
Please, let us know.