Redistribute headers required by code generated with Simulink Coder

I'm currently working on an open source Simulink toolbox [1]. By exploiting a TLC file it has has the support of inlining the developed Level-2 C S-Functions in order to support Simulink Coder code generation.
I noticed that the automatically generated sources are not completely standalone. They actually depend to headers located into the Matlab system folders (extern/ simulink/ rtw/) containing mainly defines and typedefs.
One of our aim is to deploy the generated code to the target platform, and be able to compile them from a machine without Matlab. Only these few headers are missing, there's no need to link any of Matlab's library.
Would it be possible to redistribute the headers stored in such folders? Considering this is an open source project, also these headers would be publicly available.
[1] https://github.com/robotology/wb-toolbox/

2 Comments

The first two headers that come in my mind are included from the generated rtwtypes.h:
#include "tmwtypes.h"
#include "simstruc_types.h"
There files are respectively in the extern/ and simulink/ folders.
If I enable APIs for parameters / signals from Simulink Coder settings, the code will depend also from headers located in rtw/.

Sign in to comment.

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Products

Release

R2017b

Asked:

on 1 Jun 2018

Edited:

on 1 Jun 2018

Community Treasure Hunt

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

Start Hunting!