Skip to content

Commit

Permalink
Add Curl to project so start dev on some HomeAssistant API
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewColvin committed Aug 10, 2024
1 parent bd202ca commit b243110
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build-simulator-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
mingw-w64-x86_64-gcc
mingw-w64-x86_64-SDL2
mingw-w64-x86_64-python
mingw-w64-x86_64-curl
python3-pip
- uses: actions/checkout@v3

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-simulator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
- name: Install SDL2
run : sudo apt-get update && sudo apt-get install -y libsdl2-dev

- name: Install cURL
run : sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev

- name: Build PlatformIO Project 64 bit sim
working-directory: ./Platformio
run: pio run --environment x64_sim
9 changes: 8 additions & 1 deletion Platformio/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ build_flags =
-I OmoteUI/UIs/BasicRefactored/screen
-I OmoteUI/UIs/BasicRefactored/page
-I OmoteUI/UIs/BasicRefactored/widget
-I OmoteUI/UIs/Matts
-I HAL
-I HAL/HardwareModules

lib_deps =
;lvgl/lvgl@^8.3.9
lvgl=https://github.com/lvgl/lvgl/archive/refs/tags/v8.3.9.zip

lib_archive = false
build_src_filter =
+<../OmoteUI/*>
Expand Down Expand Up @@ -85,6 +86,7 @@ lib_deps =
SPI
Keypad
Preferences
anto/libcurl-esp32
build_flags =
${env.build_flags}
-D OMOTE_ESP32
Expand All @@ -109,6 +111,10 @@ build_flags =
-D LV_TICK_CUSTOM_INCLUDE="\"Arduino.h\""
-D LV_TICK_CUSTOM_SYS_TIME_EXPR="'(millis())'"

; --------------- libcurl-esp32 Defines -----------------------------
-D BUILDING_LIBCURL
-D DHAVE_CONFIG_H

; ------------- Includes --------------------------------------------
-I HAL/Targets/ESP32
-I HAL/Targets/ESP32/battery
Expand Down Expand Up @@ -136,6 +142,7 @@ build_flags =
;-D LV_LOG_PRINTF=1
-lSDL2 ; SDL2 must be installed on system! Windows:msys2 ubuntu:apt-get
-lpthread ; std::thread for Linux
-lcurl
; --------- SDL drivers options -----------------------------
-D LV_LVGL_H_INCLUDE_SIMPLE
-D LV_DRV_NO_CONF
Expand Down

0 comments on commit b243110

Please sign in to comment.