Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/build-arduino-emulator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ jobs:
- name: Clone AsyncTCP, Arduino FS headers, lwIP and lwIP contrib
run: |
git clone --depth 1 https://github.com/MitchBradley/PosixAsyncTCP .ci/asynctcp
git clone --depth 1 --branch "3.3.8" https://github.com/espressif/arduino-esp32.git .ci/arduino-esp32

- name: Build with Arduino-Emulator
run: |
Expand Down
5 changes: 2 additions & 3 deletions examples/arduino_emulator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,24 @@ project(espasyncwebserver_host_compile LANGUAGES C CXX)

add_subdirectory(${CMAKE_SOURCE_DIR}/../../.ci/arduino-emulator ${CMAKE_BINARY_DIR}/arduino-emulator)
file(GLOB WEB_SRC "${CMAKE_SOURCE_DIR}/../../src/*.cpp")
list(APPEND WEB_SRC "${CMAKE_SOURCE_DIR}/FS.cpp")
add_library(espasyncwebserver STATIC ${WEB_SRC})
add_library(test STATIC
${CMAKE_SOURCE_DIR}/../../.ci/asynctcp/src/AsyncTCP.cpp
${CMAKE_SOURCE_DIR}/../../.ci/arduino-esp32/libraries/FS/src/FS.cpp
${CMAKE_SOURCE_DIR}/../../.ci/arduino-emulator/ArduinoCore-Linux/cores/arduino/libb64/cencode.c
)

target_compile_definitions(espasyncwebserver PUBLIC HOST ARDUINO=10813)
target_include_directories(espasyncwebserver PUBLIC
${CMAKE_SOURCE_DIR}/../../src
${CMAKE_SOURCE_DIR}/../../.ci/asynctcp/src
${CMAKE_SOURCE_DIR}/../../.ci/arduino-esp32/libraries/FS/src
${CMAKE_SOURCE_DIR}/.
)
target_link_libraries(espasyncwebserver PUBLIC arduino_emulator)

target_compile_definitions(test PUBLIC HOST ARDUINO=10813)
target_include_directories(test PUBLIC
${CMAKE_SOURCE_DIR}/../../.ci/asynctcp/src
${CMAKE_SOURCE_DIR}/../../.ci/arduino-esp32/libraries/FS/src
)
target_link_libraries(test PUBLIC arduino_emulator)

Expand Down
Loading
Loading