diff options
author | Will Thompson <wjt@endlessm.com> | 2019-03-28 16:12:39 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2019-05-02 19:14:50 +0100 |
commit | 5920f9f3fc3c1c0fb029296b91938d103fb7886a (patch) | |
tree | 33834492c7246b616030516749c9117c717d50fa | |
parent | 0f53dc35e4697bf1c545cb4eae795c79299e2cd0 (diff) | |
download | libglnx-5920f9f3fc3c1c0fb029296b91938d103fb7886a.tar.gz |
Document using this as a Meson subproject
-rw-r--r-- | README.md | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -28,6 +28,32 @@ One could also compare this project to gnulib; the salient differences there are that at least some of this module is eventually destined for inclusion in GLib. +Adding this to your project +--------------------------- + +## Meson + +First, set up a Git submodule: + +``` +git submodule add https://gitlab.gnome.org/GNOME/libglnx subprojects/libglnx +``` + +Or a Git [subtree](https://github.com/git/git/blob/master/contrib/subtree/git-subtree.txt): + +``` +git remote add libglnx https://gitlab.gnome.org/GNOME/libglnx.git +git fetch libglnx +git subtree add -P subprojects/libglnx libglnx/master +``` + +Then, in your top-level `meson.build`: + +``` +libglnx_dep = subproject('libglnx').get_variable('libglnx_dep') +# now use libglnx_dep in your dependencies +``` + Porting from libgsystem ----------------------- |