aboutsummaryrefslogtreecommitdiff
path: root/platformio.ini
diff options
context:
space:
mode:
Diffstat (limited to 'platformio.ini')
-rw-r--r--platformio.ini20
1 files changed, 20 insertions, 0 deletions
diff --git a/platformio.ini b/platformio.ini
new file mode 100644
index 0000000..4fa5c0f
--- /dev/null
+++ b/platformio.ini
@@ -0,0 +1,20 @@
+; Copyright (c) 2022 Johannes Stoelp
+
+; Build embedded target.
+[env:nodemcuv2]
+platform = espressif8266
+board = nodemcuv2
+framework = arduino
+build_flags = -Wextra
+; Ignore tests in test/native for this target.
+test_ignore = native
+
+; Build host native target.
+[env:native]
+platform = native
+targets = test
+lib_deps = google/googletest@^1.10.0
+build_flags = -lpthread -lgtest_main
+; Turn off compat mode.
+; https://community.platformio.org/t/googletest-problem-with-compilation-process/12048/12
+lib_compat_mode = off