use proper version value

take the version either from VCS or from a project variable.
This commit is contained in:
Alexander Epaneshnikov 2021-01-25 02:29:07 +03:00
commit cc00385ed7
No known key found for this signature in database
GPG key ID: 1736C918F59A5673
6 changed files with 32 additions and 1 deletions

View file

@ -13,6 +13,7 @@ subdir('src')
executable('espeakup',
espeakup_sources,
espeakup_version,
include_directories : espeakup_incdir,
dependencies : [thread_dep, espeak_dep, alsa_dep, m_dep],
install : true)

View file

@ -23,6 +23,7 @@
#include <string.h>
#include "espeakup.h"
#include "version.h"
/* pid path */
extern char *pidPath;

View file

@ -28,7 +28,6 @@
#include "queue.h"
#define PACKAGE_VERSION "0.81"
#define PACKAGE_BUGREPORT "https://github.com/linux-speakup/espeakup/issues"
enum espeakup_mode_t {

2
src/include/meson.build Normal file
View file

@ -0,0 +1,2 @@
espeakup_version = vcs_tag(input : 'version.h.in',
output : 'version.h')

25
src/include/version.h.in Normal file
View file

@ -0,0 +1,25 @@
/*
* espeakup - interface which allows speakup to use espeak
*
* Copyright (C) 2008 William Hubbs
*
* This program 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.
*
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __VERSION_H
#define __VERSION_H
#define PACKAGE_VERSION "@VCS_TAG@"
#endif

View file

@ -1,4 +1,7 @@
espeakup_incdir = include_directories('include')
subdir('include')
espeakup_sources = files([
'cli.c',
'espeak.c',