Browse Source

Define project version in a single location

Signed-off-by: falkTX <falktx@falktx.com>
develop
falkTX 1 month ago
parent
commit
c53394a5e4
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
4 changed files with 5 additions and 6 deletions
  1. +1
    -1
      common/JackAPI.cpp
  2. +0
    -2
      common/JackConstants.h
  3. +3
    -3
      common/Jackdmp.cpp
  4. +1
    -0
      wscript

+ 1
- 1
common/JackAPI.cpp View File

@@ -1929,7 +1929,7 @@ LIB_EXPORT void jack_get_version(int *major_ptr,
LIB_EXPORT const char* jack_get_version_string()
{
JackGlobals::CheckContext("jack_get_version_string");
return VERSION;
return JACK_VERSION;
}

LIB_EXPORT void jack_free(void* ptr)


+ 0
- 2
common/JackConstants.h View File

@@ -24,8 +24,6 @@
#include "config.h"
#endif

#define VERSION "1.9.22"

#define BUFFER_SIZE_MAX 8192

#define JACK_PORT_NAME_SIZE 256


+ 3
- 3
common/Jackdmp.cpp View File

@@ -94,10 +94,10 @@ static void notify_server_stop(const char* server_name)

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

void print_version()
{
printf( "jackdmp version " VERSION " tmpdir "
printf( "jackdmp version " JACK_VERSION " tmpdir "
jack_server_dir " protocol %d" "\n",
JACK_PROTOCOL_VERSION);
}


+ 1
- 0
wscript View File

@@ -438,6 +438,7 @@ def configure(conf):
conf.define('JACK_DBUS', 1)
if conf.env['BUILD_WITH_PROFILE']:
conf.define('JACK_MONITOR', 1)
conf.define('JACK_VERSION', VERSION)
conf.write_config_header('config.h', remove=False)

if Options.options.mixed:


Loading…
Cancel
Save