This repository has been archived on 2020-05-16. You can view files and clone it, but cannot push or open issues or pull requests.
xdgcfg/docs/index.html
2019-08-02 10:13:43 +02:00

102 lines
5.0 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>xdgcfg: Main Page</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">xdgcfg
&#160;<span id="projectnumber">0.4.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">xdgcfg Documentation</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p><b>xdgcfg</b> is a very simple wrapper around libconfig written in C++. It reads and writes files in <code>${XDG_CONFIG_HOME}</code>. It creates subdirectories if necessary.</p>
<h2>Usage</h2>
<p><code>xdgcfg.hpp</code> has explanatory comments in it and there is an <a href="examples/example.cpp">example</a>. The reference is also available at <a href="https://doc.schlomp.space/xdgcfg/classxdgcfg.html">doc.schlomp.space/xdgcfg/</a>.</p>
<p>Use it in your CMake project like this:</p>
<div class="fragment"><div class="line">find_package(xdgcfg CONFIG REQUIRED)</div><div class="line">target_link_libraries(MyProject xdgcfg::xdgcfg)</div></div><!-- fragment --><p>If you don't use CMake, you can get the compile-flags with pkg-config:</p>
<div class="fragment"><div class="line">pkg-config --libs --cflags xdgcfg</div></div><!-- fragment --><h2>Install</h2>
<h3>Gentoo</h3>
<p>Add my <a href="https://schlomp.space/tastytea/overlay">repository</a> and install it from there.</p>
<div class="fragment"><div class="line">eselect repository enable tastytea</div><div class="line">echo &quot;dev-cpp/xdgcfg&quot; &gt;&gt; /etc/portage/package.accept_keywords/xdgcfg</div><div class="line">emaint sync -r tastytea</div><div class="line">emerge -a dev-cpp/xdgcfg</div></div><!-- fragment --><h3>From source</h3>
<h3>Dependencies</h3>
<ul>
<li>C++ compiler (Tested: g++ 5/8/9)</li>
<li><a href="https://cmake.org/">cmake</a> (at least: 3.1)</li>
<li><a href="https://pkgconfig.freedesktop.org/wiki/">pkgconfig</a> (tested: 0.29)</li>
<li><a href="https://github.com/hyperrealm/libconfig">libconfig++</a> (tested: 1.5)</li>
<li><a href="http://repo.or.cz/w/libxdg-basedir.git">libxdg-basedir</a> (tested: 1.2)</li>
</ul>
<h3>Compile</h3>
<div class="fragment"><div class="line">mkdir build</div><div class="line">cd build</div><div class="line">cmake ..</div><div class="line">cmake --build .</div><div class="line">make install</div></div><!-- fragment --><h3>CMake options</h3>
<ul>
<li><code>-DWITH_TESTS=YES</code> to compile the tests.</li>
<li><code>-DWITH_EXAMPLES=YES</code> to compile the example.</li>
<li><code>-DBUILD_SHARED_LIBS=NO</code> to build a static library. </li>
</ul>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>