diff options
author | crupest <crupest@outlook.com> | 2019-12-12 19:53:17 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-12-12 19:53:17 +0800 |
commit | e69911a8b161b81ce3f7b209175766da2b7b3d4b (patch) | |
tree | 76b1f4b6f9f5ad6111578771be783ee456aeb912 /src/platform/native | |
parent | 154b5b838edfdcef93cd0a33c013ad7f5f9d7337 (diff) | |
download | cru-e69911a8b161b81ce3f7b209175766da2b7b3d4b.tar.gz cru-e69911a8b161b81ce3f7b209175766da2b7b3d4b.tar.bz2 cru-e69911a8b161b81ce3f7b209175766da2b7b3d4b.zip |
...
Diffstat (limited to 'src/platform/native')
-rw-r--r-- | src/platform/native/CMakeLists.txt | 8 | ||||
-rw-r--r-- | src/platform/native/cursor.cpp | 10 |
2 files changed, 3 insertions, 15 deletions
diff --git a/src/platform/native/CMakeLists.txt b/src/platform/native/CMakeLists.txt index 0e44fd55..bc7c4a63 100644 --- a/src/platform/native/CMakeLists.txt +++ b/src/platform/native/CMakeLists.txt @@ -1,12 +1,10 @@ set(CRU_PLATFORM_NATIVE_INCLUDE_DIR ${CRU_INCLUDE_DIR}/cru/platform/native) -add_library(cru_platform_native STATIC - cursor.cpp -) -target_sources(cru_platform_native PUBLIC +add_library(cru_platform_native INTERFACE) +target_sources(cru_platform_native INTERFACE ${CRU_PLATFORM_NATIVE_INCLUDE_DIR}/basic_types.hpp ${CRU_PLATFORM_NATIVE_INCLUDE_DIR}/cursor.hpp ${CRU_PLATFORM_NATIVE_INCLUDE_DIR}/native_event.hpp ${CRU_PLATFORM_NATIVE_INCLUDE_DIR}/native_window.hpp ${CRU_PLATFORM_NATIVE_INCLUDE_DIR}/ui_application.hpp ) -target_link_libraries(cru_platform_native PUBLIC cru_platform_graph) +target_link_libraries(cru_platform_native INTERFACE cru_platform_graph) diff --git a/src/platform/native/cursor.cpp b/src/platform/native/cursor.cpp deleted file mode 100644 index b12aec40..00000000 --- a/src/platform/native/cursor.cpp +++ /dev/null @@ -1,10 +0,0 @@ -#include "cru/platform/native/cursor.hpp" - -#include "cru/platform/native/ui_application.hpp" - -namespace cru::platform::native { -std::shared_ptr<Cursor> GetSystemCursor(SystemCursor type) { - return UiApplication::GetInstance()->GetCursorManager()->GetSystemCursor( - type); -} -} // namespace cru::platform::native |