-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Arduino libraries concept refactored to support external Arduino subm…
…odule
- Loading branch information
Showing
10 changed files
with
143 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
file(GLOB ARDUINO_OTA_LIB_SRC | ||
${ARDUINO_ESP8266_DIR}/libraries/ArduinoOTA/*.cpp | ||
) | ||
|
||
add_library(esp8266arduino_ota STATIC | ||
${ARDUINO_OTA_LIB_SRC} | ||
) | ||
|
||
target_include_directories(esp8266arduino_ota PUBLIC | ||
${ARDUINO_ESP8266_DIR}/libraries/ArduinoOTA | ||
) | ||
|
||
target_link_libraries(esp8266arduino_ota PUBLIC | ||
arduino | ||
esp8266wifi | ||
esp8266mdns | ||
) | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
add_subdirectory(ArduinoOTA) | ||
add_subdirectory(ESP8266WiFi) | ||
add_subdirectory(ESP8266WebServer) | ||
add_subdirectory(ESP8266mDNS) | ||
add_subdirectory(GDBStub) | ||
add_subdirectory(SPI) | ||
add_subdirectory(Wire) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
file(GLOB WEBSERVER_LIB_SRC | ||
${ARDUINO_ESP8266_DIR}/${ARDUINO_ESP8266_VERSION}/libraries/ESP8266WebServer/src/*.cpp | ||
${ARDUINO_ESP8266_DIR}/libraries/ESP8266WebServer/src/*.cpp | ||
) | ||
|
||
add_library(esp8266webserver STATIC | ||
${WEBSERVER_LIB_SRC} | ||
) | ||
|
||
target_include_directories(esp8266webserver PUBLIC | ||
${ARDUINO_ESP8266_DIR}/${ARDUINO_ESP8266_VERSION}/libraries/ESP8266WebServer/src | ||
${ARDUINO_ESP8266_DIR}/libraries/ESP8266WebServer/src | ||
) | ||
|
||
target_link_libraries(esp8266webserver PUBLIC | ||
arduino | ||
esp8266wifi | ||
) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
file(GLOB MDNS_LIB_SRC | ||
${ARDUINO_ESP8266_DIR}/libraries/ESP8266mDNS/*.cpp | ||
) | ||
|
||
add_library(esp8266mdns STATIC | ||
${MDNS_LIB_SRC} | ||
) | ||
|
||
target_include_directories(esp8266mdns PUBLIC | ||
${ARDUINO_ESP8266_DIR}/libraries/ESP8266mDNS | ||
) | ||
|
||
target_link_libraries(esp8266mdns PUBLIC | ||
arduino | ||
esp8266wifi | ||
) | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
file(GLOB GDBSTUB_LIB_SRC | ||
${ARDUINO_ESP8266_DIR}/libraries/GDBStub/src/internal/*.c | ||
${ARDUINO_ESP8266_DIR}/libraries/GDBStub/src/internal/*.S | ||
) | ||
|
||
add_library(esp8266gdbstub STATIC | ||
${GDBSTUB_LIB_SRC} | ||
) | ||
|
||
target_include_directories(esp8266gdbstub PUBLIC | ||
${ARDUINO_ESP8266_DIR}/libraries/GDBStub/src | ||
${ARDUINO_ESP8266_DIR}/libraries/GDBStub/src/internal | ||
${ARDUINO_ESP8266_DIR}/libraries/GDBStub/src/xtensa | ||
${ARDUINO_ESP8266_DIR}/libraries/GDBStub/src/xtensa/config | ||
) | ||
|
||
target_link_libraries(esp8266gdbstub PUBLIC | ||
arduino | ||
) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
file(GLOB SPI_LIB_SRC | ||
${ARDUINO_ESP8266_DIR}/libraries/SPI/*.cpp | ||
) | ||
|
||
add_library(esp8266spi STATIC | ||
${SPI_LIB_SRC} | ||
) | ||
|
||
target_include_directories(esp8266spi PUBLIC | ||
${ARDUINO_ESP8266_DIR}/libraries/SPI | ||
) | ||
|
||
target_link_libraries(esp8266spi PUBLIC | ||
arduino | ||
) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
file(GLOB WIRE_LIB_SRC | ||
${ARDUINO_ESP8266_DIR}/libraries/Wire/*.cpp | ||
) | ||
|
||
add_library(esp8266wire STATIC | ||
${WIRE_LIB_SRC} | ||
) | ||
|
||
target_include_directories(esp8266wire PUBLIC | ||
${ARDUINO_ESP8266_DIR}/libraries/Wire | ||
) | ||
|
||
target_link_libraries(esp8266wire PUBLIC | ||
arduino | ||
) | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters