Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create guide + API for custom targets with source files #48

Closed
multiplemonomials opened this issue Sep 17, 2022 · 2 comments
Closed

Create guide + API for custom targets with source files #48

multiplemonomials opened this issue Sep 17, 2022 · 2 comments
Labels
Task Not a bug per se, just something that needs to be done

Comments

@multiplemonomials
Copy link
Collaborator

Currently, custom target support in Mbed CE is incomplete and we need to finish it out.

There are basically three types of custom targets:

  1. Custom targets with configuration settings only (in custom_targets.json)
  2. Custom targets which add additional source files
  3. Custom targets which add source files and override existing Mbed sources

Currently, the first type is supported properly, and the second type should work (by defining your own CMake target matching the custom target name), but has not been tested yet. However, the third type is not currently possible.

First of all, we need to create a new CMake function, something like

mbed_remove_source_files_from_target()

This will enable the third type of target to be created.

Additionally, we need to create a comprehensive wiki page that explains how to create custom targets. This should cover both how to write the custom_targets.json (this has been a pain point for me in the past!), and how to set up the CMake stuff so that the custom target works.

@multiplemonomials multiplemonomials added the Task Not a bug per se, just something that needs to be done label Sep 17, 2022
@multiplemonomials
Copy link
Collaborator Author

@JohnK1987
Copy link
Member

I added the link of readme of Custom target example into the Wiki Home page

BR, Jan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Task Not a bug per se, just something that needs to be done
Projects
None yet
Development

No branches or pull requests

2 participants