aboutsummaryrefslogtreecommitdiff
path: root/src/platform/graphics
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-11-21 20:42:54 +0800
committercrupest <crupest@outlook.com>2021-11-21 20:42:54 +0800
commit3f8e493423b7cfe96ab53531078b803da7beccbe (patch)
treea0a998c6b2b696eaf4f58870224fef31e65e3dbd /src/platform/graphics
parent73b90d4fe6c93a288ca6514432fe1e83ddcf4928 (diff)
downloadcru-3f8e493423b7cfe96ab53531078b803da7beccbe.tar.gz
cru-3f8e493423b7cfe96ab53531078b803da7beccbe.tar.bz2
cru-3f8e493423b7cfe96ab53531078b803da7beccbe.zip
...
Diffstat (limited to 'src/platform/graphics')
-rw-r--r--src/platform/graphics/CMakeLists.txt9
-rw-r--r--src/platform/graphics/NullPainter.cpp1
2 files changed, 7 insertions, 3 deletions
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"