mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
Makefile fix scan-build path (#8091)
This commit is contained in:
12
Makefile
12
Makefile
@@ -293,7 +293,7 @@ format:
|
|||||||
|
|
||||||
# Testing
|
# Testing
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
.PHONY: tests tests_coverage coveralls_upload codecov_upload
|
.PHONY: tests tests_coverage
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
$(MAKE) --no-print-directory posix_sitl_default test_results
|
$(MAKE) --no-print-directory posix_sitl_default test_results
|
||||||
@@ -301,14 +301,6 @@ tests:
|
|||||||
tests_coverage:
|
tests_coverage:
|
||||||
@$(MAKE) --no-print-directory posix_sitl_default test_coverage_genhtml PX4_CMAKE_BUILD_TYPE=Coverage
|
@$(MAKE) --no-print-directory posix_sitl_default test_coverage_genhtml PX4_CMAKE_BUILD_TYPE=Coverage
|
||||||
|
|
||||||
coveralls_upload:
|
|
||||||
@cpp-coveralls --include src/ \
|
|
||||||
--exclude=src/lib/DriverFramework \
|
|
||||||
--exclude=src/lib/ecl \
|
|
||||||
--exclude=src/lib/Matrix \
|
|
||||||
--exclude=src/modules/uavcan/libuavcan \
|
|
||||||
--root . --build-root build/posix_sitl_default/ --follow-symlinks
|
|
||||||
|
|
||||||
# static analyzers (scan-build, clang-tidy, cppcheck)
|
# static analyzers (scan-build, clang-tidy, cppcheck)
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
.PHONY: posix_sitl_default-clang scan-build clang-tidy clang-tidy-fix clang-tidy-quiet cppcheck check_stack
|
.PHONY: posix_sitl_default-clang scan-build clang-tidy clang-tidy-fix clang-tidy-quiet cppcheck check_stack
|
||||||
@@ -322,7 +314,7 @@ scan-build:
|
|||||||
@export CCC_CC=clang
|
@export CCC_CC=clang
|
||||||
@export CCC_CXX=clang++
|
@export CCC_CXX=clang++
|
||||||
@mkdir -p $(SRC_DIR)/build/posix_sitl_default-scan-build
|
@mkdir -p $(SRC_DIR)/build/posix_sitl_default-scan-build
|
||||||
@cd $(SRC_DIR)/build/posix_sitl_default-scan-build && scan-build cmake .. -GNinja -DCONFIG=posix_sitl_default
|
@cd $(SRC_DIR)/build/posix_sitl_default-scan-build && scan-build cmake $(SRC_DIR) -GNinja -DCONFIG=posix_sitl_default
|
||||||
@scan-build -o $(SRC_DIR)/build/scan-build cmake --build $(SRC_DIR)/build/posix_sitl_default-scan-build
|
@scan-build -o $(SRC_DIR)/build/scan-build cmake --build $(SRC_DIR)/build/posix_sitl_default-scan-build
|
||||||
|
|
||||||
clang-tidy: posix_sitl_default-clang
|
clang-tidy: posix_sitl_default-clang
|
||||||
|
|||||||
Reference in New Issue
Block a user