diff --git a/platformio.ini b/platformio.ini index a14faae3e..8d422c75e 100644 --- a/platformio.ini +++ b/platformio.ini @@ -59,6 +59,7 @@ build_cache_dir = .cache extra_configs = platformio_tasmota32.ini platformio_tasmota_env.ini platformio_tasmota_env32.ini + platformio_lib.ini platformio_override.ini default_envs = ${build_envs.default_envs} @@ -123,22 +124,9 @@ build_flags = ${esp_defaults.build_flags} -DPSTR_ALIGN=1 ; restrict to minimal mime-types -DMIMETYPE_MINIMAL - -lib_ignore = Servo(esp8266) - ESP8266AVRISP - ESP8266LLMNR - ESP8266NetBIOS - ESP8266SSDP - ESP8266WiFiMesh - Ethernet(esp8266) - GDBStub - TFT_Touch_Shield_V2 - ESP8266WiFiMesh - EspSoftwareSerial - SPISlave - Hash - - +lib_deps = IRremoteESP8266 +lib_ignore = ${lib_EP8266_default.lib_ignore} + [irremoteesp_full] build_flags = -DUSE_IR_REMOTE_FULL -U_IR_ENABLE_DEFAULT_ diff --git a/platformio_lib.ini b/platformio_lib.ini new file mode 100644 index 000000000..0aa58b43e --- /dev/null +++ b/platformio_lib.ini @@ -0,0 +1,139 @@ +; ******************************************************** +; *** PlatformIO Configuration for Library DISABLING *** +; ******************************************************** + + +[lib_EP8266_default] +lib_ignore = + Servo(esp8266) + ESP8266AVRISP + ESP8266LLMNR + ESP8266NetBIOS + ESP8266SSDP + SP8266WiFiMesh + Ethernet(esp8266) + GDBStub + TFT_Touch_Shield_V2 + ESP8266HTTPUpdateServer + ESP8266WiFiMesh + EspSoftwareSerial + SPISlave + Hash + +[lib_EP8266] +lib_ignore = + ${lib_EP8266_default.lib_ignore} + LittleFS(esp8266) + +[lib_all_EP8266] +lib_ignore = + ${lib_EP8266.lib_ignore} + ${lib_Tasmota.lib_ignore} + ${lib_SSL.lib_ignore} + ${lib_display.lib_ignore} + ${lib_i2c_sensor.lib_ignore} + ${lib_sensor.lib_ignore} + ${lib_rf.lib_ignore} + ${lib_ir.lib_ignore} + ${lib_light.lib_ignore} + ${lib_audio.lib_ignore} + ${lib_serial.lib_ignore} + ${lib_other.lib_ignore} + ${lib_SPI.lib_ignore} + +[lib_Tasmota] +lib_ignore = + NTP Library + base64 + Unishox Compressor Decompressor highly customized and optimized for ESP8266 and Tasmota + ;ESP KNX IP Library + UdpListener + +[lib_SSL] +lib_ignore = + BearSSL + +[lib_display] +lib_ignore = + LinkedList + Adafruit BusIO + Adafruit GFX Library + Arduino ST7789 Library + Adafruit ILI9341 + ILI9488 + RA8876 + Adafruit LED Backpack Library + Waveshare esp 2.9 inch e-paper display driver + LiquidCrystal_I2C + Adafruit SH1106-gemu-1.0 + Adafruit SSD1306 + SSD3115 + I2Cdevlib-Core + +[lib_i2c_sensor] +lib_ignore = + LinkedList + Adafruit BusIO + I2Cdevlib-Core + Adafruit CCS811 Library + Adafruit MAX31865 library + Adafruit MCP9808 Library + Adafruit SGP30 Sensor + Adafruit TSL2591 + Joba Tsl2561 Library + Joba_Tsl2561 + Adafruit VEML7700 Library + MPU6050 I2C + LinkedList + LOLIN_HP303B + Grove - Multichannel Gas Sensor + Mutichannel_Gas_Sensor + OneWire + VL53L0X + VL53L1X + MLX90640 + FrogmoreScd30 + BME680 + FT5206_Library + HPMA115S0 Arduino Library + +[lib_sensor] +lib_ignore = + NewPing + +[lib_rf] +lib_ignore = + rc-switch + RF24 + C2Programmer + KeeloqLib + +[lib_ir] +lib_ignore = + IRremoteESP8266 + +[lib_light] +lib_ignore = + NeoPixelBus + +[lib_audio] +lib_ignore = + ESP8266Audio + ESP8266SAM + +[lib_serial] +lib_ignore = + LibTeleinfo + TasmotaSerial + TasmotaModbus + +[lib_other] +lib_ignore = + OpenTherm Library + A4988_Stepper + EEPROM 24C128 + +[lib_SPI] +lib_ignore = + cc1101 + EEPROM 24C128 \ No newline at end of file diff --git a/platformio_tasmota_env.ini b/platformio_tasmota_env.ini index c28667685..e3ead2b55 100644 --- a/platformio_tasmota_env.ini +++ b/platformio_tasmota_env.ini @@ -21,65 +21,7 @@ lib_ignore = ${common.lib_ignore} [env:tasmota-minimal] build_flags = ${common.build_flags} -DFIRMWARE_MINIMAL -lib_ignore = ${common.lib_ignore} - LittleFS(esp8266) - A4988_Stepper - Adafruit BusIO - Adafruit CCS811 Library - Adafruit GFX Library - Arduino ST7789 Library - Adafruit ILI9341 - ILI9488 - RA8876 - Adafruit LED Backpack Library - Waveshare esp 2.9 inch e-paper display driver - LiquidCrystal_I2C - Adafruit MAX31865 library - Adafruit MCP9808 Library - Adafruit SGP30 Sensor - Adafruit SH1106-gemu-1.0 - Adafruit SSD1306 - Adafruit TSL2591 - Joba Tsl2561 Library - Joba_Tsl2561 - Adafruit VEML7700 Library - SSD3115 - NTP Library - base64 - C2Programmer - ;ESP KNX IP Library - I2Cdevlib-Core - MPU6050 I2C - LibTeleinfo - LinkedList - LOLIN_HP303B - Mutichannel_Gas_Sensor - NewPing - OneWire - OpenTherm Library - rc-switch - RF24 - TasmotaModbus - TasmotaSerial - UdpListener - VL53L0X - VL53L1X - MLX90640 - FrogmoreScd30 - cc1101 - EEPROM 24C128 - BME680 - FrogmoreScd30 - FT5206_Library - HPMA115S0 Arduino Library - Grove - Multichannel Gas Sensor - BearSSL - OneWire - IRremoteESP8266 - ESP8266Audio - ESP8266SAM - KeeloqLib - NeoPixelBus +lib_ignore = ${lib_all_EP8266.lib_ignore} [env:tasmota-lite] build_flags = ${common.build_flags} -DFIRMWARE_LITE