Fix .gitignore and CMakeList.txt
This commit is contained in:
parent
3cf387026e
commit
8bc863b648
5 changed files with 2367 additions and 6 deletions
33
.clang-format
Normal file
33
.clang-format
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
BasedOnStyle: LLVM
|
||||||
|
UseTab: Never
|
||||||
|
IndentWidth: 4
|
||||||
|
TabWidth: 4
|
||||||
|
BreakBeforeBraces: Custom
|
||||||
|
AllowShortFunctionsOnASingleLine: InlineOnly
|
||||||
|
AllowShortIfStatementsOnASingleLine: false
|
||||||
|
AllowShortLambdasOnASingleLine: true
|
||||||
|
AllowAllArgumentsOnNextLine: true
|
||||||
|
IndentCaseLabels: true
|
||||||
|
AccessModifierOffset: -4
|
||||||
|
NamespaceIndentation: All
|
||||||
|
FixNamespaceComments: false
|
||||||
|
PackConstructorInitializers: Never
|
||||||
|
AlignAfterOpenBracket: AlwaysBreak
|
||||||
|
InsertBraces: true
|
||||||
|
BraceWrapping:
|
||||||
|
AfterClass: true # false
|
||||||
|
AfterControlStatement: false
|
||||||
|
AfterEnum: true # false
|
||||||
|
AfterFunction: true # false
|
||||||
|
AfterNamespace: true # false
|
||||||
|
AfterObjCDeclaration: true # false
|
||||||
|
AfterStruct: true # false
|
||||||
|
AfterUnion: true # false
|
||||||
|
AfterExternBlock: false
|
||||||
|
BeforeCatch: false
|
||||||
|
BeforeElse: false
|
||||||
|
IndentBraces: false
|
||||||
|
SplitEmptyFunction: true
|
||||||
|
SplitEmptyRecord: true
|
||||||
|
SplitEmptyNamespace: true
|
||||||
|
ColumnLimit: 140
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,4 +1,5 @@
|
||||||
.devcontainer
|
.devcontainer
|
||||||
.vscode
|
.vscode
|
||||||
|
.cache
|
||||||
build
|
build
|
||||||
sdkconfig
|
sdkconfig.old
|
31
.pre-commit-config.yaml
Normal file
31
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# See https://pre-commit.com for more information
|
||||||
|
# See https://pre-commit.com/hooks.html for more hooks
|
||||||
|
exclude: '(?x)^(
|
||||||
|
libs/.* |
|
||||||
|
hardware/.* |
|
||||||
|
.*\.md |
|
||||||
|
managed_components/.*
|
||||||
|
)$'
|
||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v4.5.0
|
||||||
|
hooks:
|
||||||
|
- id: check-added-large-files # prevents giant files from being committed.
|
||||||
|
- id: check-case-conflict # checks for files that would conflict in case-insensitive filesystems.
|
||||||
|
- id: check-merge-conflict # checks for files that contain merge conflict strings.
|
||||||
|
- id: check-yaml # checks yaml files for parseable syntax.
|
||||||
|
- id: detect-private-key # detects the presence of private keys.
|
||||||
|
- id: end-of-file-fixer # ensures that a file is either empty, or ends with one newline.
|
||||||
|
- id: fix-byte-order-marker # removes utf-8 byte order marker.
|
||||||
|
- id: mixed-line-ending # replaces or checks mixed line ending.
|
||||||
|
- id: requirements-txt-fixer # sorts entries in requirements.txt.
|
||||||
|
- id: trailing-whitespace # trims trailing whitespace.
|
||||||
|
|
||||||
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
||||||
|
rev: v17.0.6
|
||||||
|
hooks:
|
||||||
|
- id: clang-format
|
||||||
|
- repo: https://github.com/psf/black
|
||||||
|
rev: 24.10.0
|
||||||
|
hooks:
|
||||||
|
- id: black
|
|
@ -1,10 +1,13 @@
|
||||||
# The following five lines of boilerplate have to be in your project's
|
# The following five lines of boilerplate have to be in your project's
|
||||||
# CMakeLists in this exact order for cmake to work correctly
|
# CMakeLists in this exact order for cmake to work correctly
|
||||||
cmake_minimum_required(VERSION 3.16)
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.5)
|
cmake_minimum_required(VERSION 3.5)
|
||||||
|
|
||||||
set(EXTRA_COMPONENT_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/../components)
|
|
||||||
|
|
||||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||||
project(opentherm)
|
project(opentherm)
|
||||||
|
|
||||||
|
find_program(CCACHE_FOUND ccache)
|
||||||
|
if(CCACHE_FOUND)
|
||||||
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
|
||||||
|
else()
|
||||||
|
message(WARNING "CCache not found, install it to speedup compiletime")
|
||||||
|
endif()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue