Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Conversation

@MrPointer
Copy link
Member

@MrPointer MrPointer commented Sep 26, 2018

This feature required the core find-lib process to change as such:

Instead of searching for the properties file to determine whether a library is found or not, its' root directory is searched instead.

Due to latest refactoring changes, the add_arduino_library also handles finding the properties file itself, so all the find_arduino_library function does now is gather the required sources and headers.

An example of a library without a properties file has also been added, testing against the Skywriter library.

This PR also fixed a potential bug where the utility sub-dir hasn't been searched for libraries that conform to the 1.0 standard, which is against what specified in the Arduino specs.

At last, it's now also possible to find libraries under cmake's source directory and project directory.
The libraries and dependencies sub-directories are also searched under each general search path.
The source directory is the directory from which the CMakeLists.txt file is executed.

Fixes #28

… directory.

This is enough to determine whether the library exists and adds support for libraries that don't specify the properties file.
The properties file is found later in the `add_arduino_library` function.
Added an example for a properties-less library named 'Skywriter'.
…ary` function.

It's no longer used as the function automatically finds this file itself.
…ths.

It also can search the 'libraries' and 'dependencies' sub-dirs.
…aders.

This is relevant for libraries conforming to the 1.0 standard, where there's no 'src' sub-dir. The specs say that besides the root dir, 'utility' sub-dir should be part of the search as well.
@MrPointer MrPointer merged commit cbfebf9 into develop Sep 26, 2018
@MrPointer MrPointer deleted the feature/find-lib-alternative branch October 5, 2018 11:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants