mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	Added support for ESP-IDF component build (closes #1562)
This commit is contained in:
		| @@ -13,6 +13,7 @@ HEAD | |||||||
| * Fixed warning `definition of implicit copy constructor for 'MsgPackDeserializer' is deprecated because it has a user-declared copy assignment operator` | * Fixed warning `definition of implicit copy constructor for 'MsgPackDeserializer' is deprecated because it has a user-declared copy assignment operator` | ||||||
| * Added `JsonArray::clear()` (issue #1597) | * Added `JsonArray::clear()` (issue #1597) | ||||||
| * Fixed `JsonVariant::as<unsigned>()` (issue #1601) | * Fixed `JsonVariant::as<unsigned>()` (issue #1601) | ||||||
|  | * Added support for ESP-IDF component build (PR #1562 by @qt1) | ||||||
|  |  | ||||||
| v6.18.0 (2021-05-05) | v6.18.0 (2021-05-05) | ||||||
| ------- | ------- | ||||||
|   | |||||||
| @@ -4,6 +4,13 @@ | |||||||
|  |  | ||||||
| cmake_minimum_required(VERSION 3.3) | cmake_minimum_required(VERSION 3.3) | ||||||
|  |  | ||||||
|  | if(ESP_PLATFORM) | ||||||
|  |    # Build ArduinoJson as an ESP-IDF component | ||||||
|  |    idf_component_register(INCLUDE_DIRS src) | ||||||
|  |    target_compile_definitions(${COMPONENT_LIB} INTERFACE ARDUINOJSON_EMBEDDED_MODE=1) | ||||||
|  |    return() | ||||||
|  | endif() | ||||||
|  |  | ||||||
| project(ArduinoJson VERSION 6.18.0) | project(ArduinoJson VERSION 6.18.0) | ||||||
|  |  | ||||||
| if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) | if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user