Generate device.h to avoid cmake problem with computed includes.

epan/build/cmake
Eric Paniagua 4 years ago
parent f5e69ea2d9
commit 978097bb42

@ -10,6 +10,13 @@ target_include_directories(bitfields
${KALEIDOSCOPE_SRC} ${KALEIDOSCOPE_SRC}
"${VIRTUAL_ROOT}/cores/arduino" ) "${VIRTUAL_ROOT}/cores/arduino" )
set(KALEIDOSCOPE_HARDWARE_H "Kaleidoscope-Hardware-Model01.h")
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/device/device.h.in"
"${CMAKE_CURRENT_SOURCE_DIR}/device/device.h"
@ONLY)
add_library(hooks hooks.cpp) add_library(hooks hooks.cpp)
target_include_directories(hooks target_include_directories(hooks
PRIVATE PRIVATE

@ -14,10 +14,14 @@
* this program. If not, see <http://www.gnu.org/licenses/>. * this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*
* DO NOT EDIT: This file has been generated during the build process.
*/
#pragma once #pragma once
#include "Kaleidoscope-Hardware-Model01.h"
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD #ifdef KALEIDOSCOPE_VIRTUAL_BUILD
#include "kaleidoscope/device/virtual/Virtual.h" #include "kaleidoscope/device/virtual/Virtual.h"
#else
#include KALEIDOSCOPE_HARDWARE_H
#endif #endif

@ -0,0 +1,27 @@
/* 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/>.
*/
/*
* DO NOT EDIT: This file has been generated during the build process.
*/
#pragma once
#include "@KALEIDOSCOPE_HARDWARE_H@"
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
#include "kaleidoscope/device/virtual/Virtual.h"
#endif

@ -19,8 +19,6 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD #ifdef KALEIDOSCOPE_VIRTUAL_BUILD
#include KALEIDOSCOPE_HARDWARE_H
#include "kaleidoscope/driver/bootloader/None.h" #include "kaleidoscope/driver/bootloader/None.h"
#include "kaleidoscope/driver/led/Base.h" #include "kaleidoscope/driver/led/Base.h"

Loading…
Cancel
Save