Skip to content

Commit c53394a

Browse files
committed
Define project version in a single location
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 8a7ded2 commit c53394a

4 files changed

Lines changed: 5 additions & 6 deletions

File tree

common/JackAPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,7 @@ LIB_EXPORT void jack_get_version(int *major_ptr,
19291929
LIB_EXPORT const char* jack_get_version_string()
19301930
{
19311931
JackGlobals::CheckContext("jack_get_version_string");
1932-
return VERSION;
1932+
return JACK_VERSION;
19331933
}
19341934

19351935
LIB_EXPORT void jack_free(void* ptr)

common/JackConstants.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
#include "config.h"
2525
#endif
2626

27-
#define VERSION "1.9.22"
28-
2927
#define BUFFER_SIZE_MAX 8192
3028

3129
#define JACK_PORT_NAME_SIZE 256

common/Jackdmp.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ static void notify_server_stop(const char* server_name)
9494

9595
static void copyright(FILE* file)
9696
{
97-
fprintf(file, "jackdmp " VERSION "\n"
97+
fprintf(file, "jackdmp " JACK_VERSION "\n"
9898
"Copyright 2001-2005 Paul Davis and others.\n"
9999
"Copyright 2004-2016 Grame.\n"
100-
"Copyright 2016-2023 Filipe Coelho.\n"
100+
"Copyright 2016-2026 Filipe Coelho.\n"
101101
"jackdmp comes with ABSOLUTELY NO WARRANTY\n"
102102
"This is free software, and you are welcome to redistribute it\n"
103103
"under certain conditions; see the file COPYING for details\n");
@@ -250,7 +250,7 @@ extern "C" void silent_jack_error_callback(const char *desc);
250250

251251
void print_version()
252252
{
253-
printf( "jackdmp version " VERSION " tmpdir "
253+
printf( "jackdmp version " JACK_VERSION " tmpdir "
254254
jack_server_dir " protocol %d" "\n",
255255
JACK_PROTOCOL_VERSION);
256256
}

wscript

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ def configure(conf):
438438
conf.define('JACK_DBUS', 1)
439439
if conf.env['BUILD_WITH_PROFILE']:
440440
conf.define('JACK_MONITOR', 1)
441+
conf.define('JACK_VERSION', VERSION)
441442
conf.write_config_header('config.h', remove=False)
442443

443444
if Options.options.mixed:

0 commit comments

Comments
 (0)