Commit Graph
12 Commits
Author SHA1 Message Date
TD-er c909194f65 [Build] Reduce ESP8266 build size by concat all in single __tmpfile.cpp 2024-05-01 18:43:26 +02:00
TD-er cc7602539f [Build] Fix building ESPEasy in PlatformIO 6.1.7 (#4656)
* [PIO build] Update build scripts for scons 4.5.x

* [Build] Fix build error due to strange cast of double type in rules

* [Build] Work-around for new ESP8266 macro of round()

Whoever thought it would be a good idea to make round() an explicit cast to `long`....

* [Build ESP8266] Replace calls to round()

* [Build] Use HWrandom to overcome build issues

* [Build] Fix missing include

* [Build] Remove extern "C" to allow for (C++) function overloading

* [Build] include ESPEasy_common.h instead of Arduino.h where possible

* [Cleanup] Moving not commonly needed code out of ESPEasy_common.h

* [Build] Remove "Helpers" folder from concat script

* [Build] Include ESPEasy_common.h instead of ESPEasy_config.h

* [Build] Add Helpers folder to concat .cpp for ESP8266

* [Build] Add ESPEasyCore to concat cpp & split global RulesCalculate obj

* [Build test] Disable lots of plugins + not concat Helpers/*.cpp

* [Build test] Disable P037 to test build failures

* [Build test] Undef round right after include <Arduino.h>

* [Build] Revert disabling plugins + concat Helpers/*.cpp

* [Build] Include cmath after Arduino.h to redefine round()

* [Build] Fix ESP32 build error

* [Build] Add ESP32_CLASSIC define for ESP32 IR build
2023-05-10 23:00:33 +02:00
TD-er 651e0b7954 [Build] Fix build of ESP32 max LittleFS build on Windows
In order to be able to build in Windows, we need to concatenate all .cpp files 
in some folders to reduce the number of compiled object files.
This is needed due to the limitation of Windows to have a command line longer than 32767 characters.
The linker command was becoming longer than this maximum.

However the DataStructs folder does have at least one templated .cpp file.
Since you may need to include a .cpp file if it contains a templated class, 
the DataStruct folder could not be concatenated into a single .cpp file.

Therefore the templated class(es) will be stored in a folder postfixed with 
_templ
2022-02-08 12:57:11 +01:00
TD-er 0a68716d96 [ESP32] Allow building LittleFS builds on ESP32
Still cannot build it on Windows.
2022-02-08 12:50:09 +01:00
TD-er ee9a903141 [Build] Concat Globals .cpp files to help building in Windows 2021-10-20 23:44:26 +02:00
TD-er e28da82cbc [Build] Fix build on Windows for ESP32 Max LittleFS builds
Needed to add another folder to concatenate .cpp files to allow linking to work again after upgrade of the IR library.
2021-10-20 22:34:50 +02:00
TD-er e65e3ca8e0 [PIO] Only update tmp files when changed to reduce build time 2021-02-11 17:23:17 +01:00
TD-er 3341bdf744 [PIO] Concatenate all WebServer/*.cpp files into temp file.
And add some build output formatting
2020-12-02 13:49:49 +01:00
TD-er f146969060 [PIO] Separate appended .cpp files with newline
And add #ifdef USES_Cxxx checks for queue element code.
2020-12-02 13:18:25 +01:00
TD-er 60dbd74342 [PIO] Add Commands/*.cpp to the files to be concatenated in single .cpp 2020-12-01 17:27:29 +01:00
TD-er 35f43cd382 [PIO] Concat *.cpp files in ControllerQueue/ and PluginStructs/ 2020-12-01 17:05:39 +01:00
TD-er b525c70c04 [PIO] Concatenate .cpp files to prevent linking errors 2020-12-01 16:15:02 +01:00