Skip to content

Commit

Permalink
Automate version number in meta.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Jan 16, 2024
1 parent 45747b3 commit 6ed9d5e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion shared/liboxide/liboxide.pro
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,12 @@ DBUS_INTERFACES += \

LIBS += -lsystemd

include(../../qmake/common.pri)

liboxide_liboxide_h.target = include/liboxide/liboxide.h
liboxide_liboxide_h.commands = \
mkdir -p include/liboxide && \
sed -i \'s/define OXIDE_VERSION .*/define OXIDE_VERSION \"$$VERSION\"/\' $$_PRO_FILE_PWD_/meta.h && \
echo $$HEADERS | xargs -rn1 | xargs -rI {} cp $$PWD/{} include/liboxide/ && \
mv include/liboxide/oxide_sentry.h include/liboxide/sentry.h && \
echo $$DBUS_INTERFACES | xargs -rn1 | xargs -rI {} basename \"{}\" .xml | xargs -rI {} cp $$OUT_PWD/\"{}\"_interface.h include/liboxide/
Expand Down Expand Up @@ -110,7 +113,6 @@ PRE_TARGETDEPS += $$clean_headers.target
POST_TARGETDEPS += $$liboxide_liboxide_h.target $$liboxide_h.target
QMAKE_CLEAN += $$liboxide_h.target include/liboxide/*.h

include(../../qmake/common.pri)
TARGET = oxide
target.path = /opt/lib
INSTALLS += target
Expand Down
9 changes: 7 additions & 2 deletions shared/liboxide/meta.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,15 @@
*/
#define OXIDE_SERVICE_PATH "/codes/eeems/oxide1"
/*!
* \def OXIDE_INTERFACE_VERSION
* \def OXIDE_VERSION
* \brief Version of Tarnish and liboxide
*/
#define OXIDE_INTERFACE_VERSION "2.7.0"
#define OXIDE_VERSION "2.8"
/*!
* \def OXIDE_INTERFACE_VERSION
* \brief Version of Tarnish and liboxide for dbus
*/
#define OXIDE_INTERFACE_VERSION OXIDE_VERSION ".0"
/*!
* \def OXIDE_GENERAL_INTERFACE
* \brief DBus service for the general API
Expand Down

0 comments on commit 6ed9d5e

Please sign in to comment.