Prevent some stuff from being build in virtual builds

Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
pull/640/head
Florian Fleissner 6 years ago committed by Jesse Vincent
parent 8ce353a41c
commit ab6e5b7c2e

@ -16,6 +16,7 @@
*/
#ifdef ARDUINO_AVR_MODEL01
#ifndef KALEIDOSCOPE_VIRTUAL_BUILD
#include <Kaleidoscope.h>
#include <KeyboardioHID.h>
@ -355,3 +356,4 @@ uint8_t Model01::previousPressedKeyswitchCount() {
HARDWARE_IMPLEMENTATION KeyboardHardware;
#endif
#endif

@ -15,6 +15,8 @@
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef KALEIDOSCOPE_VIRTUAL_BUILD
#include <Kaleidoscope-FirmwareDump.h>
#include <Kaleidoscope-FocusSerial.h>
#include <avr/boot.h>
@ -68,3 +70,5 @@ EventHandlerResult FirmwareDump::onFocusEvent(const char *command) {
}
kaleidoscope::plugin::FirmwareDump FirmwareDump;
#endif

@ -17,6 +17,10 @@
#pragma once
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
#error "Firmware Dump is not available for virtual builds"
#else
#include <Kaleidoscope.h>
namespace kaleidoscope {
@ -36,3 +40,5 @@ class FirmwareDump : public kaleidoscope::Plugin {
}
extern kaleidoscope::plugin::FirmwareDump FirmwareDump;
#endif

@ -14,6 +14,8 @@
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef KALEIDOSCOPE_VIRTUAL_BUILD
#if ARDUINO_AVR_MODEL01
#include "Kaleidoscope.h"
@ -172,3 +174,5 @@ void TestMode::run_tests() {
kaleidoscope::plugin::TestMode TestMode;
#endif
#endif

@ -16,6 +16,10 @@
#pragma once
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
#error "Model01 testmode not available for virtual builds"
#else
#ifdef ARDUINO_AVR_MODEL01
#include <Arduino.h>
@ -51,3 +55,5 @@ class TestMode : public kaleidoscope::Plugin {
extern kaleidoscope::plugin::TestMode TestMode;
#endif
#endif

Loading…
Cancel
Save