Skip to content

Commit

Permalink
chore: simplification of environments
Browse files Browse the repository at this point in the history
  • Loading branch information
arcadien committed Nov 1, 2023
1 parent 6706bb9 commit 64aad8c
Showing 1 changed file with 24 additions and 46 deletions.
70 changes: 24 additions & 46 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
;lib_compat_mode=off
lib_ldf_mode=chain

lib_deps =
fakeit=https://github.com/FabioBatSilva/ArduinoFake.git
#upload_protocol=custom
#upload_flags =
# -Pusb
Expand All @@ -29,62 +31,38 @@ upload_command = avrdude -vv -pm328p -c avrisp -P/dev/ttyS0 $UPLOAD_FLAGS -U fla
# '-b115200'

[env:native]
lib_deps =
lib_deps =
${env.lib_deps}
fakeit=https://github.com/FabioBatSilva/ArduinoFake.git
platform=native
build_type = release
test_ignore = cross/*
build_flags = -DNATIVE
debug_test = noarch/test_gun
build_src_filter = ${env.src_filter} -<TargetApp.cpp> -<GunApp.cpp>

[env:native_debug]
lib_deps = ${env.lib_deps}
fakeit=https://github.com/FabioBatSilva/ArduinoFake.git
platform=native
build_type = debug
debug_build_flags = -Og -ggdb3 -g3 -DNATIVE -UAVR
test_ignore = cross/*
debug_test = noarch/test_gun
build_flags =
-DNATIVE
-std=gnu++17
-Og -ggdb3
debug_test = native/test_Target
build_src_filter = ${env.src_filter} -<TargetApp.cpp> -<GunApp.cpp>

# [env:native_debug]
# lib_deps =
# ${env.lib_deps}
# platform=native
# build_type = debug
# debug_build_flags = -Og -ggdb3 -g3 -DNATIVE -UAVR
# test_ignore = cross/*
# debug_test = noarch/test_gun
# build_src_filter = ${env.src_filter} -<TargetApp.cpp> -<GunApp.cpp>

[env:cross]
lib_deps = ${env.lib_deps}
lib_deps =
${env.lib_deps}
test_framework = unity
platform = atmelavr
framework = arduino
board = ATmega328P
build_type = release
test_ignore = native/*
build_flags = -O0
build_src_filter = ${env.src_filter} -<ConsoleTargets.cpp>

[env:target]
lib_deps =
${env.lib_deps}
SerialCommands
framework = arduino
platform = atmelavr
board = ATmega328P
board_build.mcu = atmega328p
board_build.f_cpu = 16000000L
build_type = release
build_flags = -DAVR
test_ignore =
native/*
build_src_filter = ${env.src_filter} -<GunApp.cpp> -<ConsoleTargets.cpp>

[env:gun]
lib_deps =
framework = arduino
platform = atmelavr
board = ATmega328P
board_build.mcu = atmega328p
board_build.f_cpu = 16000000L
build_type = release
build_flags = -DAVR
test_ignore =
native/*
noarch/*
build_src_filter = ${env.src_filter} -<TargetApp.cpp> -<ConsoleTargets.cpp>
build_flags =
-Os
-std=gnu++17
build_src_filter = ${env.src_filter} -<ConsoleTargets.cpp>

0 comments on commit 64aad8c

Please sign in to comment.