Using tclap library, released under MIT. This adds the meson wrap file along with the minimal custom meson.build for tclap, all the meson code to get config files generated and the integration of the tclap parser.
34 lines
1.4 KiB
C
34 lines
1.4 KiB
C
/* Copyright 2025, Michele "King_DuckZ" Santullo
|
|
* This file is part of ducktorrent.
|
|
*
|
|
* Ducktorrent is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* Ducktorrent is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with ducktorrent. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#if defined(__cplusplus)
|
|
namespace duck {
|
|
constexpr char g_project_name[] = @PROJECT_NAME@;
|
|
constexpr char g_project_version[] = "@PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@";
|
|
constexpr unsigned int g_proj_ver_major = @PROJECT_VERSION_MAJOR@;
|
|
constexpr unsigned int g_proj_ver_minor = @PROJECT_VERSION_MINOR@;
|
|
constexpr unsigned int g_proj_ver_patch = @PROJECT_VERSION_PATCH@;
|
|
} //namespace duck
|
|
#endif
|
|
|
|
#define PROJECT_NAME @PROJECT_NAME@
|
|
#define PROJECT_VERSION "@PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@"
|
|
#define PROJ_VER_MAJOR @PROJECT_VERSION_MAJOR@
|
|
#define PROJ_VER_MINOR @PROJECT_VERSION_MINOR@
|
|
#define PROJ_VER_PATCH @PROJECT_VERSION_PATCH@
|