Skip to content
Snippets Groups Projects
Commit 016975c2 authored by Simon McVittie's avatar Simon McVittie
Browse files

Add the skeleton of a GLib library

parents
No related branches found
No related tags found
1 merge request!1WIP: Initial code-drop for review
Showing
with 260 additions and 0 deletions
/builddir
/*-stamp
/*.debhelper
/*.log
/*.substvars
/files
/libsteam-runtime-tools-0-0/
/libsteam-runtime-tools-0-dev/
/libsteam-runtime-tools-0-doc/
/libsteam-runtime-tools-0-tests/
/tmp/
steam-runtime-tools (0-0+collabora1) UNRELEASED; urgency=medium
* Initial release
-- Simon McVittie <smcv@collabora.com> Tue, 02 Apr 2019 17:32:19 +0100
9
Source: steam-runtime-tools
Section: libs
Priority: optional
Maintainer: Simon McVittie <smcv@collabora.com>
Standards-Version: 4.3.0
Build-Depends:
debhelper,
gtk-doc-tools <!nodoc>,
meson,
Build-Depends-Indep:
libglib2.0-dev,
Vcs-Git: https://gitlab.steamos.cloud/steam/steam-runtime-tools.git
Vcs-Browser: https://gitlab.steamos.cloud/steam/steam-runtime-tools
Package: libsteam-runtime-tools-0-dev
Architecture: any
Multi-Arch: same
Section: libdevel
Depends:
libc6-dev,
libglib2.0-dev,
libsteam-runtime-tools-0-0 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
Description: Steam Runtime utility library - development files
The Steam Runtime is the library stack used to run the Steam client
on Linux. The Steam Runtime Tools utility library contains open-source
supporting code used by the Steam client to discover system information.
.
This package contains development files.
Package: libsteam-runtime-tools-doc
Architecture: all
Multi-Arch: foreign
Section: doc
Depends:
${misc:Depends},
Description: Steam Runtime utility library - documentation
The Steam Runtime is the library stack used to run the Steam client
on Linux. The Steam Runtime Tools utility library contains open-source
supporting code used by the Steam client to discover system information.
.
This package contains documentation.
Package: libsteam-runtime-tools-0-0
Architecture: any
Multi-Arch: same
Section: libdevel
Depends:
${misc:Depends},
${shlibs:Depends},
libsteam-runtime-tools-0-helpers,
Description: Steam Runtime utility library - shared library
The Steam Runtime is the library stack used to run the Steam client
on Linux. The Steam Runtime Tools utility library contains open-source
supporting code used by the Steam client to discover system information.
.
This package contains the shared library.
Package: libsteam-runtime-tools-0-tests
Architecture: any
Section: misc
Depends:
${misc:Depends},
${shlibs:Depends},
Description:
The Steam Runtime is the library stack used to run the Steam client
on Linux. The Steam Runtime Tools utility library contains open-source
supporting code used by the Steam client to discover system information.
.
This package contains automated tests.
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Steam Runtime tools
Files:
*
debian/*
Copyright:
© 2019 Collabora Ltd.
License: Expat
License: Expat
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
.
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
usr/lib/*/libsteam-runtime-tools-0.so.0
usr/lib/*/libsteam-runtime-tools-0.so.0.*
libsteam-runtime-tools-0.so.0 libsteam-runtime-tools-0-0 #MINVER#
* Build-Depends-Package: libsteam-runtime-tools-0-dev
srt_architecture_can_run_i386@Base 0~
srt_architecture_can_run_x86_64@Base 0~
usr/include/*
usr/lib/*/libsteam-runtime-tools-0.so
usr/lib/*/pkgconfig/steam-runtime-tools-0.pc
usr/share/gtk-doc/html/steam-runtime-tools-0/*
usr/bin/steam-runtime-system-info
usr/libexec/installed-tests
usr/share/installed-tests
#!/usr/bin/make -f
export LC_ALL=C.UTF-8
include /usr/share/dpkg/default.mk
%:
dh $@
override_dh_auto_clean:
rm -fr builddir
override_dh_auto_configure:
meson builddir \
--prefix=/usr \
--libexecdir=/usr/libexec \
-Dintrospection=false \
$(NULL)
override_dh_auto_build:
ninja -C builddir
override_dh_auto_test:
meson test -C builddir --verbose
override_dh_auto_install:
DESTDIR=$(CURDIR)/debian/tmp ninja -C builddir install
override_dh_missing:
dh_missing --fail-missing
3.0 (quilt)
#!/bin/sh
set -e
set -x
cd "$AUTOPKGTEST_TMP"
cat > trivial.c <<'EOF'
#include <steam-runtime-tools/steam-runtime-tools.h>
int main (void)
{
/* ignore result */
srt_architecture_can_run_i386 ();
return 0;
}
EOF
gcc -o trivial trivial.c $(pkg-config --cflags --libs steam-runtime-tools-0)
test -x trivial
./trivial
Tests: build
Restrictions: allow-stderr
Depends: libsteam-runtime-tools-0-dev
Tests: gnome-desktop-testing
Restrictions: allow-stderr
Depends: gnome-desktop-testing, libsteam-runtime-tools-0-tests
#!/bin/sh
set -eu
exec gnome-desktop-testing-runner steam-runtime-tools-0
if get_option('gtk_doc')
subdir('reference')
endif
# Copyright © 2019 Collabora Ltd.
#
# SPDX-License-Identifier: MIT
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
version_conf = configuration_data()
version_conf.set('PACKAGE_VERSION', meson.project_version())
configure_file(
input: 'version.xml.in',
output: 'version.xml',
configuration: version_conf
)
gnome.gtkdoc(
'steam-runtime-tools',
main_xml : 'steam-runtime-tools.xml',
namespace : 'srt',
mode : 'none',
src_dir : ['steam-runtime-tools'],
dependencies : libsteamrt_dep,
install: true,
)
# vim:set sw=2 sts=2 et:
<?xml version="1.0"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY version SYSTEM "version.xml">
]>
<book id="steam-runtime-tools" xmlns:xi="http://www.w3.org/2003/XInclude">
<bookinfo>
<title>Steam Runtime Tools API Reference Manual</title>
<releaseinfo>
This manual documents the Steam Runtime Tools library, version &version;.
</releaseinfo>
</bookinfo>
<chapter id="ch-sysinfo">
<title>System information</title>
<xi:include href="xml/architecture.xml"/>
</chapter>
<xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include>
</book>
@PACKAGE_VERSION@
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment