From 83acc0ffbb200ace4f4131380c58aa10cc53d65f Mon Sep 17 00:00:00 2001 From: yaw-man Date: Sun, 14 Aug 2022 20:57:05 -0300 Subject: [PATCH] =?UTF-8?q?En=20pr=C3=A9parant=20pour=20les=20autres=20API?= =?UTF-8?q?s=20de=20tablette?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/yaw-tab/CMakeLists.txt | 3 +++ src/yaw-tab/rtstylus.cpp | 0 src/yaw-tab/ui.cpp | 5 +++++ 3 files changed, 8 insertions(+) create mode 100644 src/yaw-tab/rtstylus.cpp diff --git a/src/yaw-tab/CMakeLists.txt b/src/yaw-tab/CMakeLists.txt index 1dde9d2..ea7d194 100644 --- a/src/yaw-tab/CMakeLists.txt +++ b/src/yaw-tab/CMakeLists.txt @@ -5,9 +5,12 @@ dpf_add_plugin(yaw-tab FILES_UI wtutil.cpp tab.cpp + rtstylus.cpp ui.cpp) target_include_directories(yaw-tab PUBLIC "." "../../lib/wintab" ) + +target_compile_definitions(yaw-tab PUBLIC YAW_USE_WINTAB=1 YAW_USE_RTSTYLUS=1) \ No newline at end of file diff --git a/src/yaw-tab/rtstylus.cpp b/src/yaw-tab/rtstylus.cpp new file mode 100644 index 0000000..e69de29 diff --git a/src/yaw-tab/ui.cpp b/src/yaw-tab/ui.cpp index e3222f3..3fa0ebf 100644 --- a/src/yaw-tab/ui.cpp +++ b/src/yaw-tab/ui.cpp @@ -1,5 +1,10 @@ #include "DistrhoUI.hpp" +#ifdef YAW_USE_WINTAB #include "tab.cpp" +#endif +#ifdef YAW_USE_RTSTYLUS +#include "rtstylus.cpp" +#endif START_NAMESPACE_DISTRHO