Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
dcb007a4
Commit
dcb007a4
authored
Nov 27, 2018
by
me-no-dev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not skip main.cpp when checking CMakeLists
parent
bec6f872
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
tools/check_cmakelists.sh
tools/check_cmakelists.sh
+2
-1
No files found.
tools/check_cmakelists.sh
View file @
dcb007a4
...
...
@@ -11,7 +11,8 @@ set -e
cd
"
`
dirname
$0
`
/.."
# cd to arduino-esp32 root
# find all source files in repo
REPO_SRCS
=
`
find cores/esp32/ libraries/
-name
'examples'
-prune
-o
-name
'main.cpp'
-prune
-o
-name
'*.c'
-print
-o
-name
'*.cpp'
-print
|
sort
`
#REPO_SRCS=`find cores/esp32/ libraries/ -name 'examples' -prune -o -name 'main.cpp' -prune -o -name '*.c' -print -o -name '*.cpp' -print | sort`
REPO_SRCS
=
`
find cores/esp32/ libraries/
-name
'examples'
-prune
-o
-name
'*.c'
-print
-o
-name
'*.cpp'
-print
|
sort
`
# find all source files named in CMakeLists.txt COMPONENT_SRCS
CMAKE_SRCS
=
`
cmake
--trace-expand
-C
CMakeLists.txt 2>&1 |
grep
COMPONENT_SRCS |
sed
's/.\+COMPONENT_SRCS //'
|
sed
's/ )//'
|
tr
' ;'
'\n'
|
sort
`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment