standardpaths/README.md

59 lines
1.4 KiB
Markdown
Raw Normal View History

2023-07-14 06:25:18 +02:00
# standardpaths
A small C++ library to get the system- and user-specfic paths for loading and
storing application data and configuration in a cross-platform and
platform-appropriate way (e.g. using [XDG] on Linux, [SHGetKnownFolderPath]
on Windows, etc.).
2023-07-14 06:25:18 +02:00
## Installation
2023-07-14 06:25:18 +02:00
Add this repo to your project's repo as a sub-module:
2023-07-14 06:25:18 +02:00
```con
git submodule add https://gitlab.com/0x20.eu/standardpaths
git submodule update --init --recursive
2023-07-14 06:25:18 +02:00
```
## Usage
2023-07-14 06:25:18 +02:00
* Include `"standardpaths.hpp"`.
* Add `standardpaths.cpp` to the list of sources.
* Compile your project with `-std=c++17 -I./standardpaths`.
* Link with `-luuid -lole32` (only needed for Windows targets).
* See `standardpaths.hpp` for API.
2023-07-14 06:25:18 +02:00
## Support
2023-07-14 06:25:18 +02:00
For questions, suggestions, or bug reports etc. please use the
[issue tracker](./issues).
2023-07-14 06:25:18 +02:00
## Contributing
2023-07-14 06:25:18 +02:00
Feel free to sumit a merge request through Gitlab.
2023-07-14 06:25:18 +02:00
## Authors and Acknowledgments
2023-07-14 06:25:18 +02:00
Created by *Chistopher Arndt*. Inspired by GLib's [gutils.c] and Qt's
[QtStandardPaths].
2023-07-14 06:25:18 +02:00
## License
2023-07-14 06:25:18 +02:00
MIT license
2023-07-14 06:25:18 +02:00
## Project status
2023-07-14 06:25:18 +02:00
This project is in early alpha-stage.
2023-07-14 06:25:18 +02:00
[XDG]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
[SHGetKnownFolderPath]: https://learn.microsoft.com/en-us/windows/win32/api/shlobj_core/nf-shlobj_core-shgetknownfolderpath
[gutils.c]: https://gitlab.gnome.org/GNOME/glib/-/blob/5d6c044da45b777970abab2a990208dbeb44794d/glib/gutils.c
[QtStandardPaths]: https://doc.qt.io/qt-6/qml-qt-labs-platform-standardpaths.html