Skip to content

Commit acf567a

Browse files
mica-angelijeremyjh
authored andcommitted
Adding CMake support loboris#68
1 parent aa21772 commit acf567a

File tree

10 files changed

+34
-4
lines changed

10 files changed

+34
-4
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ sdkconfig.lobo
2626
BUILD
2727
PBUILD
2828
build/
29+
cmake-build-debug/
30+
.idea/
2931
temp/
3032
local/
3133
*.dis

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# The following lines of boilerplate have to be in your project's
2+
# CMakeLists in this exact order for cmake to work correctly
3+
cmake_minimum_required(VERSION 3.5)
4+
5+
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --save-temps")
6+
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
7+
project(tft_demo)

components/mkspiffs/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
set(COMPONENT_SRCDIRS "")
2+
set(COMPONENT_ADD_INCLUDEDIRS "")
3+
register_component()

components/mkspiffs/src/mkspiffs

135 KB
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
set(COMPONENT_SRCDIRS ".")
2+
set(COMPONENT_ADD_INCLUDEDIRS ".")
3+
register_component()

components/spiffs/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
set(COMPONENT_SRCDIRS ".")
2+
set(COMPONENT_ADD_INCLUDEDIRS ".")
3+
#set(COMPONENT_PRIV_INCLUDEDIRS "")
4+
set(COMPONENT_PRIV_REQUIRES spi_flash)
5+
register_component()
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
set(COMPONENT_SRCDIRS "")
2+
set(COMPONENT_ADD_INCLUDEDIRS "")
3+
register_component()

components/tft/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
set(COMPONENT_SRCDIRS ".")
2+
set(COMPONENT_ADD_INCLUDEDIRS ".")
3+
set(COMPONENT_PRIV_REQUIRES spidriver)
4+
register_component()

main/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
set(COMPONENT_SRCDIRS ".")
2+
set(COMPONENT_ADD_INCLUDEDIRS ".")
3+
register_component()

main/Kconfig.projbuild

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
menu "TFT Display DEMO Configuration"
22

33
config SPIFFS_BASE_ADDR
4-
hex "SPIFFS Base address"
5-
range 100000 1FFE000
6-
default 180000
4+
int "SPIFFS Base address"
5+
range 1048576 33546240
6+
default 1572864
77
help
88
Starting address of the SPIFFS area in ESP32 Flash
99

@@ -36,7 +36,7 @@ config EXAMPLE_DISPLAY_TYPE
3636
default EXAMPLE_DISPLAY_TYPE0
3737
help
3838
Select predefined display configuration
39-
39+
4040
config EXAMPLE_DISPLAY_TYPE0
4141
bool "None"
4242
config EXAMPLE_DISPLAY_TYPE1

0 commit comments

Comments
 (0)