mirror of
https://github.com/WinDurango/WinDurango.git
synced 2026-01-31 00:55:17 +01:00
Merge branch 'main' of https://codeberg.org/WinDurango/WinDurango
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
cmake_minimum_required(VERSION 4.0)
|
||||
project(WinDurango.Common VERSION 1.0.0)
|
||||
|
||||
include(FetchContent)
|
||||
|
||||
set(VERSION_SUFFIX "-dev.4") # used for non-stable versions, otherwise blank
|
||||
set(VERSION_SUFFIX "-dev.5") # used for non-stable versions, otherwise blank
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
@@ -11,6 +9,7 @@ set(FILES
|
||||
include/WinDurango.Common/WinDurango.h
|
||||
src/WinDurango.cpp
|
||||
include/WinDurango.Common/Config.h
|
||||
include/WinDurango.Common/Interfaces/Storage/Directory.h
|
||||
)
|
||||
|
||||
FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.12.0/json.tar.xz)
|
||||
|
||||
@@ -4,14 +4,19 @@
|
||||
#ifndef WINDURANGO_ABSTRACTSTORAGE_H
|
||||
#define WINDURANGO_ABSTRACTSTORAGE_H
|
||||
|
||||
namespace wd::winrt {
|
||||
namespace wd::common::interfaces::storage {
|
||||
// TODO should we have separate project for interfaces?
|
||||
|
||||
/** Interface for storage management, to be impl'd for uwp and crossplat */
|
||||
class AbstractStorage {
|
||||
class Directory {
|
||||
public:
|
||||
// todo can't make these static, what to do?
|
||||
Directory(std::filesystem::path root); // todo impl
|
||||
|
||||
virtual void CreateFile(std::filesystem::path path) = 0; // todo maybe return stream type, todo can we use this in uwp context??? I forgor
|
||||
virtual void CreateDirectory(std::filesystem::path path) = 0;
|
||||
|
||||
std::filesystem::path _root;
|
||||
};
|
||||
} // wd::winrt
|
||||
} // wd::common::interfaces::storage
|
||||
|
||||
#endif // WINDURANGO_ABSTRACTSTORAGE_H
|
||||
@@ -1,12 +1,12 @@
|
||||
cmake_minimum_required(VERSION 4.0)
|
||||
project(WinDurango.WinRT VERSION 1.0.0)
|
||||
|
||||
set(VERSION_SUFFIX "-dev.0") # used for non-stable versions, otherwise blank
|
||||
set(VERSION_SUFFIX "-dev.1") # used for non-stable versions, otherwise blank
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
set(FILES
|
||||
"include/WinDurango.WinRT/Storage/AbstractStorage.h"
|
||||
"include/WinDurango.WinRT/stub.h"
|
||||
)
|
||||
|
||||
set(WINRT_USE_CROSS_PLATFORM OFF)
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
//
|
||||
// Created by DexrnZacAttack on 1/23/26 using zPc-i2.
|
||||
//
|
||||
#ifndef WINDURANGO_STUB_H
|
||||
#define WINDURANGO_STUB_H
|
||||
|
||||
// cant reload cmake without this
|
||||
|
||||
#endif // WINDURANGO_STUB_H
|
||||
Reference in New Issue
Block a user