Ring Daemon 16.0.0
Loading...
Searching...
No Matches
buildinfo.cpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2004-2025 Savoir-faire Linux Inc.
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18#ifdef HAVE_CONFIG_H
19#include "config.h"
20#endif
21
22#include "jami.h"
23#include "string_utils.h"
24#include <string>
25
26#include <ciso646> // fix windows compiler bug
27
28#ifndef JAMI_REVISION
29#define JAMI_REVISION ""
30#endif
31
32#ifndef JAMI_DIRTY_REPO
33#define JAMI_DIRTY_REPO ""
34#endif
35
36#ifndef PACKAGE_VERSION
37#define PACKAGE_VERSION "unknown"
38#endif
39
40namespace libjami {
41
42const char*
49
50std::string_view
51platform() noexcept
52{
53 return jami::platform();
54}
55
56std::string_view
57arch() noexcept
58{
59 return jami::arch();
60}
61
62} // namespace libjami
#define JAMI_DIRTY_REPO
Definition buildinfo.cpp:33
#define PACKAGE_VERSION
Definition buildinfo.cpp:37
#define JAMI_REVISION
Definition buildinfo.cpp:29
constexpr std::string_view platform()
constexpr std::string_view arch()
const char * version() noexcept
Return the library version as string.
Definition buildinfo.cpp:43
std::string_view platform() noexcept
Return the target platform (OS) as a string.
Definition buildinfo.cpp:51
std::string_view arch() noexcept
Return the target architecture as a string.
Definition buildinfo.cpp:57