mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-09 09:19:09 +02:00
use proper version value
take the version either from VCS or from a project variable.
This commit is contained in:
parent
d3b6c29a79
commit
cc00385ed7
6 changed files with 32 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "espeakup.h"
|
||||
#include "version.h"
|
||||
|
||||
/* pid path */
|
||||
extern char *pidPath;
|
||||
|
|
|
|||
|
|
@ -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
2
src/include/meson.build
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
espeakup_version = vcs_tag(input : 'version.h.in',
|
||||
output : 'version.h')
|
||||
25
src/include/version.h.in
Normal file
25
src/include/version.h.in
Normal 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
|
||||
|
|
@ -1,4 +1,7 @@
|
|||
espeakup_incdir = include_directories('include')
|
||||
|
||||
subdir('include')
|
||||
|
||||
espeakup_sources = files([
|
||||
'cli.c',
|
||||
'espeak.c',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue