The Wayback Machine - https://web.archive.org/web/20200912142212/https://github.com/arduino-cmake/Arduino-CMake-NG/pull/84
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

Added partial support for generating sketch prototypes #84

Open
wants to merge 23 commits into
base: master
from

Conversation

@MrPointer
Copy link
Member

MrPointer commented Apr 27, 2019

The support is partial due to the fact that complete prototype generation just can't be achieved with CMake - Further discussion can be found at the comments of #32.
Currently, this work redesigns how sketches are converted, but also adds basic prototype generation - Somewhat dumb, as it sometimes generates prototypes even when a matching declaration exists.

As described in #32, this whole conversion process should be done outside the framework, thus it should be developed as an external tool in a better-suited environment, such as Python.

MrPointer added 20 commits Mar 8, 2019
This is part of the sketch conversion process.
This is because the function returns the path to the header file and not just whether is exists or not.
This change also caused separation of the function into a dedicated file
It detects which prototypes need to be generated, based on the def-dec matching ability previously added
Added utility function to escape semicolons in a string and vice-versa
Fixed bug in `list_max_index` utility function
It now fully supports both platform header & prototypes insertion
Fixed small function argument-stripping bug
Uncommented examples other than 'sketch'
@MrPointer MrPointer force-pushed the feature/sketch-func-prototypes branch from 83255b2 to 6e060ab Apr 27, 2019
jeandet and others added 3 commits May 5, 2019
On Linux CMake might find avr-gcc first inside ccache folder which leads to wrong ar/ranlib detection.
On Fedora 30 at least, it leads to link errors because it uses avr-ar/ranlib instead of avr-gcc-ar/ranlib.

Signed-off-by: Alexis Jeandet <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.