Skip to content

Commit 11698c3

Browse files
committed
Initial src version of print_deps
1 parent 2911763 commit 11698c3

File tree

4 files changed

+19
-9
lines changed

4 files changed

+19
-9
lines changed

src/Wippersnapper.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,8 @@
127127
#include "display/ws_display_ui_helper.h"
128128
#endif
129129

130-
// Build dependencies
131-
#if defined(PRINT_DEPENDENCIES)
132-
#include "../print_dependencies.h"
133130
#define WS_VERSION \
134-
"1.0.0-beta.89" ///< WipperSnapper app. version (semver-formatted)
135-
#else
136-
#define WS_VERSION \
137-
"1.0.0-beta.90" ///< WipperSnapper app. version (semver-formatted)
138-
#endif
131+
"1.0.0-beta.91" ///< WipperSnapper app. version (semver-formatted)
139132

140133
#include "components/ds18x20/ws_ds18x20.h"
141134
#include "components/pixels/ws_pixels.h"

src/print_dependencies.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include "print_dependencies.h"
2+
3+
const char* project_dependencies = R"(
4+
Libraries and Versions:
5+
** This is a placeholder, you can fill this in automatically by running arduino-cli and copying the output here. **
6+
7+
Platforms and Versions:
8+
** Board Support Package placeholder **
9+
)";

src/print_dependencies.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#ifndef PROJECT_DEPENDENCIES_H
2+
#define PROJECT_DEPENDENCIES_H
3+
4+
#define PRINT_DEPENDENCIES 1
5+
extern const char* project_dependencies;
6+
#endif // PROJECT_DEPENDENCIES_H

src/provisioning/tinyusb/Wippersnapper_FS.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* BSD license, all text here must be included in any redistribution.
1313
*
1414
*/
15+
1516
#if defined(ARDUINO_MAGTAG29_ESP32S2) || defined(ARDUINO_METRO_ESP32S2) || \
1617
defined(ARDUINO_FUNHOUSE_ESP32S2) || \
1718
defined(ADAFRUIT_PYPORTAL_M4_TITANO) || \
@@ -27,6 +28,7 @@
2728
defined(ARDUINO_ADAFRUIT_FEATHER_ESP32S3_REVTFT) || \
2829
defined(ARDUINO_ADAFRUIT_FEATHER_ESP32S2_REVTFT) || \
2930
defined(ARDUINO_ADAFRUIT_QTPY_ESP32S3_N4R2)
31+
#include "print_dependencies.h"
3032
#include "Wippersnapper_FS.h"
3133
// On-board external flash (QSPI or SPI) macros should already
3234
// defined in your board variant if supported
@@ -277,7 +279,7 @@ bool Wippersnapper_FS::createBootFile() {
277279
bootFile.print("MAC Address: ");
278280
bootFile.println(sMAC);
279281

280-
#ifdef PRINT_DEPENDENCIES
282+
#if PRINT_DEPENDENCIES
281283
bootFile.println("Build dependencies:");
282284
bootFile.println(project_dependencies);
283285
#endif

0 commit comments

Comments
 (0)