mirror of
https://github.com/QuantumLeaps/qpcpp.git
synced 2025-01-28 06:02:56 +08:00
80d9bcd6fb
Added QP Functional Safety (FuSa) Subsystem Memory Isolation with MPU Added QAsm abstract state machine base class Added memory marker to QEvt and rearranged memory layout Updated: QP-FreeRTOS, QP-ESP-IDF,QP-Zephyr Added drift-free ticking for QP-POSIX Reorganized documentation Updated 3rd_party
70 lines
2.2 KiB
Batchfile
70 lines
2.2 KiB
Batchfile
@echo off
|
|
:: ===========================================================================
|
|
:: Batch script for linting QP/C with PC-Lint-Plus2
|
|
:: Copyright (C) 2005 Quantum Leaps, LLC. All rights reserved.
|
|
::
|
|
:: SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-QL-commercial
|
|
::
|
|
:: This software is dual-licensed under the terms of the open source GNU
|
|
:: General Public License version 3 (or any later version), or alternatively,
|
|
:: under the terms of one of the closed source Quantum Leaps commercial
|
|
:: licenses.
|
|
::
|
|
:: The terms of the open source GNU General Public License version 3
|
|
:: can be found at: <www.gnu.org/licenses/gpl-3.0>
|
|
::
|
|
:: The terms of the closed source Quantum Leaps commercial licenses
|
|
:: can be found at: <www.state-machine.com/licensing>
|
|
::
|
|
:: Redistributions in source code must retain this top-level comment block.
|
|
:: Plagiarizing this software to sidestep the license obligations is illegal.
|
|
::
|
|
:: Contact information:
|
|
:: <www.state-machine.com>
|
|
:: <info@state-machine.com>
|
|
:: ===========================================================================
|
|
@setlocal
|
|
|
|
:: usage of make.bat
|
|
@echo Usage: make [16bit] [-d...]
|
|
@echo examples:
|
|
@echo make -uQ_SPY -uQ_UTEST : use 32bit CPU (default) and undefine Q_SPY/Q_UTEST
|
|
@echo make 16bit -uQ_SPY : use 16bit CPU includes and undefine Q_SPY
|
|
@echo.
|
|
|
|
:: NOTE: adjust to for your installation directory of PC-Lint-Plus
|
|
@set PCLP=C:\tools\lint-plus2\windows\pclp64.exe
|
|
|
|
if NOT exist "%PCLP%" (
|
|
@echo The PC-Lint-Plus toolset not found. Please adjust make.bat
|
|
@goto end
|
|
)
|
|
|
|
:: set the QP/C++ directory
|
|
set QPCPP=..\..
|
|
|
|
if "%1"=="16bit" (
|
|
set LINTFLAGS=-i16bit options.lnt %2 %3 %4
|
|
@echo 16bit CPU
|
|
) else (
|
|
set LINTFLAGS=-i32bit options.lnt %1 %2 %3 %4
|
|
@echo 32bit CPU default
|
|
)
|
|
|
|
:: cleanup
|
|
@del *.log
|
|
|
|
:: linting -------------------------------------------------------------------
|
|
%PCLP% -os(lint_qf.log) std.lnt %LINTFLAGS% -iqv ..\..\src\qf\*.cpp
|
|
|
|
%PCLP% -os(lint_qv.log) std.lnt %LINTFLAGS% -iqv ..\..\src\qv\*.cpp
|
|
|
|
%PCLP% -os(lint_qk.log) std.lnt %LINTFLAGS% -iqk ..\..\src\qk\*.cpp
|
|
|
|
%PCLP% -os(lint_qxk.log) std.lnt %LINTFLAGS% -iqxk ..\..\src\qxk\*.cpp
|
|
|
|
%PCLP% -os(lint_qs.log) std.lnt %LINTFLAGS% -iqv ..\..\src\qs\*.cpp
|
|
|
|
:end
|
|
@endlocal
|