Sfoglia il codice sorgente

esp_netif: Add support for linux target as header only library

David Cermak 4 anni fa
parent
commit
09f10f326a
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. 8 0
      components/esp_netif/CMakeLists.txt

+ 8 - 0
components/esp_netif/CMakeLists.txt

@@ -1,3 +1,11 @@
+idf_build_get_property(target IDF_TARGET)
+
+if(${target} STREQUAL "linux")
+    # Header only library for linux
+    idf_component_register(INCLUDE_DIRS include)
+    return()
+endif()
+
 set(srcs
     "esp_netif_handlers.c"
     "esp_netif_objects.c"