Skip to content

Commit

Permalink
Adding CMake support loboris#68
Browse files Browse the repository at this point in the history
  • Loading branch information
mica-angeli authored and jeremyjh committed Sep 8, 2019
1 parent aa21772 commit acf567a
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -26,6 +26,8 @@ sdkconfig.lobo
BUILD
PBUILD
build/
cmake-build-debug/
.idea/
temp/
local/
*.dis
Expand Down
7 changes: 7 additions & 0 deletions CMakeLists.txt
@@ -0,0 +1,7 @@
# The following lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)

#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --save-temps")
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(tft_demo)
3 changes: 3 additions & 0 deletions components/mkspiffs/CMakeLists.txt
@@ -0,0 +1,3 @@
set(COMPONENT_SRCDIRS "")
set(COMPONENT_ADD_INCLUDEDIRS "")
register_component()
Binary file added components/mkspiffs/src/mkspiffs
Binary file not shown.
3 changes: 3 additions & 0 deletions components/spidriver/CMakeLists.txt
@@ -0,0 +1,3 @@
set(COMPONENT_SRCDIRS ".")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
5 changes: 5 additions & 0 deletions components/spiffs/CMakeLists.txt
@@ -0,0 +1,5 @@
set(COMPONENT_SRCDIRS ".")
set(COMPONENT_ADD_INCLUDEDIRS ".")
#set(COMPONENT_PRIV_INCLUDEDIRS "")
set(COMPONENT_PRIV_REQUIRES spi_flash)
register_component()
3 changes: 3 additions & 0 deletions components/spiffs_image/CMakeLists.txt
@@ -0,0 +1,3 @@
set(COMPONENT_SRCDIRS "")
set(COMPONENT_ADD_INCLUDEDIRS "")
register_component()
4 changes: 4 additions & 0 deletions components/tft/CMakeLists.txt
@@ -0,0 +1,4 @@
set(COMPONENT_SRCDIRS ".")
set(COMPONENT_ADD_INCLUDEDIRS ".")
set(COMPONENT_PRIV_REQUIRES spidriver)
register_component()
3 changes: 3 additions & 0 deletions main/CMakeLists.txt
@@ -0,0 +1,3 @@
set(COMPONENT_SRCDIRS ".")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
8 changes: 4 additions & 4 deletions main/Kconfig.projbuild
@@ -1,9 +1,9 @@
menu "TFT Display DEMO Configuration"

config SPIFFS_BASE_ADDR
hex "SPIFFS Base address"
range 100000 1FFE000
default 180000
int "SPIFFS Base address"
range 1048576 33546240
default 1572864
help
Starting address of the SPIFFS area in ESP32 Flash

Expand Down Expand Up @@ -36,7 +36,7 @@ config EXAMPLE_DISPLAY_TYPE
default EXAMPLE_DISPLAY_TYPE0
help
Select predefined display configuration

config EXAMPLE_DISPLAY_TYPE0
bool "None"
config EXAMPLE_DISPLAY_TYPE1
Expand Down

0 comments on commit acf567a

Please sign in to comment.