Skip to content

Commit c262db0

Browse files
committed
add cmakelist for esp32
1 parent 811c2d1 commit c262db0

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-char-subscripts -Wno-maybe-uninitialized")
2+
3+
file(GLOB_RECURSE SOURCES *.c)
4+
idf_component_register(
5+
SRCS ${SOURCES}
6+
INCLUDE_DIRS
7+
"pikascript-api"
8+
"pikascript-core"
9+
"pikascript-lib/PikaStdLib"
10+
"pikascript-lib/PikaStdDevice"
11+
"pikascript-lib/ESP32"
12+
"pikascript-lib/pika_libc"
13+
"../../main"
14+
WHOLE_ARCHIVE
15+
REQUIRES
16+
driver
17+
fatfs
18+
esp_wifi
19+
nvs_flash
20+
app_update
21+
esp_http_client
22+
esp_https_ota
23+
)

bsp/esp32/main/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Embed the server root certificate into the final binary
2+
idf_build_get_property(project_dir PROJECT_DIR)
3+
idf_component_register(SRCS "main.c"
4+
INCLUDE_DIRS ".")
5+
# add macro
6+
idf_build_set_property(
7+
COMPILE_DEFINITIONS "-DPIKA_CONFIG_ENABLE" APPEND)

0 commit comments

Comments
 (0)