diff options
author | crupest <crupest@outlook.com> | 2021-08-20 22:10:45 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-08-20 22:10:45 +0800 |
commit | e2e8ba559b0e7a797c083684b382ac4cbb2fdd5f (patch) | |
tree | 9b9e61142c490c53a5d7b3bba2c62ee6281a87db /src/osx/graphics | |
parent | bcb879240f96764b8f17da2878fc0784c51b6054 (diff) | |
download | cru-e2e8ba559b0e7a797c083684b382ac4cbb2fdd5f.tar.gz cru-e2e8ba559b0e7a797c083684b382ac4cbb2fdd5f.tar.bz2 cru-e2e8ba559b0e7a797c083684b382ac4cbb2fdd5f.zip |
...
Diffstat (limited to 'src/osx/graphics')
-rw-r--r-- | src/osx/graphics/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/osx/graphics/native/CMakeLists.txt | 11 | ||||
-rw-r--r-- | src/osx/graphics/native/Factory.cpp | 1 | ||||
-rw-r--r-- | src/osx/graphics/quartz/CMakeLists.txt | 15 | ||||
-rw-r--r-- | src/osx/graphics/quartz/Factory.cpp | 1 | ||||
-rw-r--r-- | src/osx/graphics/quartz/Painter.cpp | 1 | ||||
-rw-r--r-- | src/osx/graphics/quartz/Resource.cpp | 0 |
7 files changed, 18 insertions, 13 deletions
diff --git a/src/osx/graphics/CMakeLists.txt b/src/osx/graphics/CMakeLists.txt index 91ffbfaf..980c2f93 100644 --- a/src/osx/graphics/CMakeLists.txt +++ b/src/osx/graphics/CMakeLists.txt @@ -1 +1 @@ -add_subdirectory(native) +add_subdirectory(quartz) diff --git a/src/osx/graphics/native/CMakeLists.txt b/src/osx/graphics/native/CMakeLists.txt deleted file mode 100644 index 610292da..00000000 --- a/src/osx/graphics/native/CMakeLists.txt +++ /dev/null @@ -1,11 +0,0 @@ -set(CRU_OSX_GRAPHICS_NATIVE_INCLUDE_DIR ${CRU_INCLUDE_DIR}/cru/osx/graphics/native) - -add_library(cru_win_graphics_direct SHARED - Factory.cpp -) -target_sources(cru_win_graphics_direct PUBLIC - ${CRU_OSX_GRAPHICS_NATIVE_INCLUDE_DIR}/Factory.hpp -) -target_link_libraries(cru_win_graphics_direct PUBLIC cocoa) -target_link_libraries(cru_win_graphics_direct PUBLIC cru_osx_base cru_platform_graphics) - diff --git a/src/osx/graphics/native/Factory.cpp b/src/osx/graphics/native/Factory.cpp deleted file mode 100644 index 0025ca3e..00000000 --- a/src/osx/graphics/native/Factory.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "cru/osx/graphics/native/Factory.hpp" diff --git a/src/osx/graphics/quartz/CMakeLists.txt b/src/osx/graphics/quartz/CMakeLists.txt new file mode 100644 index 00000000..41577ad7 --- /dev/null +++ b/src/osx/graphics/quartz/CMakeLists.txt @@ -0,0 +1,15 @@ +set(CRU_OSX_GRAPHICS_NATIVE_INCLUDE_DIR ${CRU_INCLUDE_DIR}/cru/osx/graphics/quartz) + +add_library(cru_osx_graphics_quartz SHARED + Factory.cpp + Painter.cpp + Resource.cpp +) +target_sources(cru_osx_graphics_quartz PUBLIC + ${CRU_OSX_GRAPHICS_NATIVE_INCLUDE_DIR}/Factory.hpp + ${CRU_OSX_GRAPHICS_NATIVE_INCLUDE_DIR}/Painter.hpp + ${CRU_OSX_GRAPHICS_NATIVE_INCLUDE_DIR}/Resource.hpp +) +target_link_libraries(cru_osx_graphics_quartz PUBLIC cocoa) +target_link_libraries(cru_osx_graphics_quartz PUBLIC cru_osx_base cru_platform_graphics) + diff --git a/src/osx/graphics/quartz/Factory.cpp b/src/osx/graphics/quartz/Factory.cpp new file mode 100644 index 00000000..f9b792f2 --- /dev/null +++ b/src/osx/graphics/quartz/Factory.cpp @@ -0,0 +1 @@ +#include "cru/osx/graphics/quartz/Factory.hpp" diff --git a/src/osx/graphics/quartz/Painter.cpp b/src/osx/graphics/quartz/Painter.cpp new file mode 100644 index 00000000..b3006a97 --- /dev/null +++ b/src/osx/graphics/quartz/Painter.cpp @@ -0,0 +1 @@ +#include "cru/osx/graphics/quartz/Painter.hpp" diff --git a/src/osx/graphics/quartz/Resource.cpp b/src/osx/graphics/quartz/Resource.cpp new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/src/osx/graphics/quartz/Resource.cpp |