Files
OPTA_CardController_mbed/platformio.ini
Martijn Scheepers 83ae59e180 AADP to lib
2025-11-13 09:13:12 +01:00

151 lines
3.6 KiB
INI

; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:opta_sdn_debug]
platform = ststm32
board = opta_sdn
framework = mbed
platform_packages =
;framework-mbed @ https://github.com/PA4WD/mbed-os.git#platformio
;framework-mbed @ https://github.com/PA4WD/mbed-os.git#Opta_Only
framework-mbed @ symlink://D:\Platform-IO_Projecten\OPTA_CardController_mbed\framework-mbed
toolchain-gccarmnoneeabi @ 1.140201.0
;toolchain-gccarmnoneeabi @ 1.120301.0
;toolchain-gccarmnoneeabi @ 1.100301.220327
;toolchain-gccarmnoneeabi @ 1.90301.200702
upload_protocol = dfu
build_type = debug
test_ignore =
test_desktop
test_embedded
extra_scripts =
post:create_firmware_package.py
build_unflags =
;-std=gnu++14
build_flags =
-I$PROJECT_SRC_DIR/Target_opta
-I$PROJECT_SRC_DIR/webserver
-I$PROJECT_SRC_DIR/network
-I$PROJECT_INCLUDE_DIR/Target_opta
-I$PROJECT_INCLUDE_DIR/webserver
-I$PROJECT_INCLUDE_DIR/AADP
-I$PROJECT_INCLUDE_DIR/network
;mbed-os/tools/profiles/debug.json
-DMBED_BUILD_PROFILE_DEBUG
-Wall
-Wpedantic
-Wextra
-Og
;-std=gnu++23
;-std=c++23
;-fanalyzer
;-nostdlib
;-ffreestanding
;-nostartfiles
;-nolibc
-Wl,-Map,debug.map
!python git_rev_macro.py
lib_deps =
bblanchon/ArduinoJson@^7.4.1
DTC
AADP
check_tool = cppcheck, clangtidy
check_flags =
;clangtidy: --checks=-*,cert-*,clang-analyzer-*,bugprone-*,modernize-*,performance-*,portability-*,readability-*,cppcoreguidelines-*,hicpp-*
cppcheck: --enable=all
cppcheck: --suppress=*:*.pio\*
check_src_filters =
+<include/>
+<src/>
+<framework-mbed/>
-<lib/*>
-<lib/ArduinoJson/>
-<ArduinoJson/*>
[env:opta_sdn_release]
platform = ststm32
board = opta_sdn
framework = mbed
platform_packages =
;framework-mbed @ https://github.com/PA4WD/mbed-os.git#platformio
;framework-mbed @ https://github.com/PA4WD/mbed-os.git#Opta_Only
framework-mbed @ symlink://D:\Platform-IO_Projecten\OPTA_CardController_mbed\framework-mbed
toolchain-gccarmnoneeabi @ 1.140201.0
;toolchain-gccarmnoneeabi @ 1.120301.0
;toolchain-gccarmnoneeabi @ 1.100301.220327
;toolchain-gccarmnoneeabi @ 1.90301.200702
upload_protocol = dfu
build_type = release
test_ignore =
test_desktop
test_embedded
extra_scripts =
post:create_firmware_package.py
build_unflags =
;-std=gnu++14
build_flags =
-I$PROJECT_SRC_DIR/Target_opta
-I$PROJECT_SRC_DIR/webserver
-I$PROJECT_SRC_DIR/network
-I$PROJECT_INCLUDE_DIR/Target_opta
-I$PROJECT_INCLUDE_DIR/webserver
-I$PROJECT_INCLUDE_DIR/AADP
-I$PROJECT_INCLUDE_DIR/network
;mbed-os/tools/profiles/debug.json
-DMBED_BUILD_PROFILE_RELEASE
-Wall
;-Wpedantic
-O3
;-std=c++23
; -nostdlib
;-ffreestanding
; -nostartfiles
;-nolibc
!python git_rev_macro.py
lib_deps = bblanchon/ArduinoJson@^7.4.1
[env:test_AADP]
platform = native
test_filter =
test_AADP/test_dataTypes
test_AADP/test_pduStructures
test_ignore = test_embedded
build_flags =
-std=c++23
build_unflags =
-std=gnu++14
lib_deps =
[env:test_reader]
platform = native
test_filter =
test_reader/test_SDNreader
test_reader/test_MF700
test_reader/test_Aperio
test_ignore = test_embedded
build_flags =
-std=c++23
-Wall
build_unflags =
-std=gnu++14
lib_deps =
[env:test_Aperio]
platform = native
test_filter =
test_Aperio/test_DTC
test_ignore = test_embedded
test_framework = googletest
build_flags =
-std=gnu++23
-Wall
; build_unflags =
; -std=gnu++14
lib_deps =