Borrar filtros
Borrar filtros

How can I change SHRLIBTARGET token for a build process to affect shared utilities generation?

1 visualización (últimos 30 días)
Hello,
I try to change build process for a project to affect shared utilities generation. When I set in Configuration parameters-->Code Generation-->Interface-->Shared code placement as "Shared location", i get multiple utility files under .../slprj/_sharedutils folder. Hovewer, this is undesired for next integration steps which requires a lot of manual work to reference generated files. if i set Shared code placement to "auto" then all utilities are generated inside main source file (like model.c), which is also undesirable.
At this point, i realise a token "SHRLIBTARGET" in generated makefile. This token is set to "0" in makefile and i couldn't find a way to generate it as "1".
My questions are;
Q1) is it possible to populate shared utility files in a library file (I realise another token in makefile expanded as SHARED_LIB = ..\slprj\autosar_servicePort\_sharedutils\rtwshared.lib and I guess this will be activated if SHRLIBTARGET = 1 ?) or in a seperate source file other than main source file with SHRLIBTARGET token expanded to "1".
Q2) if the answer to Q1 is "yes", than how can i achieve SHRLIBTARGET = 1 expansion in build process. When i look through internet there are suggestions to modify template makefile, to modify .._make_rtw_hook.m file etc. Hovewer, i couldn't address where to make changes specific to SHRLIBTARGET token. is there any configuration option to set SHRLIBTARGET=1 or where should i modify specifically?
Q3) if answer to Q1 is "no", is there any other way to change build process in a way that shared utilities generated in a single source file other than main source file or in a library?
i should note that my aim is not just to obtain makefile, but actually change the build process such that the objective of populating shared utilities in a single file is achieved. The reason is that actually build artifacts are used in integration step, not the makefile. I also attach the generated makefile
I appreciate and need your help very much. Thanks in advance.
Best Regards, Emre Tekin

Respuestas (0)

Categorías

Más información sobre MATLAB Code Analysis en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by