Up to now, the device header was included by several files via the command This commit introduces a build type selection header kaleidoscope/device/device.h that enables to either directly include the device header or to first include the 'physical' device header and then the 'virtual' device header. This is meant for the virtual device to be able to be defined depending on the properties of the physical device. Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>pull/729/head
parent
0356318fa8
commit
0cce6ed0a8
@ -0,0 +1,23 @@
|
|||||||
|
/* Kaleidoscope - Firmware for computer input devices
|
||||||
|
* Copyright (C) 2013-2019 Keyboard.io, Inc.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify it under
|
||||||
|
* the terms of the GNU General Public License as published by the Free Software
|
||||||
|
* Foundation, version 3.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along with
|
||||||
|
* this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
|
||||||
|
#include "kaleidoscope/device/virtual/Virtual.h"
|
||||||
|
#else
|
||||||
|
#include KALEIDOSCOPE_HARDWARE_H
|
||||||
|
#endif
|
Loading…
Reference in new issue