From 3f8e493423b7cfe96ab53531078b803da7beccbe Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 21 Nov 2021 20:42:54 +0800 Subject: ... --- src/platform/graphics/CMakeLists.txt | 9 ++++++--- src/platform/graphics/NullPainter.cpp | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 src/platform/graphics/NullPainter.cpp (limited to 'src/platform/graphics') diff --git a/src/platform/graphics/CMakeLists.txt b/src/platform/graphics/CMakeLists.txt index 5f841267..7d86db40 100644 --- a/src/platform/graphics/CMakeLists.txt +++ b/src/platform/graphics/CMakeLists.txt @@ -1,14 +1,17 @@ set(CRU_PLATFORM_GRAPHICS_INCLUDE_DIR ${CRU_INCLUDE_DIR}/cru/platform/graphics) -add_library(cru_platform_graphics INTERFACE) -target_sources(cru_platform_graphics INTERFACE +add_library(cru_platform_graphics SHARED + NullPainter.cpp +) +target_sources(cru_platform_graphics PUBLIC ${CRU_PLATFORM_GRAPHICS_INCLUDE_DIR}/Base.hpp ${CRU_PLATFORM_GRAPHICS_INCLUDE_DIR}/Brush.hpp ${CRU_PLATFORM_GRAPHICS_INCLUDE_DIR}/Font.hpp ${CRU_PLATFORM_GRAPHICS_INCLUDE_DIR}/Geometry.hpp + ${CRU_PLATFORM_GRAPHICS_INCLUDE_DIR}/NullPainter.hpp ${CRU_PLATFORM_GRAPHICS_INCLUDE_DIR}/Factory.hpp ${CRU_PLATFORM_GRAPHICS_INCLUDE_DIR}/Resource.hpp ${CRU_PLATFORM_GRAPHICS_INCLUDE_DIR}/Painter.hpp ${CRU_PLATFORM_GRAPHICS_INCLUDE_DIR}/TextLayout.hpp ${CRU_PLATFORM_GRAPHICS_INCLUDE_DIR}/util/Painter.hpp ) -target_link_libraries(cru_platform_graphics INTERFACE cru_platform_base) +target_link_libraries(cru_platform_graphics PUBLIC cru_platform_base) diff --git a/src/platform/graphics/NullPainter.cpp b/src/platform/graphics/NullPainter.cpp new file mode 100644 index 00000000..1b02ea07 --- /dev/null +++ b/src/platform/graphics/NullPainter.cpp @@ -0,0 +1 @@ +#include "cru/platform/graphics/NullPainter.hpp" -- cgit v1.2.3