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

[TerkinData] Build native/POSIX targets using PlatformIO #75

Merged
merged 5 commits into from
Jun 1, 2023

Conversation

amotl
Copy link
Member

@amotl amotl commented May 31, 2023

Introduction

In the libraries folder, we are incubating a few components for toying purposes. On TerkinData C++, we still used custom Makefile-/Bash-based build scripts for compiling the example programs using GCC or Clang, in order to invoke them natively for the sake of testing and polyglotting.

Improvements

  1. Following up on Dissolve Makefile-based build tooling. Move on to PlatformIO. Thanks for all the fish! #58, the Makefile-/Bash-based build scripts have now also been dissolved on this spot, and the example programs will also use PlatformIO instead, building upon its "native" platform target 1.

  2. In the spirit of Add CI configuration for most popular firmwares, and fix PlatformIO build recipes #49, TerkinData now also gained a dedicated CI target on the GHA configuration.

Appreciations

This is really excellent. 💯

Footnotes

  1. https://docs.platformio.org/en/latest/platforms/native.html

amotl added 3 commits May 31, 2023 23:01
Following recent improvements, this patch dissolves previous Makefile-
based build tooling also for native platform targets.

The functional Makefile-based entrypoints are still there, but now they
will divert to `pio run -t exec` right away.

  make csv
  make json
  make urlencoded
Fixes compilation on Linux.

__unix__ is defined on Linux, while __APPLE__ is defined on macOS [1].
In the default configuration, we don't want to specialize for any of
both.

It is probably a leftover from where we explored simulating RadioHead-
based code.

[1] https://www.airspayce.com/mikem/arduino/RadioHead/RadioHead_8h_source.html
@amotl amotl changed the title [TerkinData] Build and run using PlatformIO, for POSIX / native builds [TerkinData] Build native/POSIX targets using PlatformIO May 31, 2023
@amotl amotl marked this pull request as ready for review June 1, 2023 10:42
@amotl amotl merged commit b346903 into main Jun 1, 2023
@amotl amotl deleted the amo/terkindata-platformio-native branch June 1, 2023 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant