Skip to content

Commit

Permalink
Merge pull request #70 from AgonConsole8/versioning
Browse files Browse the repository at this point in the history
Semantic versioning
  • Loading branch information
stevesims authored Oct 26, 2023
2 parents 8156e6f + 094a414 commit c30bd91
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
12 changes: 12 additions & 0 deletions video/version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#ifndef VERSION_H
#define VERSION_H

#define VERSION_MAJOR 2
#define VERSION_MINOR 0
#define VERSION_PATCH 0
#define VERSION_CANDIDATE 1 // Optional
#define VERSION_TYPE "Alpha " // RC, Alpha, Beta, etc.

#define VERSION_VARIANT "Console8"

#endif // VERSION_H
17 changes: 9 additions & 8 deletions video/video.ino
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,13 @@
#include <HardwareSerial.h>
#include <fabgl.h>

#define VERSION 1
#define REVISION 4
#define RC 2

#define DEBUG 0 // Serial Debug Mode: 1 = enable
#define SERIALKB 0 // Serial Keyboard: 1 = enable (Experimental)
#define SERIALBAUDRATE 115200

#include "agon.h" // Configuration file
#include "agon_ps2.h" // Keyboard support
#include "version.h" // Version information
#include "agon_ps2.h" // Keyboard support
#include "agon_audio.h" // Audio support
#include "graphics.h" // Graphics support
#include "cursor.h" // Cursor support
Expand Down Expand Up @@ -173,9 +170,13 @@ void do_mouse() {
// The boot screen
//
void boot_screen() {
printFmt("Agon Quark VDP Version %d.%02d", VERSION, REVISION);
#if RC > 0
printFmt(" RC%d", RC);
printFmt("Agon %s VDP Version %d.%d.%d", VERSION_VARIANT, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH);
#if VERSION_CANDIDATE > 0
printFmt(" %s%d", VERSION_TYPE, VERSION_CANDIDATE);
#endif
// Show build if defined (intended to be auto-generated string from build script from git commit hash)
#ifdef VERSION_BUILD
printFmt(" Build %s", VERSION_BUILD);
#endif
printFmt("\n\r");
}
Expand Down

0 comments on commit c30bd91

Please sign in to comment.