Skip to content

Commit

Permalink
[v0.9.0] #150, Add version number
Browse files Browse the repository at this point in the history
- add edbee versioning number
- move onigiruma patch tools, and version set script to /tools
  • Loading branch information
gamecreature committed Jan 24, 2025
1 parent 7dbad2b commit 09bfbc0
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 5 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Changelog

edbee.lib:

- (2025-01-24) [v0.9.0] #150, Add version number (EDBEE_VERSION / Edbee::instance()->version())
- (2025-01-24) #145, Replace onigmo with onigruma
- (2025-01-04) Remove qslog references from `edbee-test`
- (2024-12-28) Default cmake build is QT6 (use the BUILD_WITH_QT5 option)
- (2024-12-22) Replaced qslog dependency with qlog_* macros to qDebug, qWarning etc.

Older Items

- Replaced qslog dependency with qlog_* macros to qDebug, qWarning etc.
- Autocomplete changes, setFocusPolicy on QMenu an adding `setAttribute(Qt::WA_ShowWithoutActivating)`
- PR #147, Add ctrl-a / ctrl-e support for macOS
- fix, Autocomplete Improvements
Expand Down
1 change: 1 addition & 0 deletions edbee-lib/edbee-lib.pri
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ HEADERS += \
$$PWD/edbee/data/factorykeymap.h \
$$PWD/edbee/debug.h \
$$PWD/edbee/edbee.h \
$$PWD/edbee/edbeeversion.h \
$$PWD/edbee/exports.h \
$$PWD/edbee/io/baseplistparser.h \
$$PWD/edbee/io/jsonparser.h \
Expand Down
6 changes: 6 additions & 0 deletions edbee-lib/edbee/edbee.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ void Edbee::autoInit()
}
}

/// Returns the edbee version number
const char* Edbee::version() const
{
return EDBEE_VERSION;
}



/// TODO: We need a way to load the (scoped) environment variables
Expand Down
2 changes: 2 additions & 0 deletions edbee-lib/edbee/edbee.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#pragma once

#include "edbee/exports.h"
#include "edbee/edbeeversion.h"

#include <QObject>

Expand Down Expand Up @@ -39,6 +40,7 @@ class EDBEE_EXPORT Edbee : public QObject
void setThemePath( const QString& themePath );

void autoInit();
const char* version() const;

public slots:
void init();
Expand Down
8 changes: 8 additions & 0 deletions edbee-lib/edbee/edbeeversion.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#pragma once

#define EDBEE_VERSION "0.9.0"

#define EDBEE_VERSION_MAJOR 0
#define EDBEE_VERSION_MINOR 9
#define EDBEE_VERSION_PATCH 0
#define EDBEE_VERSION_POSTFIX ""
3 changes: 3 additions & 0 deletions tools/patch-oniguruma.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

cp -Rp ../vendor/oniguruma/patch/* ../vendor/oniguruma/oniguruma/
30 changes: 30 additions & 0 deletions tools/set-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/sh

if [ "$#" -lt 3 ]; then
echo "Generates the edbee version header"
echo ""
echo "Usage: $0 <major> <minor> <patch> [<postfix>]"
exit;
fi

major="$1"
minor="$2"
patch="$3"
postfix="$4"
if [ -n "$4" ]; then
postfix_dash="-$4"
fi
target="../edbee-lib/edbee/edbeeversion.h"

cat <<C > $target
#pragma once
#define EDBEE_VERSION "$major.$minor.$patch$postfix_dash"
#define EDBEE_VERSION_MAJOR $major
#define EDBEE_VERSION_MINOR $minor
#define EDBEE_VERSION_PATCH $patch
#define EDBEE_VERSION_POSTFIX "$postfix"
C

cat $target
3 changes: 0 additions & 3 deletions vendor/oniguruma/patch-oniguruma.sh

This file was deleted.

0 comments on commit 09bfbc0

Please sign in to comment.